Class MachineStateControl.BoardState
java.lang.Object
uk.ac.manchester.spinnaker.alloc.admin.MachineStateControl.BoardState
- Enclosing class:
- MachineStateControl
public final class MachineStateControl.BoardState extends Object
Access to the enablement-state of a board.
-
Field Summary
Fields Modifier and Type Field Description String
address
The IP address managed by the board's root chip.int
bmpId
The BMP id.String
bmpSerial
The BMP serial number, if known.Integer
board
The board number.int
cabinet
The cabinet number.int
frame
The frame number.int
id
The board ID.int
machineId
The machine ID.String
machineName
The name of the containing SpiNNaker machine.String
physicalSerial
The physical board serial number, if known.int
x
The X triad coordinate.int
y
The Y triad coordinate.int
z
The Z triad coordinate. -
Method Summary
Modifier and Type Method Description Optional<Integer>
getAllocatedJob()
boolean
getPower()
Optional<Instant>
getPowerOffTime()
Optional<Instant>
getPowerOnTime()
List<BoardIssueReport>
getReports()
boolean
getState()
void
setState(boolean newValue)
BoardRecord
toBoardRecord()
Convert this active object to a static record.String
toString()
-
Field Details
-
machineName
The name of the containing SpiNNaker machine. -
machineId
public final int machineIdThe machine ID. Unique. -
id
public final int idThe board ID. Unique. -
x
public final int xThe X triad coordinate. -
y
public final int yThe Y triad coordinate. -
z
public final int zThe Z triad coordinate. -
cabinet
public final int cabinetThe cabinet number. -
frame
public final int frameThe frame number. -
board
The board number. -
address
The IP address managed by the board's root chip. -
bmpSerial
The BMP serial number, if known. -
physicalSerial
The physical board serial number, if known. -
bmpId
public final int bmpIdThe BMP id.
-
-
Method Details
-
getState
public boolean getState()- Returns:
- The allocatable state of the board. If a board is not allocatable, it will not be handed out in new allocations to jobs, but can continue to be used by whatever job it is currently allocated to (if any).
-
setState
public void setState(boolean newValue)- Parameters:
newValue
- The allocatable state to set the board to.
-
getAllocatedJob
- Returns:
- What job has been allocated to the board?
-
getPower
public boolean getPower()- Returns:
- Is the board switched on?
-
getPowerOnTime
- Returns:
- When was the board last switched on?
-
getPowerOffTime
- Returns:
- When was the board last switched off?
-
getReports
- Returns:
- What issues have been logged against the board?
-
toString
-
toBoardRecord
Convert this active object to a static record.- Returns:
- The static (conceptually serialisable) record object.
-