Package org.yamcs.mdb
Class ContainerProcessingContext
java.lang.Object
org.yamcs.mdb.ContainerProcessingContext
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 Summary
FieldsModifier and TypeFieldDescriptionfinal DataEncodingDecoder
final boolean
boolean
final SequenceEntryProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionContainerProcessingContext
(ProcessorData pdata, BitBuffer buffer, ContainerProcessingResult result, Subscription subscription, ContainerProcessingOptions options, boolean derivedFromRoot) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
getMdb()
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)
-
Field Details
-
sequenceContainerProcessor
-
sequenceEntryProcessor
-
dataEncodingProcessor
-
provideContainerResult
public boolean provideContainerResult -
derivedFromRoot
public final boolean derivedFromRoot
-
-
Constructor Details
-
ContainerProcessingContext
public ContainerProcessingContext(ProcessorData pdata, BitBuffer buffer, ContainerProcessingResult result, Subscription subscription, ContainerProcessingOptions options, boolean derivedFromRoot)
-
-
Method Details
-
getValue
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
-
getMdb
-
getProcessorData
-
getGenerationTime
public long getGenerationTime()
-