Class ApplicationRun
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.ApplicationRun
- All Implemented Interfaces:
SerializableMessage
A request to run an application. The application code must have been
placed at the location
SystemVariableDefinition.system_sdram_base_address points at. There
is no response payload.
Calls proc_start_app() in scamp-app.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, scpRequestHeaderFields inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
sdpHeader -
Constructor Summary
ConstructorsConstructorDescriptionApplicationRun(AppID appID, @Valid HasChipLocation chip, Collection<@ValidP Integer> processors) ApplicationRun(AppID appId, @Valid HasChipLocation chip, Collection<@ValidP Integer> processors, boolean wait) -
Method Summary
Modifier and TypeMethodDescriptiongetSCPResponse(ByteBuffer buffer) Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
addToBufferMethods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
ApplicationRun
public ApplicationRun(AppID appID, @Valid @Valid HasChipLocation chip, Collection<@ValidP Integer> processors) - Parameters:
appID- The ID of the application to runchip- The coordinates of the chip to run onprocessors- The processors of the chip to run on, between 1 and 17
-
ApplicationRun
public ApplicationRun(AppID appId, @Valid @Valid HasChipLocation chip, Collection<@ValidP Integer> processors, boolean wait) - Parameters:
appId- The ID of the application to runchip- The coordinates of the chip to run onprocessors- The processors of the chip to run on, between 1 and 17wait- True if the processors should enter a "wait" state on starting
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequestParse the response to this message.- Specified by:
getSCPResponsein classSCPRequest<EmptyResponse>- Parameters:
buffer- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-