|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ascape.model.space.DefaultLocation org.ascape.model.space.DefaultNode
public class DefaultNode
The Class DefaultNode.
Constructor Summary | |
---|---|
DefaultNode()
|
Method Summary | |
---|---|
java.util.List |
findNeighbors()
Find neighbors. |
Node |
findRandomAvailableNeighbor()
Find random neighbor. |
Node |
findRandomNeighbor()
Find random neighbor. |
Node |
getOccupant()
Gets the occupant. |
java.util.Random |
getRandom()
Gets the random. |
boolean |
isAvailable()
Checks if is available. |
void |
setOccupant(Node occupant)
Sets the occupant. |
void |
setRandom(java.util.Random random)
Sets the random. |
Methods inherited from class org.ascape.model.space.DefaultLocation |
---|
clearDeleteMarker, clone, getCoordinate, initialize, isDelete, markForDeletion, setCoordinate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ascape.model.space.Location |
---|
clearDeleteMarker, clone, getCoordinate, initialize, isDelete, markForDeletion, setCoordinate |
Constructor Detail |
---|
public DefaultNode()
Method Detail |
---|
public java.util.List findNeighbors()
Node
findNeighbors
in interface Node
public Node findRandomNeighbor()
Node
findRandomNeighbor
in interface Node
public Node findRandomAvailableNeighbor()
Node
findRandomAvailableNeighbor
in interface Node
public Node getOccupant()
Node
getOccupant
in interface Node
public boolean isAvailable()
Node
isAvailable
in interface Node
public void setOccupant(Node occupant)
Node
setOccupant
in interface Node
occupant
- the occupantpublic java.util.Random getRandom()
public void setRandom(java.util.Random random)
random
- the new random
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |