java.lang.Object
org.yamcs.tctm.AbstractCommandPostProcessor
org.yamcs.pus.PusCommandPostprocessor
- All Implemented Interfaces:
CommandPostprocessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandOptionprotected CcsdsSeqCountFillerprotected CucTimeEncoderFields inherited from class org.yamcs.tctm.AbstractCommandPostProcessor
commandHistoryPublisher, log, timeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the size of the binary packet for this command.voidinit(String yamcsInstance, YConfiguration config) Called to initialise the postprocessor and set the cmd hist publisher (used to publish command acknowledgments), the timeService (required to timestamp acks) and the configurationbyte[]processes the command and returns the binary buffer.Methods inherited from class org.yamcs.tctm.AbstractCommandPostProcessor
failCommand, setCommandHistoryPublisher
-
Field Details
-
OPTION_SCHEDULE_TIME
-
seqFiller
-
timeEncoder
-
-
Constructor Details
-
PusCommandPostprocessor
public PusCommandPostprocessor()
-
-
Method Details
-
init
Description copied from interface:CommandPostprocessorCalled to initialise the postprocessor and set the cmd hist publisher (used to publish command acknowledgments), the timeService (required to timestamp acks) and the configuration- Specified by:
initin interfaceCommandPostprocessor- Overrides:
initin classAbstractCommandPostProcessor
-
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)- Returns:
- the processed command or null if the command cannot be processed
-
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.
- Returns:
- the size of the binary packet which the method
CommandPostprocessor.process(PreparedCommand)will return.
-