AIILE.gridworld.env
Class GridInfo

java.lang.Object
  extended byAIILE.gridworld.env.GridInfo
All Implemented Interfaces:
EnvironmentInfo

public class GridInfo
extends java.lang.Object
implements EnvironmentInfo


Constructor Summary
GridInfo()
          Creates a new instance of GridInfo
GridInfo(Node cNode, java.util.Vector sList)
           
GridInfo(Node cNode, java.util.Vector sList, boolean gFound, boolean aShot, boolean wDead)
           
 
Method Summary
 Node getCurrentNode()
          Gets the current node
 java.util.List getSuccessorNodes()
          Gets a list of successor nodes
 boolean isArrowShot()
          This returns true if the arrow has been shot
 boolean isGoldPickedUp()
          This returns true if the gold has been picked up
 boolean isWumpusDead()
          This returns true if the Wumpus has died
 void setArrowShot(boolean b)
           
 void setGoldPickedUp(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridInfo

public GridInfo()
Creates a new instance of GridInfo


GridInfo

public GridInfo(Node cNode,
                java.util.Vector sList)

GridInfo

public GridInfo(Node cNode,
                java.util.Vector sList,
                boolean gFound,
                boolean aShot,
                boolean wDead)
Method Detail

getCurrentNode

public Node getCurrentNode()
Description copied from interface: EnvironmentInfo
Gets the current node

Specified by:
getCurrentNode in interface EnvironmentInfo

getSuccessorNodes

public java.util.List getSuccessorNodes()
Description copied from interface: EnvironmentInfo
Gets a list of successor nodes

Specified by:
getSuccessorNodes in interface EnvironmentInfo

isArrowShot

public boolean isArrowShot()
Description copied from interface: EnvironmentInfo
This returns true if the arrow has been shot

Specified by:
isArrowShot in interface EnvironmentInfo

isGoldPickedUp

public boolean isGoldPickedUp()
Description copied from interface: EnvironmentInfo
This returns true if the gold has been picked up

Specified by:
isGoldPickedUp in interface EnvironmentInfo

setArrowShot

public void setArrowShot(boolean b)

setGoldPickedUp

public void setGoldPickedUp(boolean b)

isWumpusDead

public boolean isWumpusDead()
Description copied from interface: EnvironmentInfo
This returns true if the Wumpus has died

Specified by:
isWumpusDead in interface EnvironmentInfo