Class TimeChartEvent.RankRange
java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.timechart.TimeChartEvent.RankRange
- Enclosing class:
TimeChartEvent
Inner class to define a range in terms of ranks in the trace.
- Version:
- 1.0
- Author:
- Patrick Tasse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCalculate the minimal distance between two RankRange'slongRetrieve the start rank of this range.longRetrieve the end rank of this rangetoString()
-
Constructor Details
-
RankRange
public RankRange(long firstRank, long lastRank) Standard constructor- Parameters:
firstRank- The first (earliest) rank of the rangelastRank- 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
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
-