java.lang.Object
org.yamcs.tctm.GenericCommandPostprocessor
- All Implemented Interfaces:
CommandPostprocessor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericCommandPostprocessor(String yamcsInstance) GenericCommandPostprocessor(String yamcsInstance, YConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionintReturn the size of the binary packet for this command.byte[]processes the command and returns the binary buffer.voidsetCommandHistoryPublisher(CommandHistoryPublisher commandHistoryListener) sets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed
-
Field Details
-
commandHistoryListener
-
-
Constructor Details
-
GenericCommandPostprocessor
-
GenericCommandPostprocessor
-
-
Method Details
-
process
Description copied from interface:CommandPostprocessorprocesses the command and returns the binary buffer. Returns null if the command cannot be processed (e.g. its size does not correspond to what this processor expects). In this case the postprocessor is expected to fail the command in the command history (also filling in an appropiate reason)- Specified by:
processin interfaceCommandPostprocessor- Returns:
-
setCommandHistoryPublisher
Description copied from interface:CommandPostprocessorsets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed- Specified by:
setCommandHistoryPublisherin interfaceCommandPostprocessor
-
getBinaryLength
Description copied from interface:CommandPostprocessorReturn the size of the binary packet for this command.This is required in the frame links which bundle multiple commands together to know if the command will fit into the frame before post-processing it.
- Specified by:
getBinaryLengthin interfaceCommandPostprocessor- Returns:
- the size of the binary packet which the method
CommandPostprocessor.process(PreparedCommand)will return.
-