aima.basic
Class XYLocation

java.lang.Object
  extended by aima.basic.XYLocation

public class XYLocation
extends java.lang.Object


Constructor Summary
XYLocation(int i, int j)
           
 
Method Summary
 XYLocation down()
           
 XYLocation east()
           
 boolean equals(java.lang.Object o)
           
 int getXCoOrdinate()
           
 int getYCoOrdinate()
           
 int hashCode()
           
 XYLocation left()
           
 XYLocation locationAt(java.lang.String direction)
           
 XYLocation north()
           
 XYLocation right()
           
 XYLocation south()
           
 java.lang.String toString()
           
 XYLocation up()
           
 XYLocation west()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XYLocation

public XYLocation(int i,
                  int j)
Method Detail

getXCoOrdinate

public int getXCoOrdinate()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getYCoOrdinate

public int getYCoOrdinate()

west

public XYLocation west()

east

public XYLocation east()

north

public XYLocation north()

south

public XYLocation south()

right

public XYLocation right()

left

public XYLocation left()

up

public XYLocation up()

down

public XYLocation down()

locationAt

public XYLocation locationAt(java.lang.String direction)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object