Package org.yamcs.commanding
Class CommandVerificationHandler
- java.lang.Object
-
- org.yamcs.commanding.CommandVerificationHandler
-
- All Implemented Interfaces:
CommandHistoryConsumer
public class CommandVerificationHandler extends Object implements CommandHistoryConsumer
This class implements the (post transmission) command verification.There is one handler for all the verifiers of a command.
This handler collects all command attributes, command arguments and command history events and transforms them to parameters to be given to the verifiers when they run.
-
-
Constructor Summary
Constructors Constructor Description CommandVerificationHandler(Processor yproc, PreparedCommand pc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addedCommand(PreparedCommand pc)
Called when a new command matching the filters has been added to the historyAlgorithmExecutionContext
getAlgorithmExecutionContext()
AlgorithmManager
getAlgorithmManager()
List<ParameterValue>
getCommandParameters()
Returns the collected list of pseudo parameter values related to command: command properties, command arguments and command history events.PreparedCommand
getPreparedCommand()
Processor
getProcessor()
void
start()
void
updatedCommand(org.yamcs.protobuf.Commanding.CommandId cmdId, long changeDate, String key, Value value)
Called when the history of a command matching the filters has been updated-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.cmdhistory.CommandHistoryConsumer
updatedCommand
-
-
-
-
Constructor Detail
-
CommandVerificationHandler
public CommandVerificationHandler(Processor yproc, PreparedCommand pc)
-
-
Method Detail
-
start
public void start()
-
getProcessor
public Processor getProcessor()
-
getAlgorithmExecutionContext
public AlgorithmExecutionContext getAlgorithmExecutionContext()
-
getPreparedCommand
public PreparedCommand getPreparedCommand()
-
getAlgorithmManager
public AlgorithmManager getAlgorithmManager()
-
addedCommand
public void addedCommand(PreparedCommand pc)
Description copied from interface:CommandHistoryConsumer
Called when a new command matching the filters has been added to the history- Specified by:
addedCommand
in interfaceCommandHistoryConsumer
-
updatedCommand
public void updatedCommand(org.yamcs.protobuf.Commanding.CommandId cmdId, long changeDate, String key, Value value)
Description copied from interface:CommandHistoryConsumer
Called when the history of a command matching the filters has been updated- Specified by:
updatedCommand
in interfaceCommandHistoryConsumer
-
getCommandParameters
public List<ParameterValue> getCommandParameters()
Returns the collected list of pseudo parameter values related to command: command properties, command arguments and command history events. Additional command history events may come later via updatedCommandHistoryParam
-
-