Package org.yamcs.xtceproc
Class AbstractDataEncoder
- java.lang.Object
-
- org.yamcs.xtceproc.AbstractDataEncoder
-
- All Implemented Interfaces:
AlgorithmExecutor
,DataEncoder
- Direct Known Subclasses:
LeadingSizeBinaryEncoder
public abstract class AbstractDataEncoder extends Object implements DataEncoder
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 Constructor Description AbstractDataEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmExecutionResult
execute(long acqTime, long genTime, ProcessingData data)
Runs the associated algorithm with the latest InputParametersAlgorithm
getAlgorithm()
AlgorithmExecutionContext
getExecutionContext()
int
getLookbackSize(Parameter parameter)
Set<Parameter>
getRequiredParameters()
boolean
update(ProcessingData data)
Update the input data and return true if the algorithm should run-
Methods 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
-
-
-
-
Method Detail
-
getAlgorithm
public Algorithm getAlgorithm()
- Specified by:
getAlgorithm
in interfaceAlgorithmExecutor
-
getLookbackSize
public int getLookbackSize(Parameter parameter)
-
update
public boolean update(ProcessingData data)
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
public AlgorithmExecutionResult execute(long acqTime, long genTime, ProcessingData data)
Runs the associated algorithm with the latest InputParameters- Specified by:
execute
in interfaceAlgorithmExecutor
- Returns:
- the output parameters, if any
-
getExecutionContext
public AlgorithmExecutionContext getExecutionContext()
- Specified by:
getExecutionContext
in interfaceAlgorithmExecutor
- Returns:
- the execution context in which the executor activates
-
-