Class SystemRouterTableContext
java.lang.Object
uk.ac.manchester.spinnaker.protocols.SystemRouterTableContext
- All Implemented Interfaces:
AutoCloseable
A context class that loads up the system router tables while it is active.
- Author:
- Donal Fellows
-
Constructor Summary
ConstructorsConstructorDescriptionSystemRouterTableContext(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 TypeMethodDescriptionvoidclose()Restore the SpiNNaker board to its normal operating mode.
-
Constructor Details
-
SystemRouterTableContext
@MustBeClosed public SystemRouterTableContext(TransceiverInterface txrx, CoreSubsets monitorCores) throws IOException, ProcessException, InterruptedException Create 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, InterruptedException Create 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, InterruptedException Create 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:
closein interfaceAutoCloseable- Throws:
IOException- If communications fail.ProcessException- If SCAMP or an extra monitor rejects a message.InterruptedException- If communications are interrupted.
-