|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.ConnectivityGrid.GridCell
public class ConnectivityGrid.GridCell
A single cell in the cell grid. Contains the nodes that are currently in that part of the grid.
Method Summary | |
---|---|
void |
addNode(DTNHost node)
Adds a node to this cell |
java.util.List<DTNHost> |
getNodes()
Returns a list of of nodes in this cell |
void |
moveNode(DTNHost node,
ConnectivityGrid.GridCell to)
Moves a node in a Cell to another Cell |
java.lang.String |
toString()
Returns a string representation of the cell |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.util.List<DTNHost> getNodes()
public void addNode(DTNHost node)
node
- The node to addpublic void moveNode(DTNHost node, ConnectivityGrid.GridCell to)
node
- The node to moveto
- The cell where the node should be moved topublic 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 |