Class CountState
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<CountState.Response>
uk.ac.manchester.spinnaker.messages.scp.CountState
- All Implemented Interfaces:
SerializableMessage
public class CountState extends SCPRequest<CountState.Response>
A request to get a count of the cores in a particular state. The
response payload is the integer count.
Actual adding up of states is in proc_process()
and
p2p_region()
in scamp-cmd.c
. This is the main use of
point-to-point signals (and the only one exposed to users).
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CountState.Response
An SCP response to a request for the number of cores in a given state. -
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 CountState(AppID appID, CPUState state)
-
Method Summary
Modifier and Type Method Description CountState.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
CountState
- Parameters:
appID
- The ID of the application to count states ofstate
- The state to count
-
-
Method Details
-
getSCPResponse
public CountState.Response getSCPResponse(ByteBuffer buffer) throws UnexpectedResponseCodeExceptionDescription copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<CountState.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-