Class PGSegment

java.lang.Object
org.yamcs.parameterarchive.PGSegment

public class PGSegment extends Object
Parameter Group segment - keeps references to Time and Value segments for a given parameter group and segment.

This class is used during the parameter archive buildup

  • Constructor Details

    • PGSegment

      public PGSegment(int parameterGroupId, long segmentStart, IntArray parameterIds)
  • Method Details

    • addRecord

      public void addRecord(long instant, List<BasicParameterValue> sortedPvList)
      Add a new record instant goes into the timeSegment the values goes each into a value segment the sortedPvList list has to be already sorted according to the definition of the ParameterGroup
      Parameters:
      instant -
      sortedPvList -
    • consolidate

      public void consolidate()
    • getParameterValue

      public ParameterValueSegment getParameterValue(int pid)
    • getInterval

      public long getInterval()
    • getSegmentStart

      public long getSegmentStart()
    • getSegmentEnd

      public long getSegmentEnd()
      Returns:
      timestamp of the last parameter in this segment
    • getTimeSegment

      public SortedTimeSegment getTimeSegment()
    • getParameterGroupId

      public int getParameterGroupId()
    • getParameterId

      public int getParameterId(int index)
    • getConsolidatedValueSegments

      public List<BaseSegment> getConsolidatedValueSegments()
    • getConsolidatedRawValueSegments

      public List<BaseSegment> getConsolidatedRawValueSegments()
    • getConsolidatedParameterStatusSegments

      public List<ParameterStatusSegment> getConsolidatedParameterStatusSegments()
    • size

      public int size()
    • toString

      public String toString()
      Overrides:
      toString in class Object