Package org.yamcs.algorithms
Class MathAlgorithmExecutor
- java.lang.Object
-
- org.yamcs.algorithms.AbstractAlgorithmExecutor
-
- org.yamcs.algorithms.MathAlgorithmExecutor
-
- All Implemented Interfaces:
AlgorithmExecutor
public class MathAlgorithmExecutor extends AbstractAlgorithmExecutor
Executes XTCE math algorithmsMathAlgorithm
All the input parameters are converted to doubles and there is one single double output parameter
-
-
Field Summary
-
Fields inherited from class org.yamcs.algorithms.AbstractAlgorithmExecutor
algorithmDef, execCtx, execListeners, inputValues, log
-
-
Constructor Summary
Constructors Constructor Description MathAlgorithmExecutor(Algorithm algorithmDef, AlgorithmExecutionContext execCtx, MathAlgorithm algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ParameterValue>
runAlgorithm(long acqTime, long genTime)
Runs the associated algorithm with the latest InputParametersprotected void
updateInput(int idx, InputParameter inputParameter, ParameterValue newValue)
Called when the given inputParameter receives a value. idx is the index of the inputParameter in the algorithm definition input list Note that all values are also collected in the inputList-
Methods inherited from class org.yamcs.algorithms.AbstractAlgorithmExecutor
addExecListener, getAlgorithm, getExecutionContext, getLookbackSize, propagateToListeners, updateParameters
-
-
-
-
Constructor Detail
-
MathAlgorithmExecutor
public MathAlgorithmExecutor(Algorithm algorithmDef, AlgorithmExecutionContext execCtx, MathAlgorithm algorithm)
-
-
Method Detail
-
runAlgorithm
public List<ParameterValue> runAlgorithm(long acqTime, long genTime)
Description copied from interface:AlgorithmExecutor
Runs the associated algorithm with the latest InputParameters- Returns:
- the outputted parameters, if any
-
updateInput
protected void updateInput(int idx, InputParameter inputParameter, ParameterValue newValue)
Description copied from class:AbstractAlgorithmExecutor
Called when the given inputParameter receives a value. idx is the index of the inputParameter in the algorithm definition input list Note that all values are also collected in the inputList- Overrides:
updateInput
in classAbstractAlgorithmExecutor
-
-