Class BoardCoords
java.lang.Object
uk.ac.manchester.spinnaker.alloc.client.BoardCoords
Generalised coordinates of a board.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the IP address of the Ethernet chip of the board, if available.intgetBoard()Get the number of the board within its frame.intGet the number of the cabinet containing the frame containing the board.intgetFrame()Get the number of the frame (within the cabinet) containing the board.intgetX()Get the triad X coordinate.intgetY()Get the triad Y coordinate.intgetZ()Get the triad Z coordinate.inthashCode()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
nullif the current user doesn't have permission to see the board address at this point.
-
toString
-
equals
-
hashCode
public int hashCode()
-