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.
These entries have an index which is defining the order of the entry in the container.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe location may be relative to the start of the container (containerStart), or relative to the end of the previous entry (previousEntry) -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Containerprotected intif 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
ConstructorsConstructorDescriptionSequenceEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location) -
Method Summary
Modifier and TypeMethodDescriptionintintgetIndex()intvoidsetIncludeCondition(MatchCriteria includeCondition) voidsetLocation(SequenceEntry.ReferenceLocationType type, int locationInBits) Set the location of this entry in the container.voidsetLocationInContainerInBits(int locationInBits) voidvoidsetRepeatEntry(Repeat repeat)
-
Field Details
-
container
-
locationInContainerInBits
protected int locationInContainerInBitsif 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 Details
-
SequenceEntry
public SequenceEntry() -
SequenceEntry
-
-
Method Details
-
getContainer
-
getSequenceContainer
-
setLocationInContainerInBits
public void setLocationInContainerInBits(int locationInBits) -
getLocationInContainerInBits
public int getLocationInContainerInBits() -
setReferenceLocation
-
setLocation
Set the location of this entry in the container.- Parameters:
type- - where to count the bits fromlocationInBits- - number of bits to count
-
compareTo
- Specified by:
compareToin interfaceComparable<SequenceEntry>- Parameters:
se-- Returns:
- the difference in indexes
-
getReferenceLocation
-
getIndex
public int getIndex() -
getRepeatEntry
-
setRepeatEntry
-
getIncludeCondition
-
setIncludeCondition
-