|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Nodepublic Node findRandomNeighbor()
Node
findRandomNeighbor in interface Nodepublic Node findRandomAvailableNeighbor()
Node
findRandomAvailableNeighbor in interface Nodepublic Node getOccupant()
Node
getOccupant in interface Nodepublic boolean isAvailable()
Node
isAvailable in interface Nodepublic void setOccupant(Node occupant)
Node
setOccupant in interface Nodeoccupant - 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 | |||||||||