Class UpdateRuntime
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<T>
uk.ac.manchester.spinnaker.messages.scp.FECRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.UpdateRuntime
- All Implemented Interfaces:
SerializableMessage
public class UpdateRuntime extends FECRequest<EmptyResponse>
A request to update the runtime info on a core. There is no response
payload.
This calls simulation_control_scp_callback()
in simulation.c
.
-
Field Summary
Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
argument1, argument2, argument3, BOOT_CHIP, BOOT_MONITOR_CORE, data, NO_DATA, scpRequestHeader
-
Constructor Summary
Constructors Constructor Description UpdateRuntime(HasCoreLocation core, int runTime, boolean infiniteRun, int currentTime, int numSyncSteps)
-
Method Summary
Modifier and Type Method Description EmptyResponse
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
UpdateRuntime
public UpdateRuntime(HasCoreLocation core, int runTime, boolean infiniteRun, int currentTime, int numSyncSteps)- Parameters:
core
- The SpiNNaker core to update the runtime info of.runTime
- The number of machine timesteps.infiniteRun
- Whether we are doing infinite running.currentTime
- The current simulation time.numSyncSteps
- The number of timesteps before we pause to synchronise.
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<EmptyResponse>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-