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
public class ApplicationRun extends SCPRequest<EmptyResponse>
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, scpRequestHeader
-
Constructor Summary
Constructors Constructor Description ApplicationRun(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 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
-
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: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
-