Class SystemRouterTableContext
java.lang.Object
uk.ac.manchester.spinnaker.front_end.dse.SystemRouterTableContext
- All Implemented Interfaces:
AutoCloseable
public class SystemRouterTableContext extends Object implements AutoCloseable
A context class that loads up the system router tables while it is active.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description SystemRouterTableContext(TransceiverInterface txrx, List<? extends HasCoreLocation> monitorCoreLocations)
Create a no-drop-packets context.SystemRouterTableContext(TransceiverInterface txrx, Stream<? extends HasCoreLocation> monitorCoreLocations)
Create a no-drop-packets context.SystemRouterTableContext(TransceiverInterface txrx, CoreSubsets monitorCores)
Create a no-drop-packets context. -
Method Summary
Modifier and Type Method Description void
close()
Restore the SpiNNaker board to its normal operating mode.
-
Constructor Details
-
SystemRouterTableContext
@MustBeClosed public SystemRouterTableContext(TransceiverInterface txrx, CoreSubsets monitorCores) throws IOException, ProcessException, InterruptedExceptionCreate a no-drop-packets context.- Parameters:
txrx
- The transceiver to use for talking to SpiNNaker.monitorCores
- The extra monitor cores on the SpiNNaker system that control the routers.- Throws:
IOException
- If communications fail.ProcessException
- If SCAMP or an extra monitor rejects a message.InterruptedException
- If communications are interrupted.
-
SystemRouterTableContext
@MustBeClosed public SystemRouterTableContext(TransceiverInterface txrx, List<? extends HasCoreLocation> monitorCoreLocations) throws IOException, ProcessException, InterruptedExceptionCreate a no-drop-packets context.- Parameters:
txrx
- The transceiver to use for talking to SpiNNaker.monitorCoreLocations
- The extra monitor cores on the SpiNNaker system that control the routers.- Throws:
IOException
- If communications fail.ProcessException
- If SCAMP or an extra monitor rejects a message.InterruptedException
- If communications are interrupted.
-
SystemRouterTableContext
@MustBeClosed public SystemRouterTableContext(TransceiverInterface txrx, Stream<? extends HasCoreLocation> monitorCoreLocations) throws IOException, ProcessException, InterruptedExceptionCreate a no-drop-packets context.- Parameters:
txrx
- The transceiver to use for talking to SpiNNaker.monitorCoreLocations
- The extra monitor cores on the SpiNNaker system that control the routers.- Throws:
IOException
- If communications fail.ProcessException
- If SCAMP or an extra monitor rejects a message.InterruptedException
- If communications are interrupted.
-
-
Method Details
-
close
Restore the SpiNNaker board to its normal operating mode.- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- If communications fail.ProcessException
- If SCAMP or an extra monitor rejects a message.InterruptedException
- If communications are interrupted.
-