Class BoardCoords
java.lang.Object
uk.ac.manchester.spinnaker.alloc.client.BoardCoords
@Immutable public class BoardCoords extends Object
Generalised coordinates of a board.
-
Method Summary
Modifier and Type Method Description boolean
equals(Object other)
String
getAddress()
Get the IP address of the Ethernet chip of the board, if available.int
getBoard()
Get the number of the board within its frame.int
getCabinet()
Get the number of the cabinet containing the frame containing the board.int
getFrame()
Get the number of the frame (within the cabinet) containing the board.int
getX()
Get the triad X coordinate.int
getY()
Get the triad Y coordinate.int
getZ()
Get the triad Z coordinate.int
hashCode()
String
toString()
-
Method Details
-
getX
public int getX()Get the triad X coordinate. Range: 0-255.- Returns:
- Logical triad X coordinate.
-
getY
public int getY()Get the triad Y coordinate. Range: 0-255.- Returns:
- Logical triad Y coordinate.
-
getZ
public int getZ()Get the triad Z coordinate. Range: 0-2.- Returns:
- Logical triad Z coordinate.
-
getCabinet
public int getCabinet()Get the number of the cabinet containing the frame containing the board.- Returns:
- Physical cabinet number.
-
getFrame
public int getFrame()Get the number of the frame (within the cabinet) containing the board.- Returns:
- Physical frame number.
-
getBoard
public int getBoard()Get the number of the board within its frame.- Returns:
- Physical board number.
-
getAddress
Get the IP address of the Ethernet chip of the board, if available.- Returns:
- IP address of ethernet chip. May be
null
if the current user doesn't have permission to see the board address at this point.
-
toString
-
equals
-
hashCode
public int hashCode()
-