Class BoardCoordinates
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.BoardCoordinates
The logical coordinates of a board. This would be
TriadCoords
except
it has a different serialization form for backward-compatibility.-
Constructor Summary
ConstructorsConstructorDescriptionBoardCoordinates
(int x, int y, int z) Create with given coordinates.BoardCoordinates
(TriadCoords triad) Create with given coordinates. -
Method Summary
-
Constructor Details
-
BoardCoordinates
public BoardCoordinates(int x, int y, int z) Create with given coordinates.- Parameters:
x
- the X coordinatey
- the Y coordinatez
- the Z coordinate
-
BoardCoordinates
Create with given coordinates.- Parameters:
triad
- the coordinates in standard form
-
-
Method Details
-
getX
public int getX()- Returns:
- the X coordinate
-
getY
public int getY()- Returns:
- the Y coordinate
-
getZ
public int getZ()- Returns:
- the Z coordinate
-
equals
-
hashCode
public int hashCode() -
toString
-
toStandardCoords
Convert to the standard coordinate scheme.- Returns:
- the coordinates
-