Jadex 0.96

jadex.examples.puzzle
Class Move

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

public class Move
extends Object
implements Serializable

A move consisting of a start and an end point.

See Also:
Serialized Form

Constructor Summary
Move(Position start, Position end)
          Create a position.
 
Method Summary
 boolean equals(Object o)
          Test if two positions are equal.
 Position getEnd()
          Get the target.
 Position getStart()
          Get the start.
 int hashCode()
          Calculate the hash code.
 boolean isJumpMove()
          Test if it is a jump move.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Move

public Move(Position start,
            Position end)
Create a position.

Method Detail

getStart

public Position getStart()
Get the start.


getEnd

public Position getEnd()
Get the target.


isJumpMove

public boolean isJumpMove()
Test if it is a jump move.


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.