Class BoardRecord
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.BoardRecord
public class BoardRecord extends Object
Model of a board, for configuration purposes.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description BoardRecord()
-
Method Summary
-
Constructor Details
-
BoardRecord
public BoardRecord()
-
-
Method Details
-
getId
- Returns:
- The board ID, if known.
-
setId
- Parameters:
id
- The board ID.
-
getBmpId
- Returns:
- The BMP ID.
-
setBmpId
- Parameters:
bmpId
- The BMP ID.
-
isIdPresent
public boolean isIdPresent()- Returns:
- Whether we have an ID.
-
getMachineName
- Returns:
- The machine name.
-
setMachineName
- Parameters:
machineName
- The machine name.
-
getX
- Returns:
- The board X coordinate, if known.
-
setX
- Parameters:
x
- The board X coordinate.
-
getY
- Returns:
- The board Y coordinate, if known.
-
setY
- Parameters:
y
- The board Y coordinate.
-
getZ
- Returns:
- The board Z coordinate, if known.
-
setZ
- Parameters:
z
- The board Z coordinate.
-
isTriadCoordPresent
public boolean isTriadCoordPresent()- Returns:
- Whether we have a full set of triad coordinates.
-
getCabinet
- Returns:
- The cabinet number, if known.
-
setCabinet
- Parameters:
cabinet
- The cabinet number.
-
getFrame
- Returns:
- The frame number, if known.
-
setFrame
- Parameters:
frame
- The frame number.
-
getBoard
- Returns:
- The board number, if known.
-
setBoard
- Parameters:
board
- The board number.
-
isPhysicalCoordPresent
public boolean isPhysicalCoordPresent()- Returns:
- Whether we have a full set of physical coordinates.
-
getIpAddress
- Returns:
- The board's IP address, if known.
-
setIpAddress
- Parameters:
ipAddress
- The board's IP address.
-
isAddressPresent
public boolean isAddressPresent()- Returns:
- Whether we have an IP address.
-
isEnabled
public boolean isEnabled()- Returns:
- Whether the board is enabled.
-
isEnabledDefined
public boolean isEnabledDefined()- Returns:
- Whether the board enabled state is defined.
-
setEnabled
- Parameters:
enabled
- Whether the board is enabled.
-
getJobId
- Returns:
- The ID of the job allocated to the board, if any.
-
isJobAllocated
public boolean isJobAllocated()- Returns:
- Whether a job is allocated to the board.
-
setJobId
- Parameters:
jobId
- The ID of the job allocated to the board.
-
getLastPowerOn
- Returns:
- When the board was last powered on, if known.
-
setLastPowerOn
- Parameters:
lastPowerOn
- When the board was last powered on.
-
getLastPowerOff
- Returns:
- When the board was last powered off, if known.
-
setLastPowerOff
- Parameters:
lastPowerOff
- When the board was last powered off.
-
getReports
- Returns:
- The reports associated with this board. The list is not modifiable.
-
setReports
- Parameters:
reports
- The reports associated with this board.
-
isPowered
public boolean isPowered()- Returns:
- Whether this board is powered on.
-
setPowered
public void setPowered(boolean power)- Parameters:
power
- Whether this board is powered on.
-
getBmpSerial
- Returns:
- The BMP serial number, if known.
-
setBmpSerial
- Parameters:
bmpSerial
- The BMP serial number.
-
getPhysicalSerial
- Returns:
- The physical board serial number, if known.
-
setPhysicalSerial
- Parameters:
physicalSerial
- The physical board serial number.
-