Package org.yamcs.tctm
Class IssCommandPostprocessor
java.lang.Object
org.yamcs.tctm.IssCommandPostprocessor
- All Implemented Interfaces:
CommandPostprocessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandHistoryPublisher
protected int
protected int
protected CcsdsSeqCountFiller
-
Constructor Summary
ConstructorDescriptionIssCommandPostprocessor
(String yamcsInstance) IssCommandPostprocessor
(String yamcsInstance, YConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionint
Return the size of the binary packet for this command.int
int
byte[]
processes the command and returns the binary buffer.void
setCommandHistoryPublisher
(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
-
minimumTcPacketLength
protected int minimumTcPacketLength -
maximumTcPacketLength
protected int maximumTcPacketLength -
seqFiller
-
commandHistory
-
-
Constructor Details
-
IssCommandPostprocessor
-
IssCommandPostprocessor
-
-
Method Details
-
process
Description copied from interface:CommandPostprocessor
processes 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:
process
in interfaceCommandPostprocessor
- Returns:
-
getBinaryLength
Description copied from interface:CommandPostprocessor
Return 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:
getBinaryLength
in interfaceCommandPostprocessor
- Returns:
- the size of the binary packet which the method
CommandPostprocessor.process(PreparedCommand)
will return.
-
setCommandHistoryPublisher
Description copied from interface:CommandPostprocessor
sets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed- Specified by:
setCommandHistoryPublisher
in interfaceCommandPostprocessor
-
getMinimumTcPacketLength
public int getMinimumTcPacketLength() -
getMaximumTcPacketLength
public int getMaximumTcPacketLength()
-