Package org.yamcs.mdb
Interface AlgorithmCalibratorProc
- All Superinterfaces:
CalibratorProc
- All Known Implementing Classes:
TcoCalibrator
Interface to be implemented by all the java calibrators. These have been introduced in Yamcs 5.12 as a generalization
of the numerical calibrators existing in Yamcs before that version.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(CustomAlgorithm alg, AlgorithmExecutionContext ctx, YConfiguration conf, BaseDataType dtype) The init method is called once when the algorithm is loaded - that usually happens first time a parameter of this type has to be processed in a processor.Methods inherited from interface org.yamcs.mdb.CalibratorProc
calibrate, decalibrate
-
Method Details
-
init
void init(CustomAlgorithm alg, AlgorithmExecutionContext ctx, YConfiguration conf, BaseDataType dtype) The init method is called once when the algorithm is loaded - that usually happens first time a parameter of this type has to be processed in a processor.The calibrator may be expected to work in both directions (raw to engineering and engineering to row).
The calibrator is supposed to generate values corresponding to the data type they are attached to. The type is passed below in the init method.
- Parameters:
alg- - the algorithm that defines the calibrator. The text of the algorithm is used by theCalibratorFactoryto find the implementing java class but other properties may be used by the init method.ctx- - the context of the algorithm, can be used to lookup the Yamcs instance and the processor where the algorithm is runningconf- - the configuration is read from the algorithm textdtype- - the type for which the calibrator applies. Can be used by the implementing code to know which type the raw or the engineering value it should generate.
-