Class BoardPhysicalCoordinates
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.BoardPhysicalCoordinates
The physical coordinates of a board. This would be
PhysicalCoords
except it has a different serialization form for backward-compatibility.-
Constructor Summary
ConstructorsConstructorDescriptionBoardPhysicalCoordinates
(int cabinet, int frame, Integer board) Create with given coordinates.Create with given coordinates. -
Method Summary
-
Constructor Details
-
BoardPhysicalCoordinates
Create with given coordinates.- Parameters:
cabinet
- the cabinet IDframe
- the frame ID within the cabinetboard
- the board ID within the frame
-
BoardPhysicalCoordinates
Create with given coordinates.- Parameters:
coords
- the coordinates in standard form.
-
-
Method Details
-
getCabinet
public int getCabinet()- Returns:
- the cabinet ID
-
getFrame
public int getFrame()- Returns:
- the frame ID within the cabinet
-
getBoard
- Returns:
- the board ID within the frame
-
equals
-
hashCode
public int hashCode() -
toString
-
toStandardCoords
Convert to the standard coordinate scheme. Assumes that theboard
field is defined.- Returns:
- the coordinates
-