Package org.yamcs.xtce
Class SequenceEntry
- java.lang.Object
-
- org.yamcs.xtce.SequenceEntry
-
- All Implemented Interfaces:
Serializable,Comparable<SequenceEntry>
- Direct Known Subclasses:
ArgumentEntry,ContainerEntry,FixedValueEntry,IndirectParameterRefEntry,ParameterEntry
public abstract class SequenceEntry extends Object implements Serializable, Comparable<SequenceEntry>
An abstract type used by sequence containers. An entry contains a location in the container. The location may be either fixed or dynamic, absolute (to the start or end of the enclosing container, or relative (to either the previous or subsequent entry). Entries may also repeat.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSequenceEntry.ReferenceLocationTypeThe location may be relative to the start of the container (containerStart), or relative to the end of the previous entry (previousEntry)
-
Field Summary
Fields Modifier and Type Field Description protected Containercontainerprotected intlocationInContainerInBitsif the referenceLocation is containerStart, then this is number of bits from the start for previousEntry, this is the number of bits from where the previous entry ends
-
Constructor Summary
Constructors Constructor Description SequenceEntry()SequenceEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SequenceEntry se)ContainergetContainer()MatchCriteriagetIncludeCondition()intgetIndex()intgetLocationInContainerInBits()SequenceEntry.ReferenceLocationTypegetReferenceLocation()RepeatgetRepeatEntry()SequenceContainergetSequenceContainer()voidsetIncludeCondition(MatchCriteria includeCondition)voidsetLocation(SequenceEntry.ReferenceLocationType type, int locationInBits)Set the location of this entry in the container.voidsetLocationInContainerInBits(int locationInBits)voidsetReferenceLocation(SequenceEntry.ReferenceLocationType type)voidsetRepeatEntry(Repeat repeat)
-
-
-
Field Detail
-
container
protected Container container
-
locationInContainerInBits
protected int locationInContainerInBits
if the referenceLocation is containerStart, then this is number of bits from the start for previousEntry, this is the number of bits from where the previous entry ends
-
-
Constructor Detail
-
SequenceEntry
public SequenceEntry()
-
SequenceEntry
public SequenceEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location)
-
-
Method Detail
-
getContainer
public Container getContainer()
-
getSequenceContainer
public SequenceContainer getSequenceContainer()
-
setLocationInContainerInBits
public void setLocationInContainerInBits(int locationInBits)
-
getLocationInContainerInBits
public int getLocationInContainerInBits()
-
setReferenceLocation
public void setReferenceLocation(SequenceEntry.ReferenceLocationType type)
-
setLocation
public void setLocation(SequenceEntry.ReferenceLocationType type, int locationInBits)
Set the location of this entry in the container.- Parameters:
type- - where to count the bits fromlocationInBits- - number of bits to count
-
compareTo
public int compareTo(SequenceEntry se)
- Specified by:
compareToin interfaceComparable<SequenceEntry>- Parameters:
se-- Returns:
- the difference in indexes
-
getReferenceLocation
public SequenceEntry.ReferenceLocationType getReferenceLocation()
-
getIndex
public int getIndex()
-
getRepeatEntry
public Repeat getRepeatEntry()
-
setRepeatEntry
public void setRepeatEntry(Repeat repeat)
-
getIncludeCondition
public MatchCriteria getIncludeCondition()
-
setIncludeCondition
public void setIncludeCondition(MatchCriteria includeCondition)
-
-