org.ascape.model.space
Interface Node

All Superinterfaces:
Location
All Known Subinterfaces:
NodeOccupant
All Known Implementing Classes:
AllOutputViewTest.TestAgent, Cell, CellOccupant, DefaultNode, HostCell, Scape, ScapeTime

public interface Node
extends Location

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

isAvailable

boolean isAvailable()
Checks if is available.

Returns:
true, if is available

findRandomNeighbor

Node findRandomNeighbor()
Find random neighbor.

Returns:
the node

findRandomAvailableNeighbor

Node findRandomAvailableNeighbor()
Find random neighbor.

Returns:
the node

findNeighbors

java.util.List findNeighbors()
Find neighbors.

Returns:
the list

getOccupant

Node getOccupant()
Gets the occupant.

Returns:
the occupant
Throws:
java.lang.UnsupportedOperationException - if occupants are not supported.

setOccupant

void setOccupant(Node occupant)
Sets the occupant.

Parameters:
occupant - the occupant
Throws:
java.lang.UnsupportedOperationException - if occupants are not supported.


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.