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, Mdb mdb, ProcessorConfig config) ProcessorData(String instance, String procName, Mdb mdb, ProcessorConfig config, Map<org.yamcs.xtce.Parameter, ParameterValue> persistedParams) ProcessorData(String procName, Mdb mdb, ProcessorConfig config) ProcessorData(Processor proc, ProcessorConfig config, Map<org.yamcs.xtce.Parameter, ParameterValue> persistedParams) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearParameterAlarmOverrides(org.yamcs.xtce.Parameter p) voidclearParameterCalibratorOverrides(org.yamcs.xtce.Parameter p) voidclearParameterOverrides(org.yamcs.xtce.Parameter p) getCalibrator(ProcessingData pdata, org.yamcs.xtce.DataEncoding de) returns a calibrator processor for the given data encoding.getDataDecoder(org.yamcs.xtce.DataEncoding de) getDataEncoder(org.yamcs.xtce.DataEncoding de) getDecalibrator(org.yamcs.xtce.DataEncoding de) getEvaluator(org.yamcs.xtce.MatchCriteria mc) getMdb()org.yamcs.xtce.ParameterTypegetParameterType(org.yamcs.xtce.Parameter parameter) org.yamcs.xtce.ParameterTypegetParameterTypeOverride(org.yamcs.xtce.Parameter parameter) Map<org.yamcs.xtce.Parameter,org.yamcs.xtce.ParameterType> Returns the parameter type processor (this is the guy that converts from raw to engineering value) used by the associated processor.<T> TgetUserData(String key) Get the instance of the user defined object if any.returns the parameter values for all the parameters having the persistence flag setvoidremoveDefaultAlarm(org.yamcs.xtce.Parameter p) voidremoveDefaultCalibrator(org.yamcs.xtce.Parameter p) voidvoidsetContextCalibratorList(org.yamcs.xtce.Parameter p, List<org.yamcs.xtce.ContextCalibrator> contextCalibrator) voidsetDefaultCalibrator(org.yamcs.xtce.Parameter p, org.yamcs.xtce.Calibrator defaultCalibrator) voidsetDefaultEnumerationAlarm(org.yamcs.xtce.Parameter p, org.yamcs.xtce.EnumerationAlarm alarm) voidsetDefaultNumericAlarm(org.yamcs.xtce.Parameter p, org.yamcs.xtce.NumericAlarm alarm) voidsetEnumerationContextAlarm(org.yamcs.xtce.Parameter p, List<org.yamcs.xtce.EnumerationContextAlarm> contextAlarmList) voidsetEventProducer(EventProducer eventProducer) voidsetNumericContextAlarm(org.yamcs.xtce.Parameter p, List<org.yamcs.xtce.NumericContextAlarm> contextAlarmList) <T> voidsetUserData(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<org.yamcs.xtce.Parameter, ParameterValue> persistedParams) -
ProcessorData
-
ProcessorData
-
ProcessorData
public ProcessorData(String instance, String procName, Mdb mdb, ProcessorConfig config, Map<org.yamcs.xtce.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
public org.yamcs.xtce.ParameterType getParameterType(org.yamcs.xtce.Parameter parameter) -
getParameterTypeOverrides
-
getParameterTypeOverride
public org.yamcs.xtce.ParameterType getParameterTypeOverride(org.yamcs.xtce.Parameter parameter) -
clearParameterOverrides
public void clearParameterOverrides(org.yamcs.xtce.Parameter p) -
clearParameterCalibratorOverrides
public void clearParameterCalibratorOverrides(org.yamcs.xtce.Parameter p) -
setDefaultCalibrator
public void setDefaultCalibrator(org.yamcs.xtce.Parameter p, org.yamcs.xtce.Calibrator defaultCalibrator) -
setContextCalibratorList
public void setContextCalibratorList(org.yamcs.xtce.Parameter p, List<org.yamcs.xtce.ContextCalibrator> contextCalibrator) -
clearParameterAlarmOverrides
public void clearParameterAlarmOverrides(org.yamcs.xtce.Parameter p) -
removeDefaultCalibrator
public void removeDefaultCalibrator(org.yamcs.xtce.Parameter p) -
removeDefaultAlarm
public void removeDefaultAlarm(org.yamcs.xtce.Parameter p) -
setDefaultNumericAlarm
public void setDefaultNumericAlarm(org.yamcs.xtce.Parameter p, org.yamcs.xtce.NumericAlarm alarm) -
setNumericContextAlarm
public void setNumericContextAlarm(org.yamcs.xtce.Parameter p, List<org.yamcs.xtce.NumericContextAlarm> contextAlarmList) -
setDefaultEnumerationAlarm
public void setDefaultEnumerationAlarm(org.yamcs.xtce.Parameter p, org.yamcs.xtce.EnumerationAlarm alarm) -
setEnumerationContextAlarm
public void setEnumerationContextAlarm(org.yamcs.xtce.Parameter p, List<org.yamcs.xtce.EnumerationContextAlarm> contextAlarmList) -
getYamcsInstance
-
getProcessorConfig
-
getProcessorName
-