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.
These entries have an index which is defining the order of the entry in the container.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The location may be relative to the start of the container (containerStart), or relative to the end of the previous entry (previousEntry) -
Field Summary
Modifier and TypeFieldDescriptionprotected Container
protected int
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 Summary
ConstructorDescriptionSequenceEntry
(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getIndex()
int
void
setIncludeCondition
(MatchCriteria includeCondition) void
setLocation
(SequenceEntry.ReferenceLocationType type, int locationInBits) Set the location of this entry in the container.void
setLocationInContainerInBits
(int locationInBits) void
void
setRepeatEntry
(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:
compareTo
in interfaceComparable<SequenceEntry>
- Parameters:
se
-- Returns:
- the difference in indexes
-
getReferenceLocation
-
getIndex
public int getIndex() -
getRepeatEntry
-
setRepeatEntry
-
getIncludeCondition
-
setIncludeCondition
-