Package jadex.web.examples.puzzle
Class Move
- java.lang.Object
- 
- jadex.web.examples.puzzle.Move
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 
 public class Move extends java.lang.Object implements java.io.Serializable, java.lang.CloneableA move consisting of a start and an end point.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Clone the object.booleanequals(java.lang.Object o)Test if two positions are equal.PositiongetEnd()Get the target.PositiongetStart()Get the start.inthashCode()Calculate the hash code.booleanisJumpMove()Test if it is a jump move.voidsetEnd(Position end)Set the end position.voidsetStart(Position start)Set the start position.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Method Detail- 
getStartpublic Position getStart() Get the start.
 - 
getEndpublic Position getEnd() Get the target.
 - 
setStartpublic void setStart(Position start) Set the start position.
 - 
setEndpublic void setEnd(Position end) Set the end position.
 - 
isJumpMovepublic boolean isJumpMove() Test if it is a jump move.
 - 
equalspublic boolean equals(java.lang.Object o) Test if two positions are equal.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- True, if equal.
 
 - 
hashCodepublic int hashCode() Calculate the hash code.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hash code.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
clonepublic java.lang.Object clone() Clone the object.- Overrides:
- clonein class- java.lang.Object
- Returns:
- The clone.
 
 
- 
 
-