|
SalesPoint v3.3 API | ||||||||
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 | |
---|---|
Object |
getDefaultInterval()
Get the default interval to be used by timers. |
Object |
getTime()
Get the current time. |
Comparable<String> |
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 |
---|
void setTime(Object oTime) throws IllegalArgumentException
oTime
- the time to be set
IllegalArgumentException
- if the time does not meet the time object's class or format
requirementsObject getTime()
The returned object should have a useful toString()
method, so that
the time can be printed in a meaningful way.
void goAhead(Object oInterval) throws IllegalArgumentException
oInterval
- the interval
IllegalArgumentException
- if the interval does not meet the time object's class or format
requirementsObject getDefaultInterval()
This method is required for calls of Timer.goAhead()
before the
Timer.setInterval()
method was called.
Comparable<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
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |