Class BoardCoordinates
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.BoardCoordinates
@Immutable public final class BoardCoordinates extends Object
The logical coordinates of a board. This would be
TriadCoords
except
it has a different serialization form for backward-compatibility.-
Constructor Summary
Constructors Constructor Description BoardCoordinates(int x, int y, int z)
Create with given coordinates.BoardCoordinates(TriadCoords triad)
Create with given coordinates. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getX()
int
getY()
int
getZ()
int
hashCode()
TriadCoords
toStandardCoords()
Convert to the standard coordinate scheme.String
toString()
-
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