Package org.yamcs.algorithms
Class AlgorithmTrace
java.lang.Object
org.yamcs.algorithms.AlgorithmTrace
- All Implemented Interfaces:
AlgorithmExecListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
algorithmError
(List<RawEngValue> inputValues, String errorMsg) Called when the algorithm produced an errorvoid
algorithmRun
(List<RawEngValue> inputValues, Object returnValue, List<ParameterValue> outputValues) Called when the algorithm has run successfullytoProto()
-
Field Details
-
MAX_RUNS
public static final int MAX_RUNS- See Also:
-
MAX_LOGS
public static final int MAX_LOGS- See Also:
-
-
Constructor Details
-
AlgorithmTrace
public AlgorithmTrace()
-
-
Method Details
-
addLog
-
algorithmRun
public void algorithmRun(List<RawEngValue> inputValues, Object returnValue, List<ParameterValue> outputValues) Description copied from interface:AlgorithmExecListener
Called when the algorithm has run successfully- Specified by:
algorithmRun
in interfaceAlgorithmExecListener
- Parameters:
inputValues
- - may be null if the algorithm does not have any input values or does not keep track of themreturnValue
- - may be null if the algorithm does not return anythingoutputValues
- - may be empty if there is no output value
-
algorithmError
Description copied from interface:AlgorithmExecListener
Called when the algorithm produced an error- Specified by:
algorithmError
in interfaceAlgorithmExecListener
-
toProto
-