Package org.yamcs.mdb

Class ContainerProcessingContext

java.lang.Object
org.yamcs.mdb.ContainerProcessingContext

public class ContainerProcessingContext extends Object
Keeps track of where we are when processing a packet.

It embeds the ContainerProcessingResult which is an extension of ProcessingContext. This accumulates the results of the processing (i.e. the parameters extracted from the packet)

We create an object of this class for all containers processed in hierarchy (i.e. inheritance). Each time a sub-container is encountered, a new object of this class is created (because the offset in the binary starts from 0 in the sub-container), keeping the reference to the same ContainerProcessingResult/ProcessingContext.

  • Field Details

    • sequenceContainerProcessor

      public final SequenceContainerProcessor sequenceContainerProcessor
    • sequenceEntryProcessor

      public final SequenceEntryProcessor sequenceEntryProcessor
    • dataEncodingProcessor

      public final DataEncodingDecoder dataEncodingProcessor
    • provideContainerResult

      public boolean provideContainerResult
    • derivedFromRoot

      public final boolean derivedFromRoot
  • Constructor Details

  • Method Details

    • getValue

      public Value getValue(ParameterInstanceRef pir)
      Finds a parameter instance (i.e. a value) for a parameter in the current context It only returns a parameter if the instance status was {@link AcquisitionStatus#ACQUIRED)
      Parameters:
      pir -
      Returns:
      the value found or null if not value has been found
    • getIntegerValue

      public long getIntegerValue(IntegerValue iv)
    • getMdb

      public Mdb getMdb()
    • getProcessorData

      public ProcessorData getProcessorData()
    • getGenerationTime

      public long getGenerationTime()