Package org.yamcs.xtce
Class SequenceContainer
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.Container
-
- org.yamcs.xtce.SequenceContainer
-
- All Implemented Interfaces:
Serializable
public class SequenceContainer extends Container
A list of raw parameters, parameter segments, stream segments, containers, or container segments. Sequence containers may inherit from other sequence containers; when they do, the sequence in the parent SequenceContainer is 'inherited' and if the location of entries in the child sequence is not specified, it is assumed to start where the parent sequence ended. Parent sequence containers may be marked as "abstract". The idle pattern is part of any unallocated space in the Container.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.yamcs.xtce.NameDescription
NameDescription.Builder<T extends NameDescription.Builder<T>>
-
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.Container
baseContainer, restrictionCriteria, sizeInBits
-
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
-
Constructor Summary
Constructors Constructor Description SequenceContainer(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAncillaryData(AncillaryData data)Stores the given ancillary data.voidaddEntry(SequenceEntry entry)Add single entry to list of entriesSequenceContainergetBaseContainer()List<SequenceEntry>getEntryList()Returns the list of the entries in the sequence container.MatchCriteriagetRestrictionCriteria()restriction criteria related to inheritance from the base containervoidinsertEntry(int idx, SequenceEntry entry)Insert the given entry in position idx.voidprint(PrintStream out)voidsetAncillaryData(List<AncillaryData> ancillaryData)voidsetBaseContainer(Container baseContainer)voidsetEntryList(List<SequenceEntry> entryList)StringtoString()booleanuseAsArchivePartition()voiduseAsArchivePartition(boolean useAsArchivePartition)If set to true, the XtceTmRecorder will set the qualified name of this container as the "pname" (packet name) column in the tm table.-
Methods inherited from class org.yamcs.xtce.Container
getRateInStream, getSizeInBits, setRateInStream, setRestrictionCriteria, setSizeInBits
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setLongDescription, setName, setQualifiedName, setShortDescription
-
-
-
-
Constructor Detail
-
SequenceContainer
public SequenceContainer(String name)
-
-
Method Detail
-
addAncillaryData
public void addAncillaryData(AncillaryData data)
Description copied from class:NameDescriptionStores the given ancillary data. If an entry already existed for the applicable name, that entry will be overriden.- Overrides:
addAncillaryDatain classNameDescription
-
setAncillaryData
public void setAncillaryData(List<AncillaryData> ancillaryData)
- Overrides:
setAncillaryDatain classNameDescription
-
getBaseContainer
public SequenceContainer getBaseContainer()
- Overrides:
getBaseContainerin classContainer
-
setBaseContainer
public void setBaseContainer(Container baseContainer)
- Overrides:
setBaseContainerin classContainer
-
getRestrictionCriteria
public MatchCriteria getRestrictionCriteria()
Description copied from class:Containerrestriction criteria related to inheritance from the base container- Overrides:
getRestrictionCriteriain classContainer- Returns:
-
addEntry
public void addEntry(SequenceEntry entry)
Add single entry to list of entries
-
insertEntry
public void insertEntry(int idx, SequenceEntry entry)Insert the given entry in position idx. Shift all the subsequent entries to the right.- Parameters:
idx-entry-
-
setEntryList
public void setEntryList(List<SequenceEntry> entryList)
-
getEntryList
public List<SequenceEntry> getEntryList()
Returns the list of the entries in the sequence container. The list is unmodifiable.- Specified by:
getEntryListin classContainer
-
useAsArchivePartition
public boolean useAsArchivePartition()
-
useAsArchivePartition
public void useAsArchivePartition(boolean useAsArchivePartition)
If set to true, the XtceTmRecorder will set the qualified name of this container as the "pname" (packet name) column in the tm table. The packet will be then visible in the front page of Yamcs web as well as in the Archive overview.If the container has a child that matches the packet, and the child also has this flag set, then the name of the child will be used instead (e.g. the name of the most specific packet will be used).
If no container having this flag matches a packet, the name of the root container will be used (even if it does not have the flag set).
- Parameters:
useAsArchivePartition-
-
print
public void print(PrintStream out)
-
-