Class BMPRequest.PayloadedResponse<T>
java.lang.Object
uk.ac.manchester.spinnaker.messages.scp.SCPResponse
uk.ac.manchester.spinnaker.messages.bmp.BMPRequest.BMPResponse
uk.ac.manchester.spinnaker.messages.bmp.BMPRequest.PayloadedResponse<T>
- Type Parameters:
- T- The type of the parsed payload.
- All Implemented Interfaces:
- Supplier<T>
- Direct Known Subclasses:
- BMPReadMemory.Response,- EraseFlash.Response,- GetBMPVersion.Response,- GetFPGAResetStatus.Response,- ReadADC.Response,- ReadCANStatus.Response,- ReadFPGARegister.Response,- ReadIPAddress.Response,- ReadSerialFlash.Response,- ReadSerialFlashCRC.Response,- ReadSerialVector.Response
- Enclosing class:
- BMPRequest<T extends BMPRequest.BMPResponse>
public abstract static class BMPRequest.PayloadedResponse<T>
extends BMPRequest.BMPResponse
implements Supplier<T>
A BMP response that contains a payload of interest.
- 
Field SummaryFields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPResponseresult, sdpHeader, sequence
- 
Constructor SummaryConstructorsConstructorDescriptionPayloadedResponse(String operation, SCPCommand command, ByteBuffer buffer) Make a response object.
- 
Method SummaryModifier and TypeMethodDescriptionfinal Tget()protected abstract Tparse(ByteBuffer buffer) Parse the buffer.Methods inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPResponsethrowIfNotOK
- 
Constructor Details- 
PayloadedResponsepublic PayloadedResponse(String operation, SCPCommand command, ByteBuffer buffer) throws UnexpectedResponseCodeException Make a response object.- Parameters:
- operation- The operation that this part of.
- command- The command that this is a response to.
- buffer- The buffer to read the response from.
- Throws:
- UnexpectedResponseCodeException- If the response is not a success.
 
 
- 
- 
Method Details