Jadex 0.96

jadex.examples.puzzle
Class Position

java.lang.Object
  extended by jadex.examples.puzzle.Position
All Implemented Interfaces:
Serializable

public class Position
extends Object
implements Serializable

A position has two coordinates.

See Also:
Serialized Form

Constructor Summary
Position()
          Create a position.
Position(int x, int y)
          Create a position.
 
Method Summary
 boolean equals(Object o)
          Test if two positions are equal.
 int getX()
          Get the x value.
 int getY()
          Get the y value.
 int hashCode()
          Calculate the hash code.
 void setX(int x)
          Set x.
 void setY(int y)
          Set y.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Position

public Position()
Create a position.


Position

public Position(int x,
                int y)
Create a position.

Method Detail

getX

public int getX()
Get the x value.


getY

public int getY()
Get the y value.


setX

public void setX(int x)
Set x.

Parameters:
x -

setY

public void setY(int y)
Set y.

Parameters:
y -

equals

public boolean equals(Object o)
Test if two positions are equal.

Overrides:
equals in class Object
Returns:
True, if equal.

hashCode

public int hashCode()
Calculate the hash code.

Overrides:
hashCode in class Object
Returns:
The hash code.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
The string representation.

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.