Class BoardCoords
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.BoardCoords
@Immutable public final class BoardCoords extends Object
Basic coordinates of a board. The result of a DB query.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description BoardCoords(int x, int y, int z, int cabinet, int frame, Integer board, String address)
Make an instance from raw results.BoardCoords(Row row, boolean shroudAddress)
Construct a set of board coordinates from a database row that describes them. -
Method Summary
-
Constructor Details
-
BoardCoords
Make an instance from raw results. Uncommon.- Parameters:
x
- Logical triad X coordinatey
- Logical triad Y coordinatez
- Logical triad Z coordinatecabinet
- Physical cabinet numberframe
- Physical frame numberboard
- Physical board number, ornull
address
- IP address of ethernet chip, ornull
-
BoardCoords
Construct a set of board coordinates from a database row that describes them. The common constructor.- Parameters:
row
- Database rowshroudAddress
- Whether theaddress
should be shrouded.
-
-
Method Details
-
getX
public int getX()- Returns:
- Logical triad X coordinate.
-
getY
public int getY()- Returns:
- Logical triad Y coordinate.
-
getZ
public int getZ()- Returns:
- Logical triad Z coordinate.
-
getCabinet
public int getCabinet()- Returns:
- Physical cabinet number.
-
getFrame
public int getFrame()- Returns:
- Physical frame number.
-
getBoard
- Returns:
- Physical board number. May be
null
if the board is dead (e.g., because it is outright absent from the machine).
-
getAddress
- 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, or the board is dead (e.g., because it is outright absent from the machine).
-
equals
-
hashCode
public int hashCode() -
toString
-