net.pakl.rl.maze
Class State2D

java.lang.Object
  extended by net.pakl.rl.State
      extended by net.pakl.rl.maze.State2D
All Implemented Interfaces:
java.io.Serializable, HasVectorRepresentation

public class State2D
extends State
implements HasVectorRepresentation

This class represents a state which corresponds to a position in a two-dimensional World

See Also:
Serialized Form

Field Summary
 int MAX_X
           
 int MAX_Y
           
static double scaleBy
           
 
Constructor Summary
State2D()
           
State2D(int X, int Y)
           
State2D(java.lang.String xCommaY)
           
 
Method Summary
 int[] binaryRepresentation()
           
 int[] complementRepresentation()
           
 double[] doubleRepresentation()
           
 boolean equals(java.lang.Object otherObject)
           
 int getX()
           
 int getY()
           
 int[] handCraftedRepresentation()
           
 int hashCode()
           
 int[] integerRepresentation()
           
 void setX(int X)
           
 void setY(int Y)
           
 java.lang.String toString()
           
 
Methods inherited from class net.pakl.rl.State
concatenateArrays, getPatchName, representAsVector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_X

public int MAX_X

MAX_Y

public int MAX_Y

scaleBy

public static double scaleBy
Constructor Detail

State2D

public State2D(int X,
               int Y)

State2D

public State2D(java.lang.String xCommaY)

State2D

public State2D()
Method Detail

handCraftedRepresentation

public int[] handCraftedRepresentation()

doubleRepresentation

public double[] doubleRepresentation()
Specified by:
doubleRepresentation in interface HasVectorRepresentation

integerRepresentation

public int[] integerRepresentation()

binaryRepresentation

public int[] binaryRepresentation()
Specified by:
binaryRepresentation in interface HasVectorRepresentation

complementRepresentation

public int[] complementRepresentation()

getX

public int getX()

getY

public int getY()

setX

public void setX(int X)

setY

public void setY(int Y)

toString

public java.lang.String toString()
Specified by:
toString in class State

hashCode

public int hashCode()
Specified by:
hashCode in class State

equals

public boolean equals(java.lang.Object otherObject)
Specified by:
equals in class State