| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Time
Interface used by implementations of the Timer interface.
 
So, it is possible for a timer to deal with different time formats.
| Method Summary | |
|---|---|
 java.lang.Object | 
getDefaultInterval()
Get the default interval to be used by timers.  | 
 java.lang.Object | 
getTime()
Get the current time.  | 
 java.lang.Comparable<java.lang.String> | 
getTimeStamp(long lStampNumber)
Create and return a time stamp.  | 
 void | 
goAhead(java.lang.Object oInterval)
Increases the current time by the given interval.  | 
 void | 
setTime(java.lang.Object oTime)
Set the time.  | 
| Method Detail | 
|---|
void setTime(java.lang.Object oTime)
             throws java.lang.IllegalArgumentException
oTime - the time to be set
java.lang.IllegalArgumentException - if the time does not meet the time object's class or format
 requirementsjava.lang.Object getTime()
The returned object should have a useful toString() method, so that
 the time can be printed in a meaningful way.
void goAhead(java.lang.Object oInterval)
             throws java.lang.IllegalArgumentException
oInterval - the interval
java.lang.IllegalArgumentException - if the interval does not meet the time object's class or format
 requirementsjava.lang.Object getDefaultInterval()
This method is required for calls of Timer.goAhead() before the
 Timer.setInterval() method was called.
java.lang.Comparable<java.lang.String> getTimeStamp(long lStampNumber)
The returned time stamps have to be in a natural order that is identical to the order of creation. A good idea would be a String consisting of the time in a correctly sortable format followed by a value representing the stamp number in this time interval.
More formally two time stamps a and b must fulfil the following conditions:
a.compareTo (b) < 0 iff a was obtained before b.a.compareTo (b) > 0 iff a was obtained after b.a.compareTo (b) == 0 iff a was obtained at the same time as
       b, i.e. iff a == b.
lStampNumber - the number of the stamp
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||