|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used by implementations of the Timer interface.
So, it is possible for a timer to deal with different time formats.
Method Summary | |
Object |
getDefaultInterval()
Get the default interval to be used by timers. |
Object |
getTime()
Get the current time. |
Comparable |
getTimeStamp(long lStampNumber)
Create and return a time stamp. |
void |
goAhead(Object oInterval)
Increases the current time by the given interval. |
void |
setTime(Object oTime)
Set the time. |
Method Detail |
public void setTime(Object oTime) throws IllegalArgumentException
oTime
- the time to be setpublic Object getTime()
The returned object should have a useful toString() method, so that the time can be printed in a meaningful way.
public void goAhead(Object oInterval) throws IllegalArgumentException
oInterval
- the intervalpublic Object getDefaultInterval()
This method is required for calls of Timer.goAhead() before the Timer.setInterval() method was called.
public Comparable 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
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |