Package org.yamcs.algorithms
Class AlgorithmFunctions
java.lang.Object
org.yamcs.algorithms.AlgorithmFunctions
Library of functions available from within Algorithm scripts using this naming scheme:
The java method AlgorithmFunctions.[method]
is available in scripts as Yamcs.[method]
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalibrate raw value according to the calibration rule of the given parametervoid
Deprecated.void
Deprecated.void
Deprecated.void
Print a debug message in the Yamcs log.void
Deprecated.void
Deprecated.void
Deprecated.void
Print an error message in the Yamcs log.void
Deprecated.void
Deprecated.void
Deprecated.instance()
long
letohl
(int value) Little endian to hostvoid
Print a message in the Yamcs log.returns the processor name if the algorithm is running in a processor or null otherwiselong
void
Deprecated.void
Deprecated.void
Deprecated.void
Print a trace message in the Yamcs log.void
Print a warning message in the Yamcs log.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.
-
Field Details
-
DEFAULT_SOURCE
- See Also:
-
-
Constructor Details
-
AlgorithmFunctions
-
-
Method Details
-
calibrate
Calibrate raw value according to the calibration rule of the given parameter- Returns:
- a Float or String object
-
instance
-
processorTimeMillis
public long processorTimeMillis() -
processorTime
-
trace
Print a trace message in the Yamcs log. If tracing is enabled on the algorithm, it is also added to the trace log. -
debug
Print a debug message in the Yamcs log. If tracing is enabled on the algorithm, it is also added to the trace log. -
log
Print a message in the Yamcs log. If tracing is enabled on the algorithm, it is also added to the trace log. -
warn
Print a warning message in the Yamcs log. If tracing is enabled on the algorithm, it is also added to the trace log. -
error
Print an error message in the Yamcs log. If tracing is enabled on the algorithm, it is also added to the trace log. -
info
Deprecated. -
info
Deprecated. -
info
Deprecated. -
watch
Deprecated. -
watch
Deprecated. -
watch
Deprecated. -
warning
Deprecated. -
warning
Deprecated. -
warning
Deprecated. -
distress
Deprecated. -
distress
Deprecated. -
distress
Deprecated. -
critical
Deprecated. -
critical
Deprecated. -
critical
Deprecated. -
severe
Deprecated. -
severe
Deprecated. -
severe
Deprecated. -
processorName
returns the processor name if the algorithm is running in a processor or null otherwise -
letohl
public long letohl(int value) Little endian to host
-