|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.network.graph.NodeProperties
public class NodeProperties
Stores the Properties of a node
| Field Summary | |
|---|---|
static int |
CORE_NODE
node type - CORE_NODE |
static int |
EDGE_NODE
node type - EDGE_NODE |
static int |
LAN_NODE
node type - LAN_NODE |
static int |
MAN_NODE
node type - MAN_NODE |
static int |
WAN_NODE
node type - WAN_NODE |
| Constructor Summary | |
|---|---|
NodeProperties()
Creates new NodeProperties |
|
NodeProperties(double x,
double y)
Creates new NodeProperties |
|
NodeProperties(double x,
double y,
int type)
Creates new NodeProperties |
|
NodeProperties(int type)
Creates new NodeProperties |
|
| Method Summary | |
|---|---|
java.lang.String |
getLabel()
gets node lable |
java.lang.String |
getTraffic()
gets traffic |
int |
getType()
gets node type |
double |
getX()
gets x position |
double |
getY()
gets y position |
void |
setLabel(java.lang.String label)
sets lable for this node |
void |
setTraffic(java.lang.String traffic)
sets traffic |
void |
setType(int type)
sets node type |
void |
setX(double x)
sets x position |
void |
setY(double y)
sets y position |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LAN_NODE
public static final int MAN_NODE
public static final int WAN_NODE
public static final int EDGE_NODE
public static final int CORE_NODE
| Constructor Detail |
|---|
public NodeProperties()
public NodeProperties(double x,
double y)
x - x positiony - y position
public NodeProperties(double x,
double y,
int type)
x - x positiony - y positiontype - node typepublic NodeProperties(int type)
type - node type| Method Detail |
|---|
public double getX()
public double getY()
public void setX(double x)
x - new xpublic void setY(double y)
y - new ypublic int getType()
public void setType(int type)
type - new typepublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - new lablepublic java.lang.String getTraffic()
public void setTraffic(java.lang.String traffic)
traffic - new traffic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||