Class TimeChartEvent.RankRange

java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.timechart.TimeChartEvent.RankRange
Enclosing class:
TimeChartEvent

public class TimeChartEvent.RankRange extends Object
Inner class to define a range in terms of ranks in the trace.
Version:
1.0
Author:
Patrick Tasse
  • Constructor Details

    • RankRange

      public RankRange(long firstRank, long lastRank)
      Standard constructor
      Parameters:
      firstRank - The first (earliest) rank of the range
      lastRank - The last (latest) rank of the range
  • Method Details

    • getFirstRank

      public long getFirstRank()
      Retrieve the start rank of this range.
      Returns:
      The first rank
    • getLastRank

      public long getLastRank()
      Retrieve the end rank of this range
      Returns:
      The end rank
    • distanceFrom

      public long distanceFrom(TimeChartEvent.RankRange range)
      Calculate the minimal distance between two RankRange's
      Parameters:
      range - The other range
      Returns:
      The distance, in "number of events" between the two ranges
    • toString

      public String toString()
      Overrides:
      toString in class Object