|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsale.Step
This class is an implementation of the Time interface.
A Long value is used to represent the time.
| Constructor Summary | |
Step()
Creates a new step with default starting time 0. |
|
Step(Long lInitTime)
Creates a new step with the given long value as the starting time. |
|
| Method Summary | |
Object |
getDefaultInterval()
Get the default time interval. |
Object |
getTime()
Get the current time. |
Comparable |
getTimeStamp(long lStampNumber)
Create and return a time stamp. |
void |
goAhead(Object oInterval)
Increase the time by the given interval. |
void |
setTime(Object oTime)
Set the given Long as the new time value. |
String |
toString()
Return the current time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Step()
public Step(Long lInitTime)
lInitTime - a Long: the initial time.| Method Detail |
public void setTime(Object oTime)
throws IllegalArgumentException
setTime in interface TimeoTime - the new time value.
IllegalArgumentException - if the given object is not convertible to a Longpublic Object getTime()
getTime in interface Time
public void goAhead(Object oInterval)
throws IllegalArgumentException
goAhead in interface TimeoInterval - the interval to increase time by
IllegalArgumentException - if the given object is not convertible to a Longpublic Object getDefaultInterval()
getDefaultInterval in interface Timepublic Comparable getTimeStamp(long lStampNumber)
getTimeStamp in interface TimelStampNumber - the number of the stamp
public String toString()
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||