net.pakl.rl.maze
Class State2D
java.lang.Object
net.pakl.rl.State
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MAX_X
public int MAX_X
MAX_Y
public int MAX_Y
scaleBy
public static double scaleBy
State2D
public State2D(int X,
int Y)
State2D
public State2D(java.lang.String xCommaY)
State2D
public State2D()
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