gps.network.graph
Class NodeProperties

java.lang.Object
  extended by gps.network.graph.NodeProperties

public class NodeProperties
extends java.lang.Object

Stores the Properties of a node

Author:
Oliver Heckmann

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

LAN_NODE

public static final int LAN_NODE
node type - LAN_NODE

See Also:
Constant Field Values

MAN_NODE

public static final int MAN_NODE
node type - MAN_NODE

See Also:
Constant Field Values

WAN_NODE

public static final int WAN_NODE
node type - WAN_NODE

See Also:
Constant Field Values

EDGE_NODE

public static final int EDGE_NODE
node type - EDGE_NODE

See Also:
Constant Field Values

CORE_NODE

public static final int CORE_NODE
node type - CORE_NODE

See Also:
Constant Field Values
Constructor Detail

NodeProperties

public NodeProperties()
Creates new NodeProperties


NodeProperties

public NodeProperties(double x,
                      double y)
Creates new NodeProperties

Parameters:
x - x position
y - y position

NodeProperties

public NodeProperties(double x,
                      double y,
                      int type)
Creates new NodeProperties

Parameters:
x - x position
y - y position
type - node type

NodeProperties

public NodeProperties(int type)
Creates new NodeProperties

Parameters:
type - node type
Method Detail

getX

public double getX()
gets x position

Returns:
double x-position

getY

public double getY()
gets y position

Returns:
double y-position

setX

public void setX(double x)
sets x position

Parameters:
x - new x

setY

public void setY(double y)
sets y position

Parameters:
y - new y

getType

public int getType()
gets node type

Returns:
node type

setType

public void setType(int type)
sets node type

Parameters:
type - new type

getLabel

public java.lang.String getLabel()
gets node lable

Returns:
labe string

setLabel

public void setLabel(java.lang.String label)
sets lable for this node

Parameters:
label - new lable

getTraffic

public java.lang.String getTraffic()
gets traffic

Returns:
traffic

setTraffic

public void setTraffic(java.lang.String traffic)
sets traffic

Parameters:
traffic - new traffic