public class TimestampsSet extends Object
Timestamp to an IntervalsList.| Constructor and Description | 
|---|
| TimestampsSet()Build an empty  TimestampsSet. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(org.epics.util.time.Timestamp t)Add a  Timestampto the set. | 
| int | getSize()Get the number of  Timestampin the set. | 
| boolean | isEmpty()Check if the instance is empty. | 
| void | setTolerance(org.epics.util.time.TimeDuration tolerance)Set the  TimeDurationused to define the minimum duration of
 generatedTimeInterval. | 
| IntervalsList | toIntervalsList()Returns an  IntervalsListbuilt from a set ofTimestampusing the following algorithm: if theTimeDurationbetween twoTimestampis inferior to the defined tolerance, they are grouped
 in the sameTimeInterval. | 
public TimestampsSet()
TimestampsSet.public boolean isEmpty()
public int getSize()
Timestamp in the set.public void add(org.epics.util.time.Timestamp t)
Timestamp to the set.t - Timestamp to be added.public void setTolerance(org.epics.util.time.TimeDuration tolerance)
TimeDuration used to define the minimum duration of
 generated TimeInterval.tolerance - TimeDuration minimal durationpublic IntervalsList toIntervalsList()
IntervalsList built from a set of Timestamp
 using the following algorithm: if the TimeDuration between two
 Timestamp is inferior to the defined tolerance, they are grouped
 in the same TimeInterval. A TimeInterval duration can not
 be inferior to the defined tolerance. TODO: better algorithm ?Copyright © 2010–2015. All rights reserved.