Package org.yamcs.tctm
Class GenericCommandPostprocessor
java.lang.Object
org.yamcs.tctm.GenericCommandPostprocessor
- All Implemented Interfaces:
CommandPostprocessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the size of the binary packet for this command.voidinit(String yamcsInstance, YConfiguration config, Link link) Called to initialise the postprocessor.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 processedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.tctm.CommandPostprocessor
init
-
Field Details
-
commandHistoryListener
-
-
Constructor Details
-
GenericCommandPostprocessor
public GenericCommandPostprocessor()
-
-
Method Details
-
init
Description copied from interface:CommandPostprocessorCalled to initialise the postprocessor. The link parameter can be used to register link actions.- Specified by:
initin interfaceCommandPostprocessor
-
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 post-processor is expected to fail the command in the command history (also filling in an appropriate reason)- Specified by:
processin interfaceCommandPostprocessor- Returns:
- the processed command or null if the command cannot be processed
-
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.
-