|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
The Interface Node.
Method Summary | |
---|---|
java.util.List |
findNeighbors()
Find neighbors. |
Node |
findRandomAvailableNeighbor()
Find random neighbor. |
Node |
findRandomNeighbor()
Find random neighbor. |
Node |
getOccupant()
Gets the occupant. |
boolean |
isAvailable()
Checks if is available. |
void |
setOccupant(Node occupant)
Sets the occupant. |
Methods inherited from interface org.ascape.model.space.Location |
---|
clearDeleteMarker, clone, getCoordinate, initialize, isDelete, markForDeletion, setCoordinate |
Method Detail |
---|
boolean isAvailable()
Node findRandomNeighbor()
Node findRandomAvailableNeighbor()
java.util.List findNeighbors()
Node getOccupant()
java.lang.UnsupportedOperationException
- if occupants are not supported.void setOccupant(Node occupant)
occupant
- the occupant
java.lang.UnsupportedOperationException
- if occupants are not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |