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:
  • Field Details

    • 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 Details

  • Method Details

    • 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 from
      locationInBits - - number of bits to count
    • compareTo

      public int compareTo(SequenceEntry se)
      Specified by:
      compareTo in interface Comparable<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)