Class MachineStateControl.BoardState
java.lang.Object
uk.ac.manchester.spinnaker.alloc.admin.MachineStateControl.BoardState
- Enclosing class:
- MachineStateControl
Access to the enablement-state of a board.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The IP address managed by the board's root chip.final int
The BMP id.final String
The BMP serial number, if known.final Integer
The board number.final int
The cabinet number.final int
The frame number.final int
The board ID.final int
The machine ID.final String
The name of the containing SpiNNaker machine.final String
The physical board serial number, if known.final int
The X triad coordinate.final int
The Y triad coordinate.final int
The Z triad coordinate. -
Method Summary
-
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.
-