AIILE.gridworld.util.node
Interface Node

All Known Implementing Classes:
GridNode

public interface Node

The base interface of all nodes in the GridWorld environment. All nodes should implement this interface.


Method Summary
 GridHint getHint()
          Provides a hint about the node
 NodeDisplay getNodeDisplay()
          returns the node's display component
 java.lang.Object getNodeObject()
          Gets a generic object that the node can hold
 java.util.List getPercepts()
          This provides a list of properties for this node.
 java.lang.String getType()
          Returns the type of node that this is
 void setNodeDisplay(NodeDisplay comp)
          sets the nodes display component
 void setNodeObject(java.lang.Object o)
          Sets a generic object the the node can hold
 void setType(java.lang.String t)
          This sets the type of node that is
 java.lang.String toString()
          Provides command line output
 

Method Detail

getNodeObject

public java.lang.Object getNodeObject()
Gets a generic object that the node can hold


setNodeObject

public void setNodeObject(java.lang.Object o)
Sets a generic object the the node can hold


getNodeDisplay

public NodeDisplay getNodeDisplay()
returns the node's display component


setNodeDisplay

public void setNodeDisplay(NodeDisplay comp)
sets the nodes display component


getType

public java.lang.String getType()
Returns the type of node that this is


setType

public void setType(java.lang.String t)
This sets the type of node that is


toString

public java.lang.String toString()
Provides command line output


getHint

public GridHint getHint()
Provides a hint about the node


getPercepts

public java.util.List getPercepts()
This provides a list of properties for this node. Example: the start point, a pit or some gold.