Package org.yamcs.xtceproc
Class XtceTmExtractor
java.lang.Object
org.yamcs.xtceproc.XtceTmExtractor
Extracts parameters out of packets based on the XTCE description
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXtceTmExtractor
(XtceDb xtcedb) Create a standalone TM extractorXtceTmExtractor
(XtceDb xtcedb, ProcessorData pdata) Create a new TM extractor with the given context -
Method Summary
Modifier and TypeMethodDescriptionprocessPacket
(byte[] b, long generationTime, long acquisitionTime) Extract one packet, starting at the root sequence containerprocessPacket
(byte[] b, long generationTime, long acquisitionTime, SequenceContainer startContainer) Extract one packet, starting at the specified container.processPacket
(BitBuffer buf, long generationTime, long acquisitionTime) Extract one packet, starting at the root sequence containerprocessPacket
(BitBuffer buf, long generationTime, long acquisitionTime, SequenceContainer startContainer) Extract one packet, starting at the specified container.void
Adds all containers and parameters to the subscriptionvoid
void
void
startProviding
(Parameter param) Adds a parameter to the current subscription list.void
startProviding
(SequenceContainer sequenceContainer) void
stopProviding
(Parameter param) void
stopProviding
(SequenceContainer sequenceContainer) toString()
-
Field Details
-
subscription
-
xtcedb
-
-
Constructor Details
-
XtceTmExtractor
Create a standalone TM extractor- Parameters:
xtcedb
-
-
XtceTmExtractor
Create a new TM extractor with the given context- Parameters:
xtcedb
-pdata
-
-
-
Method Details
-
startProviding
Adds a parameter to the current subscription list.- finds all the SequenceContainers in which this parameter may appear and adds them to the list.
- for each sequence container adds the parameter needed to instantiate the sequence container.
- if there is any
IndirectParameterRefEntry
having its alias namespace as one of the aliases ofparam
, adds it also to the subcription
- Parameters:
param
- parameter to be added to the current subscription list
-
provideAll
public void provideAll()Adds all containers and parameters to the subscription -
stopProviding
-
processPacket
Extract one packet, starting at the root sequence container -
processPacket
public ContainerProcessingResult processPacket(BitBuffer buf, long generationTime, long acquisitionTime) Extract one packet, starting at the root sequence container -
processPacket
public ContainerProcessingResult processPacket(byte[] b, long generationTime, long acquisitionTime, SequenceContainer startContainer) Extract one packet, starting at the specified container. -
processPacket
public ContainerProcessingResult processPacket(BitBuffer buf, long generationTime, long acquisitionTime, SequenceContainer startContainer) Extract one packet, starting at the specified container. -
resetStatistics
public void resetStatistics() -
getStatistics
-
startProviding
-
stopProviding
-
getSubscription
-
toString
-
setOptions
-
getOptions
-