Class BoardCoords
java.lang.Object
uk.ac.manchester.spinnaker.alloc.client.BoardCoords
Generalised coordinates of a board.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
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()
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()
-