Graph
Class NodeConf
java.lang.Object
|
+--Graph.NodeConf
- Direct Known Subclasses:
- ASNodeConf, RouterNodeConf
- public class NodeConf
- extends java.lang.Object
NodeConf, short for NodeConfiguration serves as base class for
further derivation, see ASNodeConf, RouterNodeConf etc. All
information related to the semantics of the node (such as (x,y)
coords etc) should be provided in classes that extend the NodeConf
class. This allows for a clear distinction between a Graph node
and a Node in your application.
Constructor Summary |
NodeConf()
Constructor 1: default constructor that intializes all NodeConf fields to default values |
NodeConf(double c)
Constructor 2: specifies the node "cost" |
NodeConf(int x,
int y,
int z)
Constructor 3: specifies the x,y,z coords of the node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeConf
public NodeConf()
- Constructor 1: default constructor that intializes all NodeConf fields to default values
NodeConf
public NodeConf(double c)
- Constructor 2: specifies the node "cost"
NodeConf
public NodeConf(int x,
int y,
int z)
- Constructor 3: specifies the x,y,z coords of the node
getCost
public double getCost()
getX
public int getX()
getY
public int getY()
getZ
public int getZ()
getNodeType
public int getNodeType()
setCost
public void setCost(double c)
setCoordinates
public void setCoordinates(int x,
int y,
int z)
setNodeType
public void setNodeType(int t)