Package org.yamcs.algorithms
Class ActiveAlgorithm
java.lang.Object
org.yamcs.algorithms.ActiveAlgorithm
This class stores some info related to one active algorithm
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CopyOnWriteArrayList<AlgorithmExecListener>
Algorithm execution listeners -
Constructor Summary
ConstructorsConstructorDescriptionActiveAlgorithm
(Algorithm algorithm, AlgorithmExecutionContext context, AlgorithmExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExecListener
(AlgorithmExecListener listener) long
Gets the number of errors produced by the algorithmgets the last error message produced by the algorithm or null if it never produced an error messagelong
gets the system time (wall clock time) when the last error message was producedgetName()
getScope()
protected void
propagateErrorToListeners
(List<RawEngValue> inputValues, String errorMsg) void
removeExecListener
(AlgorithmExecListener listener) runAlgorithm
(long acqTime, long genTime, ProcessingData data) toString()
boolean
update
(ProcessingData data)
-
Field Details
-
execListeners
Algorithm execution listeners
-
-
Constructor Details
-
ActiveAlgorithm
public ActiveAlgorithm(Algorithm algorithm, AlgorithmExecutionContext context, AlgorithmExecutor executor)
-
-
Method Details
-
getAlgorithm
-
getExecutionContext
-
update
-
runAlgorithm
-
propagateErrorToListeners
-
addExecListener
-
removeExecListener
-
getErrorMessage
gets the last error message produced by the algorithm or null if it never produced an error message -
getErrorTime
public long getErrorTime()gets the system time (wall clock time) when the last error message was produced -
getErrorCount
public long getErrorCount()Gets the number of errors produced by the algorithm -
getScope
-
getStatus
-
getInputList
-
getOutputList
-
getTriggerSet
-
getName
-
toString
-