|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.network.graph.Node
public class Node
Represents a network node. To get and change the properties of the node call node.getProperties().
| Field Summary | |
|---|---|
static int |
mNextAvailableID
provide next available id for automatically indexing |
| Constructor Summary | |
|---|---|
Node()
Creates new Node, standard constructor. |
|
Node(int i)
initialization with specified node id |
|
| Method Summary | |
|---|---|
void |
attach(Agent a)
attachs agents on that node |
java.util.ArrayList |
getAgentList()
gets agent list attached on this node |
int |
getID()
gets node id |
int |
getKey()
gets node id |
Link |
getLinkTo(Node n)
gets link to another node |
NodeProperties |
getProperties()
gets node properties |
boolean |
handle(SimEvent e)
handles node level event |
void |
hasLinkTo(Node n,
Link l)
add a link between this node and another node |
boolean |
isActive()
checks activity |
void |
reset()
reset values |
void |
setID(int i)
set id |
void |
setProperties(NodeProperties p)
sets node propertes |
java.lang.String |
toString()
gets string description |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int mNextAvailableID
| Constructor Detail |
|---|
public Node()
public Node(int i)
i - node id| Method Detail |
|---|
public void reset()
public void setID(int i)
i - new idpublic int getID()
public int getKey()
public NodeProperties getProperties()
public void setProperties(NodeProperties p)
p - node propertiespublic java.util.ArrayList getAgentList()
public void hasLinkTo(Node n,
Link l)
n - another nodel - link between two nodespublic Link getLinkTo(Node n)
n - destination node
public boolean isActive()
public boolean handle(SimEvent e)
handle in interface SimEventHandlere - is the event to be handled
public void attach(Agent a)
a - the agent to be attachedpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||