Package org.yamcs.mdb
Class ProcessorData
java.lang.Object
org.yamcs.mdb.ProcessorData
Holds information related and required for XTCE processing. It is separated from Processor because it has to be
usable when not a full blown processor is available (e.g. XTCE packet processing)
Contains a cache of encoders, decoders, calibrators
-
Constructor Summary
ConstructorsConstructorDescriptionProcessorData
(String instance, String procName, XtceDb xtcedb, ProcessorConfig config) ProcessorData
(Processor proc, ProcessorConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
getCalibrator
(ProcessingData pdata, DataEncoding de) returns a calibrator processor for the given data encoding.getParameterType
(Parameter parameter) Returns the parameter type processor (this is the guy that converts from raw to engineering value) used by the associated processor.<T> T
getUserData
(String key) Get the instance of the user defined object if any.void
void
void
setContextCalibratorList
(Parameter p, List<ContextCalibrator> contextCalibrator) void
setDefaultCalibrator
(Parameter p, Calibrator defaultCalibrator) void
void
setDefaultNumericAlarm
(Parameter p, NumericAlarm alarm) void
setEnumerationContextAlarm
(Parameter p, List<EnumerationContextAlarm> contextAlarmList) void
setNumericContextAlarm
(Parameter p, List<NumericContextAlarm> contextAlarmList) <T> void
setUserData
(String key, T value) Set some object to be shared with all the users of this processor data
-
Constructor Details
-
ProcessorData
-
ProcessorData
- Parameters:
xtcedb
-config
- - generate events in case of errors when processing data
-
-
Method Details
-
setUserData
Set some object to be shared with all the users of this processor data- Parameters:
key
-value
-
-
getUserData
Get the instance of the user defined object if any. Returns null if no data has been set.- Parameters:
key
-- Returns:
-
getCalibrator
returns a calibrator processor for the given data encoding. Can be null if the DataEncoding does not define a calibrator.- Parameters:
pdata
- - contains the current list of parameters being extracted (not yet added to the lastValueCache). The list is used when evaluating contexts matches and have priority over the parameters in the lastValueCache.Could be null if the calibration is not running as part of packet processing.
- Returns:
- a calibrator processor or null
-
getDecalibrator
-
getEvaluator
-
getDataDecoder
-
getDataEncoder
-
getXtceDb
-
getParameterTypeProcessor
Returns the parameter type processor (this is the guy that converts from raw to engineering value) used by the associated processor.- Returns:
-
getEventProducer
-
getLastValueCache
-
getParameterType
-
clearParameterOverrides
-
clearParameterCalibratorOverrides
-
setDefaultCalibrator
-
setContextCalibratorList
-
clearParameterAlarmOverrides
-
removeDefaultCalibrator
-
removeDefaultAlarm
-
setDefaultNumericAlarm
-
setNumericContextAlarm
-
setDefaultEnumerationAlarm
-
setEnumerationContextAlarm
-
getYamcsInstance
-
getProcessorConfig
-
getProcessorName
-