Class SpiNNakerControlDummy
java.lang.Object
uk.ac.manchester.spinnaker.alloc.bmp.SpiNNakerControlDummy
- All Implemented Interfaces:
- SpiNNakerControl
Dummy implementation of the SpiNNakerControl interface.
- 
Nested Class SummaryNested classes/interfaces inherited from interface uk.ac.manchester.spinnaker.alloc.bmp.SpiNNakerControlSpiNNakerControl.Factory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close the controller and release any resources it holds.voidPing the given boards.voidpowerOff(Collection<uk.ac.manchester.spinnaker.machine.board.BMPBoard> boards) Turn off boards managed by a BMP.voidpowerOnAndCheck(List<uk.ac.manchester.spinnaker.machine.board.BMPBoard> boards) Switch on a collection of boards managed by a BMP on a machine and check that they've come up correctly.readBlacklist(uk.ac.manchester.spinnaker.machine.board.BMPBoard board) Read a blacklist from the given board.readSerial(uk.ac.manchester.spinnaker.machine.board.BMPBoard board) Read a BMP serial number from the given board.readTemp(uk.ac.manchester.spinnaker.machine.board.BMPBoard board) Read the temperature data from the given board.voidsetLinkOff(Link link) Turns a link off.voidwriteBlacklist(uk.ac.manchester.spinnaker.machine.board.BMPBoard board, Blacklist blacklist) Write a blacklist to the given board.
- 
Constructor Details- 
SpiNNakerControlDummypublic SpiNNakerControlDummy()
 
- 
- 
Method Details- 
powerOnAndCheckpublic void powerOnAndCheck(List<uk.ac.manchester.spinnaker.machine.board.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 interface- SpiNNakerControl
- 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.
 
- 
setLinkOffDescription 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 interface- SpiNNakerControl
- 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.
 
- 
powerOffpublic void powerOff(Collection<uk.ac.manchester.spinnaker.machine.board.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 interface- SpiNNakerControl
- 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.
 
- 
readSerialpublic String readSerial(uk.ac.manchester.spinnaker.machine.board.BMPBoard board) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlRead a BMP serial number from the given board.- Specified by:
- readSerialin interface- SpiNNakerControl
- 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.
 
- 
readTemppublic ADCInfo readTemp(uk.ac.manchester.spinnaker.machine.board.BMPBoard board) throws ProcessException, IOException, InterruptedException Description copied from interface:SpiNNakerControlRead the temperature data from the given board.- Specified by:
- readTempin interface- SpiNNakerControl
- 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.
 
- 
readBlacklistpublic Blacklist readBlacklist(uk.ac.manchester.spinnaker.machine.board.BMPBoard board) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlRead a blacklist from the given board.- Specified by:
- readBlacklistin interface- SpiNNakerControl
- 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.
 
- 
writeBlacklistpublic void writeBlacklist(uk.ac.manchester.spinnaker.machine.board.BMPBoard board, Blacklist blacklist) throws ProcessException, InterruptedException, IOException Description copied from interface:SpiNNakerControlWrite a blacklist to the given board.- Specified by:
- writeBlacklistin interface- SpiNNakerControl
- 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.
 
- 
pingDescription copied from interface:SpiNNakerControlPing the given boards.- Specified by:
- pingin interface- SpiNNakerControl
- Parameters:
- boards- The boards to ping.
 
- 
closepublic void close()Description copied from interface:SpiNNakerControlClose the controller and release any resources it holds.- Specified by:
- closein interface- SpiNNakerControl
 
 
-