Class SpiNNakerControlDummy
java.lang.Object
uk.ac.manchester.spinnaker.alloc.bmp.SpiNNakerControlDummy
- All Implemented Interfaces:
SpiNNakerControl
public class SpiNNakerControlDummy extends Object implements 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 Constructor Description SpiNNakerControlDummy()
-
Method Summary
Modifier and Type Method Description void
ping(List<BMPBoard> boards)
Ping the given boards.void
powerOff(Collection<BMPBoard> boards)
Turn off boards managed by a BMP.void
powerOnAndCheck(List<BMPBoard> boards)
Switch on a collection of boards managed by a BMP on a machine and check that they've come up correctly.Blacklist
readBlacklist(BMPBoard board)
Read a blacklist from the given board.String
readSerial(BMPBoard board)
Read a BMP serial number from the given board.ADCInfo
readTemp(BMPBoard board)
Read the temperature data from the given board.void
setLinkOff(Link link)
Turns a link off.void
writeBlacklist(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, IOExceptionDescription copied from interface:SpiNNakerControl
Switch 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:
powerOnAndCheck
in 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:SpiNNakerControl
Turns a link off. (We never need to explicitly switch a link on; that's implicit in switching on its board.)- Specified by:
setLinkOff
in 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, IOExceptionDescription copied from interface:SpiNNakerControl
Turn off boards managed by a BMP. Turning off a board also turns off its links.- Specified by:
powerOff
in 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
public String readSerial(BMPBoard board) throws ProcessException, InterruptedException, IOExceptionDescription copied from interface:SpiNNakerControl
Read a BMP serial number from the given board.- Specified by:
readSerial
in 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:SpiNNakerControl
Read the temperature data from the given board.- Specified by:
readTemp
in 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, IOExceptionDescription copied from interface:SpiNNakerControl
Read a blacklist from the given board.- Specified by:
readBlacklist
in 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, IOExceptionDescription copied from interface:SpiNNakerControl
Write a blacklist to the given board.- Specified by:
writeBlacklist
in 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:SpiNNakerControl
Ping the given boards.- Specified by:
ping
in interfaceSpiNNakerControl
- Parameters:
boards
- The boards to ping.
-