java.lang.Object
org.yamcs.mdb.AbstractDataEncoder
- All Implemented Interfaces:
AlgorithmExecutor,DataEncoder
- Direct Known Subclasses:
LeadingSizeBinaryEncoder,ReverseBinaryEncoder,TimeBinaryEncoder
stubbed implementation of DataEncoder that "removes" all the AlgorithmExecutor methods -
to be used until the data decoders will work as algorithms, or for data decoders that do not need any input
parameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(long acqTime, long genTime, ProcessingData data) Runs the associated algorithm with the latest InputParametersorg.yamcs.xtce.AlgorithmintgetLookbackSize(org.yamcs.xtce.Parameter parameter) Set<org.yamcs.xtce.Parameter>booleanupdate(ProcessingData data) Update the input data and return true if the algorithm should runMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.algorithms.AlgorithmExecutor
dispose, getInputList, getOutputListMethods inherited from interface org.yamcs.mdb.DataEncoder
encodeRaw
-
Constructor Details
-
AbstractDataEncoder
public AbstractDataEncoder()
-
-
Method Details
-
getAlgorithm
public org.yamcs.xtce.Algorithm getAlgorithm()- Specified by:
getAlgorithmin interfaceAlgorithmExecutor
-
getRequiredParameters
-
getLookbackSize
public int getLookbackSize(org.yamcs.xtce.Parameter parameter) -
update
Update the input data and return true if the algorithm should run- Specified by:
updatein interfaceAlgorithmExecutor- Returns:
- true if the algorithm should run
-
execute
Runs the associated algorithm with the latest InputParameters- Specified by:
executein interfaceAlgorithmExecutor- Returns:
- the output parameters, if any
-
getExecutionContext
- Specified by:
getExecutionContextin interfaceAlgorithmExecutor- Returns:
- the execution context in which the executor activates
-