Class SpiNNakerControlDummy
java.lang.Object
uk.ac.manchester.spinnaker.alloc.bmp.SpiNNakerControlDummy
- All Implemented Interfaces:
SpiNNakerControl
Dummy implementation of the SpiNNakerControl interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface uk.ac.manchester.spinnaker.alloc.bmp.SpiNNakerControl
SpiNNakerControl.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the controller and release any resources it holds.voidPing the given boards.voidpowerOff(Collection<BMPBoard> boards) Turn off boards managed by a BMP.voidpowerOnAndCheck(List<BMPBoard> boards) Switch on a collection of boards managed by a BMP on a machine and check that they've come up correctly.readBlacklist(BMPBoard board) Read a blacklist from the given board.readSerial(BMPBoard board) Read a BMP serial number from the given board.Read the temperature data from the given board.voidsetLinkOff(Link link) Turns a link off.voidwriteBlacklist(BMPBoard board, Blacklist blacklist) Write a blacklist to the given board.
-
Constructor Details
-
SpiNNakerControlDummy
public SpiNNakerControlDummy()
-
-
Method Details
-
powerOnAndCheck
public void powerOnAndCheck(List<BMPBoard> boards) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlSwitch on a collection of boards managed by a BMP on a machine and check that they've come up correctly.Note that this operation can take some time.
- Specified by:
powerOnAndCheckin interfaceSpiNNakerControl- Parameters:
boards- The local-relative boards to switch on.- Throws:
ProcessException- If a BMP sends a failure message.InterruptedException- If we're interrupted.IOException- If network I/O fails or we reach the limit on retries.
-
setLinkOff
Description copied from interface:SpiNNakerControlTurns a link off. (We never need to explicitly switch a link on; that's implicit in switching on its board.)- Specified by:
setLinkOffin interfaceSpiNNakerControl- Parameters:
link- The link to turn off.- Throws:
ProcessException- If a BMP rejects a message.IOException- If network I/O fails.InterruptedException- If the communications were interrupted.
-
powerOff
public void powerOff(Collection<BMPBoard> boards) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlTurn off boards managed by a BMP. Turning off a board also turns off its links.- Specified by:
powerOffin interfaceSpiNNakerControl- Parameters:
boards- The local-relative ids of the boards to turn off.- Throws:
ProcessException- If a BMP sends a failure message.InterruptedException- If we're interrupted.IOException- If network I/O fails or we reach the limit on retries.
-
readSerial
Description copied from interface:SpiNNakerControlRead a BMP serial number from the given board.- Specified by:
readSerialin interfaceSpiNNakerControl- Parameters:
board- The board to read from.- Returns:
- The serial number.
- Throws:
ProcessException- If a BMP sends a failure message.InterruptedException- If we're interrupted.IOException- If network I/O fails or we reach the limit on retries.
-
readTemp
Description copied from interface:SpiNNakerControlRead the temperature data from the given board.- Specified by:
readTempin interfaceSpiNNakerControl- Parameters:
board- The board to read from.- Returns:
- The temperature (and fan speed and voltage) data.
- Throws:
ProcessException- If a BMP sends a failure message.IOException- If network I/O fails or we reach the limit on retries.InterruptedException- If we're interrupted.
-
readBlacklist
public Blacklist readBlacklist(BMPBoard board) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlRead a blacklist from the given board.- Specified by:
readBlacklistin interfaceSpiNNakerControl- Parameters:
board- The board to read the blacklist from.- Returns:
- The blacklist.
- Throws:
ProcessException- If a BMP sends a failure message.InterruptedException- If we're interrupted.IOException- If network I/O fails or we reach the limit on retries.
-
writeBlacklist
public void writeBlacklist(BMPBoard board, Blacklist blacklist) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlWrite a blacklist to the given board.- Specified by:
writeBlacklistin interfaceSpiNNakerControl- Parameters:
board- The board to write the blacklist to.blacklist- The blacklist to write.- Throws:
ProcessException- If a BMP sends a failure message.InterruptedException- If we're interrupted.IOException- If network I/O fails or we reach the limit on retries.
-
ping
Description copied from interface:SpiNNakerControlPing the given boards.- Specified by:
pingin interfaceSpiNNakerControl- Parameters:
boards- The boards to ping.
-
close
public void close()Description copied from interface:SpiNNakerControlClose the controller and release any resources it holds.- Specified by:
closein interfaceSpiNNakerControl
-