Package org.yamcs.mdb

Class ProcessorData

java.lang.Object
org.yamcs.mdb.ProcessorData

public class ProcessorData extends Object
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 Details

  • Method Details

    • setUserData

      public <T> void setUserData(String key, T value)
      Set some object to be shared with all the users of this processor data
      Parameters:
      key -
      value -
    • getUserData

      public <T> T getUserData(String key)
      Get the instance of the user defined object if any. Returns null if no data has been set.
      Parameters:
      key -
      Returns:
    • getCalibrator

      public CalibratorProc getCalibrator(ProcessingData pdata, DataEncoding de)
      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

      public CalibratorProc getDecalibrator(DataEncoding de)
    • getEvaluator

      public MatchCriteriaEvaluator getEvaluator(MatchCriteria mc)
    • getDataDecoder

      public DataDecoder getDataDecoder(DataEncoding de)
    • getDataEncoder

      public DataEncoder getDataEncoder(DataEncoding de)
    • getMdb

      public Mdb getMdb()
    • getValuesToBePersisted

      public List<ParameterValue> getValuesToBePersisted()
      returns the parameter values for all the parameters having the persistence flag set
    • getParameterTypeProcessor

      public ParameterTypeProcessor getParameterTypeProcessor()
      Returns the parameter type processor (this is the guy that converts from raw to engineering value) used by the associated processor.
      Returns:
    • addParameterTypeListener

      public void addParameterTypeListener(ParameterTypeListener listener)
    • removeParameterTypeListener

      public void removeParameterTypeListener(ParameterTypeListener listener)
    • getEventProducer

      public EventProducer getEventProducer()
    • setEventProducer

      public void setEventProducer(EventProducer eventProducer)
    • getLastValueCache

      public LastValueCache getLastValueCache()
    • getParameterType

      public ParameterType getParameterType(Parameter parameter)
    • getParameterTypeOverrides

      public Map<Parameter,ParameterType> getParameterTypeOverrides()
    • getParameterTypeOverride

      public ParameterType getParameterTypeOverride(Parameter parameter)
    • clearParameterOverrides

      public void clearParameterOverrides(Parameter p)
    • clearParameterCalibratorOverrides

      public void clearParameterCalibratorOverrides(Parameter p)
    • setDefaultCalibrator

      public void setDefaultCalibrator(Parameter p, Calibrator defaultCalibrator)
    • setContextCalibratorList

      public void setContextCalibratorList(Parameter p, List<ContextCalibrator> contextCalibrator)
    • clearParameterAlarmOverrides

      public void clearParameterAlarmOverrides(Parameter p)
    • removeDefaultCalibrator

      public void removeDefaultCalibrator(Parameter p)
    • removeDefaultAlarm

      public void removeDefaultAlarm(Parameter p)
    • setDefaultNumericAlarm

      public void setDefaultNumericAlarm(Parameter p, NumericAlarm alarm)
    • setNumericContextAlarm

      public void setNumericContextAlarm(Parameter p, List<NumericContextAlarm> contextAlarmList)
    • setDefaultEnumerationAlarm

      public void setDefaultEnumerationAlarm(Parameter p, EnumerationAlarm alarm)
    • setEnumerationContextAlarm

      public void setEnumerationContextAlarm(Parameter p, List<EnumerationContextAlarm> contextAlarmList)
    • getYamcsInstance

      public String getYamcsInstance()
    • getProcessorConfig

      public ProcessorConfig getProcessorConfig()
    • getProcessorName

      public String getProcessorName()