public class EventTimeComparator
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
EventTimeComparator()
EventTimeComparator is a singleton.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(metroIIcomm.Event.Time time1,
metroIIcomm.Event.Time time2)
Compare two timetags.
|
static long |
convert(long timeValue,
double fromResolution,
double toResolution)
Convert a time value from one resolution to another resolution.
|
protected EventTimeComparator()
public static long convert(long timeValue,
double fromResolution,
double toResolution)
timeValue - input time value in type 'long'fromResolution - the resolution associated with timeValuetoResolution - the resolution it's converting topublic static int compare(metroIIcomm.Event.Time time1, metroIIcomm.Event.Time time2)
time1 - the first timetag to be comparedtime2 - the second timetag to be compared