Package org.yamcs.xtceproc
Class AbstractDataEncoder
java.lang.Object
org.yamcs.xtceproc.AbstractDataEncoder
- All Implemented Interfaces:
AlgorithmExecutor
,DataEncoder
- Direct Known Subclasses:
LeadingSizeBinaryEncoder
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
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(long acqTime, long genTime, ProcessingData data) Runs the associated algorithm with the latest InputParametersint
getLookbackSize
(Parameter parameter) boolean
update
(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, wait
Methods inherited from interface org.yamcs.xtceproc.DataEncoder
encodeRaw
-
Constructor Details
-
AbstractDataEncoder
public AbstractDataEncoder()
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceAlgorithmExecutor
-
getRequiredParameters
-
getLookbackSize
-
update
Update the input data and return true if the algorithm should run- Specified by:
update
in interfaceAlgorithmExecutor
- Returns:
- true if the algorithm should run
-
execute
Runs the associated algorithm with the latest InputParameters- Specified by:
execute
in interfaceAlgorithmExecutor
- Returns:
- the output parameters, if any
-
getExecutionContext
- Specified by:
getExecutionContext
in interfaceAlgorithmExecutor
- Returns:
- the execution context in which the executor activates
-