Class BoardPhysicalCoordinates
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.BoardPhysicalCoordinates
@Immutable public class BoardPhysicalCoordinates extends Object
The physical coordinates of a board. This would be
PhysicalCoords
except it has a different serialization form for backward-compatibility.-
Constructor Summary
Constructors Constructor Description BoardPhysicalCoordinates(int cabinet, int frame, Integer board)
Create with given coordinates.BoardPhysicalCoordinates(PhysicalCoords coords)
Create with given coordinates. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Integer
getBoard()
int
getCabinet()
int
getFrame()
int
hashCode()
PhysicalCoords
toStandardCoords()
Convert to the standard coordinate scheme.String
toString()
-
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
-