Class BoardCoords
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.BoardCoords
Basic coordinates of a board. The result of a DB query.
- Author:
- Donal Fellows
- 
Constructor SummaryConstructorsConstructorDescriptionBoardCoords(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- 
BoardCoordsMake an instance from raw results. Uncommon.- Parameters:
- x- Logical triad X coordinate
- y- Logical triad Y coordinate
- z- Logical triad Z coordinate
- cabinet- Physical cabinet number
- frame- Physical frame number
- board- Physical board number, or- null
- address- IP address of ethernet chip, or- null
 
- 
BoardCoordsConstruct a set of board coordinates from a database row that describes them. The common constructor.- Parameters:
- row- Database row
- shroudAddress- Whether the- addressshould be shrouded.
 
 
- 
- 
Method Details- 
getXpublic int getX()- Returns:
- Logical triad X coordinate.
 
- 
getYpublic int getY()- Returns:
- Logical triad Y coordinate.
 
- 
getZpublic int getZ()- Returns:
- Logical triad Z coordinate.
 
- 
getCabinetpublic int getCabinet()- Returns:
- Physical cabinet number.
 
- 
getFramepublic int getFrame()- Returns:
- Physical frame number.
 
- 
getBoard- Returns:
- Physical board number. May be nullif the board is dead (e.g., because it is outright absent from the machine).
 
- 
getAddress- Returns:
- IP address of ethernet chip. May be nullif 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
- 
hashCodepublic int hashCode()
- 
toString
 
-