Class Move

java.lang.Object
jadex.bdi.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:
  • Field Details

    • start

      protected Position start
      The start position.
    • end

      protected Position end
      The end position.
  • Constructor Details

  • Method Details

    • 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.