java.lang.Object
org.yamcs.algorithms.AlgorithmExecutionContext
A context is a collection of active algorithms. Each algorithm has only one instance active in a given context.
There is normally a global context in a processor and a few contexts related to the command verifiers.
The process(long, ProcessingData) method will trigger calling all the active algorithms from this context in
order.
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmExecutionContext(String contextName, ProcessorData procData, int maxErrCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlgorithm(ActiveAlgorithm activeAlgorithm) booleancontainsAlgorithm(String algoFqn) voiddisableTracing(org.yamcs.xtce.Algorithm algo) voidenableTracing(org.yamcs.xtce.Algorithm algo) getAlgorithm(String algoFqn) org.yamcs.protobuf.AlgorithmStatusgetAlgorithmStatus(String algoFqn) getMdb()getName()voidvoidprocess(long acqTime, ProcessingData data) Update the input data and run the affected algorithmsremoveAlgorithm(String algoFqn) remove the active algorithm with the given identifier.removeAlgorithm(org.yamcs.xtce.Algorithm algorithm)
-
Constructor Details
-
AlgorithmExecutionContext
-
-
Method Details
-
process
Update the input data and run the affected algorithmsAdd the result of the algorithms to the processing data
-
getName
-
containsAlgorithm
-
addAlgorithm
-
removeAlgorithm
remove the active algorithm with the given identifier.The algorithm will not be called in subsequent calls to
process(long, ProcessingData)- Parameters:
algoFqn-- Returns:
- the active algorithm removed or null if there was no active algorithm
-
removeAlgorithm
-
getActiveAlgorithms
-
getProcessorData
-
getMdb
-
getEventProducer
-
enableTracing
public void enableTracing(org.yamcs.xtce.Algorithm algo) -
disableTracing
public void disableTracing(org.yamcs.xtce.Algorithm algo) -
getTrace
-
logTrace
-
getAlgorithm
-
getAlgorithmStatus
-