public abstract class XTCEContainerContentModelBase extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
XTCEContainerContentModelBase.RunningStartBit
This class is a holder for the running start bit so that it can be
updated in a reference that is passed down several functions deep.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
containerDescription_ |
protected String |
containerName_ |
protected List<XTCEContainerContentEntry> |
contentList_ |
protected List<XTCEContainerEntryValue> |
contentValues_ |
protected boolean |
exhaustedBinaryBitSupply_ |
protected boolean |
showAllConditions_ |
protected List<XTCESpaceSystem> |
spaceSystems_ |
protected long |
totalContainerSize_ |
protected ArrayList<String> |
warnings_ |
| Modifier and Type | Method and Description |
|---|---|
protected long |
addArrayEntryDescription(org.omg.space.xtce.ArrayParameterRefEntryType refEntry,
XTCEContainerContentEntry contentEntry) |
protected void |
addIncludeCondition(org.omg.space.xtce.ComparisonType compare,
XTCENamedObject container,
XTCEContainerContentEntry content) |
protected void |
addIncludeConditions(org.omg.space.xtce.SequenceEntryType entry,
XTCENamedObject container,
XTCEContainerContentEntry content) |
protected long |
addRepeatEntryDescription(org.omg.space.xtce.SequenceEntryType refEntry,
XTCEContainerContentEntry contentEntry) |
protected void |
addStartBit(org.omg.space.xtce.SequenceEntryType pRefEntry,
XTCEContainerContentEntry contentEntry,
XTCEContainerContentModelBase.RunningStartBit currentStartBit,
long containerStartBit) |
protected void |
applyBinaryValue(XTCEContainerContentEntry entry) |
protected void |
applyRestriction(org.omg.space.xtce.ComparisonType compare,
XTCENamedObject container) |
protected void |
applyRestrictions(XTCENamedObject container,
org.omg.space.xtce.MatchCriteriaType restrictions,
String parentSpaceSystemPath) |
protected void |
applyUserValue(XTCEContainerContentEntry entry) |
protected void |
checkForOverlaps(long totalSizeInBits) |
protected long |
dynamicCountFromUserValue(XTCENamedObject item,
String form) |
BitSet |
encodeContainer()
Encode a raw binary BitSet from the processed container content model
for potential file or wire transmission.
|
protected long |
evaluateContainerReferenceLocation(org.omg.space.xtce.SequenceEntryType cRefEntry,
XTCEContainerContentEntry contentEntry,
XTCEContainerContentModelBase.RunningStartBit currentStartBit,
long containerStartBit) |
protected void |
evaluateIncludeConditions(XTCEContainerContentEntry content) |
BitSet |
extractRawValue(XTCEContainerContentEntry currentEntry)
Extracts the raw binary value from a container where the binary of the
container has been provided to this object.
|
protected XTCETMContainer |
findContainer(String containerRef,
XTCENamedObject currentContainer) |
protected XTCEParameter |
findParameter(String parameterRef,
XTCENamedObject currentContainer) |
protected XTCETelecommand |
findTelecommand(String metaCommandRef,
XTCENamedObject currentContainer) |
long |
getBytesRequired()
Retrieve the number of bytes necessary to capture the number of bits
in this container.
|
List<XTCEContainerContentEntry> |
getContentList()
Accessor to retrieve the container content in a pre-processed series
of rows that can be iterated through.
|
String |
getDescription()
Accessor to retrieve a description of the container that this model
represents.
|
String |
getName()
Accessor to retrieve the name of the container that this model
represents.
|
long |
getTotalSize()
Retrieve the total size/length of this container in bits.
|
List<XTCEContainerEntryValue> |
getUserValues()
Retrieve the current applied list of user values.
|
List<String> |
getWarnings()
Accessor to retrieve the list of warnings when processing this
container.
|
protected boolean |
isEntryConditionSatisfied(XTCEContainerContentEntry entry) |
protected boolean |
isEntryNeedingStartBit(XTCEContainerContentEntry currentEntry) |
boolean |
isProcessingCompatible(BitSet rawBits)
Retrieve the compatibility of this container with the raw bits provided
by the caller to determine if this is the right model object to match
the binary.
|
boolean |
isValid()
Retrieve the container processing validity guess flag.
|
protected void |
processEndOfContainer(org.omg.space.xtce.BinaryDataEncodingType dataEncoding,
XTCEContainerContentModelBase.RunningStartBit currentStartBit,
long containerStartBit,
long containerStartIndex) |
protected void |
reorderItemsByStartBit() |
void |
setShowAllConditionals(boolean flag)
Sets the user preference for showing the depth into conditional
containers and aggregate members, including repeats, when the entry item
is not currently included by the include condition logic.
|
protected boolean exhaustedBinaryBitSupply_
protected List<XTCEContainerContentEntry> contentList_
protected List<XTCEContainerEntryValue> contentValues_
protected List<XTCESpaceSystem> spaceSystems_
protected long totalContainerSize_
protected boolean showAllConditions_
protected String containerName_
protected String containerDescription_
public String getName()
public String getDescription()
public List<String> getWarnings()
public final boolean isValid()
public List<XTCEContainerContentEntry> getContentList()
public List<XTCEContainerEntryValue> getUserValues()
public final long getTotalSize()
public final long getBytesRequired()
public void setShowAllConditionals(boolean flag)
flag - boolean indicating if the depth should be shown even when
the conditional is evaluated to not being present in the container.public final boolean isProcessingCompatible(BitSet rawBits) throws XTCEDatabaseException
rawBits - BitSet containing the raw binary bits of a container.XTCEDatabaseException - thrown in the event that the container
contents cannot be processed. In the event that the container has
already been processed, which is usually the case, then this method
cannot throw.public final BitSet encodeContainer() throws XTCEDatabaseException
XTCEDatabaseException - thrown in the event that the container
contents cannot be processed. In the event that the container has
already been processed, which is usually the case, then this method
cannot throw.public BitSet extractRawValue(XTCEContainerContentEntry currentEntry) throws XTCEDatabaseException
currentEntry - XTCEContainerContentEntry representing the item
that is desired for extraction on this object.XTCEDatabaseException - thrown in the event one of three things
occurs. First, the binary is not provided to this object so nothing can
be extracted. Second, in the event that the calculated starting bit
for this item exceeds the length of the binary provided. Third if the
length of the item exceeds the length of the binary provided.protected boolean isEntryNeedingStartBit(XTCEContainerContentEntry currentEntry)
protected boolean isEntryConditionSatisfied(XTCEContainerContentEntry entry)
protected void reorderItemsByStartBit()
protected long addArrayEntryDescription(org.omg.space.xtce.ArrayParameterRefEntryType refEntry,
XTCEContainerContentEntry contentEntry)
protected long addRepeatEntryDescription(org.omg.space.xtce.SequenceEntryType refEntry,
XTCEContainerContentEntry contentEntry)
protected long dynamicCountFromUserValue(XTCENamedObject item, String form)
protected void applyRestrictions(XTCENamedObject container, org.omg.space.xtce.MatchCriteriaType restrictions, String parentSpaceSystemPath)
protected void applyRestriction(org.omg.space.xtce.ComparisonType compare,
XTCENamedObject container)
protected void addIncludeConditions(org.omg.space.xtce.SequenceEntryType entry,
XTCENamedObject container,
XTCEContainerContentEntry content)
protected void addIncludeCondition(org.omg.space.xtce.ComparisonType compare,
XTCENamedObject container,
XTCEContainerContentEntry content)
protected void evaluateIncludeConditions(XTCEContainerContentEntry content)
protected XTCEParameter findParameter(String parameterRef, XTCENamedObject currentContainer) throws XTCEDatabaseException
XTCEDatabaseExceptionprotected XTCETMContainer findContainer(String containerRef, XTCENamedObject currentContainer) throws XTCEDatabaseException
XTCEDatabaseExceptionprotected XTCETelecommand findTelecommand(String metaCommandRef, XTCENamedObject currentContainer) throws XTCEDatabaseException
XTCEDatabaseExceptionprotected void applyBinaryValue(XTCEContainerContentEntry entry)
protected void applyUserValue(XTCEContainerContentEntry entry)
protected void addStartBit(org.omg.space.xtce.SequenceEntryType pRefEntry,
XTCEContainerContentEntry contentEntry,
XTCEContainerContentModelBase.RunningStartBit currentStartBit,
long containerStartBit)
protected long evaluateContainerReferenceLocation(org.omg.space.xtce.SequenceEntryType cRefEntry,
XTCEContainerContentEntry contentEntry,
XTCEContainerContentModelBase.RunningStartBit currentStartBit,
long containerStartBit)
protected void processEndOfContainer(org.omg.space.xtce.BinaryDataEncodingType dataEncoding,
XTCEContainerContentModelBase.RunningStartBit currentStartBit,
long containerStartBit,
long containerStartIndex)
protected void checkForOverlaps(long totalSizeInBits)
Copyright © 2015–2019. All rights reserved.