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 TypeMethodDescriptionvoidaddExecListener(AlgorithmExecListener listener) longGets the number of errors produced by the algorithmgets the last error message produced by the algorithm or null if it never produced an error messagelonggets the system time (wall clock time) when the last error message was producedgetScope()org.yamcs.protobuf.AlgorithmStatus.Builderprotected voidpropagateErrorToListeners(List<RawEngValue> inputValues, String errorMsg) voidremoveExecListener(AlgorithmExecListener listener) runAlgorithm(long acqTime, long genTime, ProcessingData data) toString()booleanupdate(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
public org.yamcs.protobuf.AlgorithmStatus.Builder getStatus() -
toString
-