public static class PtidesReceiver.TagComparator
Compare two events according to - time stamp - value did not find a way
to compare Tokens, therefore am comparing DoubleTokens and IntTokens
here. If other kinds of Tokens are used, this Comparer needs to be
public int compare(java.lang.Object arg0,
Compare two events according to time stamps and values.
FIXME Because there is no general compare method for tokens, I
implemented the comparison for int and double tokens. A more general
compare is required.
compare in interface java.util.Comparator
arg0 - First event.
arg1 - Second event.
-1 if event arg0 should be processed before event arg1, 0 if
they should be processed at the same time, 1 if arg1 should
be processed before arg0.