Class BoardRecord
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.BoardRecord
Model of a board, for configuration purposes.
- Author:
- Donal Fellows
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetBmpId()getBoard()getFrame()getId()getJobId()getX()getY()getZ()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidsetBmpSerial(String bmpSerial) voidvoidsetCabinet(Integer cabinet) voidsetEnabled(Boolean enabled) voidvoidvoidsetIpAddress(String ipAddress) voidvoidsetLastPowerOff(Instant lastPowerOff) voidsetLastPowerOn(Instant lastPowerOn) voidsetMachineName(String machineName) voidsetPhysicalSerial(String physicalSerial) voidsetPowered(boolean power) voidsetReports(List<BoardIssueReport> reports) voidvoidvoid
- 
Constructor Details- 
BoardRecordpublic 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.
 
- 
isIdPresentpublic 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.
 
- 
isTriadCoordPresentpublic 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.
 
- 
isPhysicalCoordPresentpublic 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.
 
- 
isAddressPresentpublic boolean isAddressPresent()- Returns:
- Whether we have an IP address.
 
- 
isEnabledpublic boolean isEnabled()- Returns:
- Whether the board is enabled.
 
- 
isEnabledDefinedpublic 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.
 
- 
isJobAllocatedpublic 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.
 
- 
isPoweredpublic boolean isPowered()- Returns:
- Whether this board is powered on.
 
- 
setPoweredpublic 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.
 
 
-