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
ConstructorDescriptionProcessorData
(String instance, String procName, Mdb mdb, ProcessorConfig config) ProcessorData
(String instance, String procName, Mdb mdb, ProcessorConfig config, Map<Parameter, ParameterValue> persistedParams) ProcessorData
(String procName, Mdb mdb, ProcessorConfig config) ProcessorData
(Processor proc, ProcessorConfig config, Map<Parameter, ParameterValue> persistedParams) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
getCalibrator
(ProcessingData pdata, DataEncoding de) returns a calibrator processor for the given data encoding.getMdb()
getParameterType
(Parameter parameter) getParameterTypeOverride
(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.returns the parameter values for all the parameters having the persistence flag setvoid
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
setEventProducer
(EventProducer eventProducer) 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
public ProcessorData(Processor proc, ProcessorConfig config, Map<Parameter, ParameterValue> persistedParams) -
ProcessorData
-
ProcessorData
-
ProcessorData
public ProcessorData(String instance, String procName, Mdb mdb, ProcessorConfig config, Map<Parameter, ParameterValue> persistedParams) - Parameters:
mdb
-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
-
getMdb
-
getValuesToBePersisted
returns the parameter values for all the parameters having the persistence flag set -
getParameterTypeProcessor
Returns the parameter type processor (this is the guy that converts from raw to engineering value) used by the associated processor.- Returns:
-
addParameterTypeListener
-
removeParameterTypeListener
-
getEventProducer
-
setEventProducer
-
getLastValueCache
-
getParameterType
-
getParameterTypeOverrides
-
getParameterTypeOverride
-
clearParameterOverrides
-
clearParameterCalibratorOverrides
-
setDefaultCalibrator
-
setContextCalibratorList
-
clearParameterAlarmOverrides
-
removeDefaultCalibrator
-
removeDefaultAlarm
-
setDefaultNumericAlarm
-
setNumericContextAlarm
-
setDefaultEnumerationAlarm
-
setEnumerationContextAlarm
-
getYamcsInstance
-
getProcessorConfig
-
getProcessorName
-