AIILE.gridworld.util.move
Class BaseMove

java.lang.Object
  extended byAIILE.gridworld.util.move.BaseMove
All Implemented Interfaces:
Move

public class BaseMove
extends java.lang.Object
implements Move

A base class of the Move interface. This is currently used by the GridWorld. The fringe methods are not used.


Constructor Summary
BaseMove()
          Creates a new instance of BaseMove
BaseMove(Node n)
          Creates a new instance of BaseMove
 
Method Summary
 Node getCurrentNode()
          This returns the current node that moved
 java.util.List getFringeList()
          This returns the fringe list
 void setCurrentNode(Node n)
          This sets the current node that moved
 void setFringeList(java.util.List l)
          This sets a list of fringe nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMove

public BaseMove()
Creates a new instance of BaseMove


BaseMove

public BaseMove(Node n)
Creates a new instance of BaseMove

Parameters:
n - create a move with a current node
Method Detail

setCurrentNode

public void setCurrentNode(Node n)
This sets the current node that moved

Specified by:
setCurrentNode in interface Move
Parameters:
n - current node to move

setFringeList

public void setFringeList(java.util.List l)
This sets a list of fringe nodes

Specified by:
setFringeList in interface Move
Parameters:
l - list of fringe nodes

getCurrentNode

public Node getCurrentNode()
This returns the current node that moved

Specified by:
getCurrentNode in interface Move
Returns:
Node

getFringeList

public java.util.List getFringeList()
This returns the fringe list

Specified by:
getFringeList in interface Move
Returns:
java.util.List