|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.timeline.Timeline<TR>
public abstract class Timeline<TR extends TimeRange>
Collection of values sorted on a time line.
| Field Summary | |
|---|---|
private TR |
lastTimeRange
Last used time range |
protected CircularList<TR> |
timeRanges
List of time ranges |
protected long |
timeRangeWidth
Time range width in milliseconds |
| Constructor Summary | |
|---|---|
protected |
Timeline(int capacity,
long timeRangeWidth)
Main constructor. |
| Method Summary | |
|---|---|
protected abstract TR |
createTimeRange(long startTimestamp,
long endTimestamp)
Create an time range (factory method). |
protected TR |
getOrCreateTimeRange(long timestamp)
Get existing time range if it already exists or create a new one |
abstract TimelineSample<TR> |
sample()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final CircularList<TR extends TimeRange> timeRanges
protected final long timeRangeWidth
private TR extends TimeRange lastTimeRange
| Constructor Detail |
|---|
protected Timeline(int capacity,
long timeRangeWidth)
capacity - Number of time rangestimeRangeWidth - Width of each time range| Method Detail |
|---|
protected abstract TR createTimeRange(long startTimestamp,
long endTimestamp)
startTimestamp - Time range startendTimestamp - Time range end
protected final TR getOrCreateTimeRange(long timestamp)
timestamp -
public abstract TimelineSample<TR> sample()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||