|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.Step
public class Step
This class is an implementation of the Time
interface.
A Long value is used to represent the time.
Field Summary | |
---|---|
private java.lang.Long |
m_lDefaultInterval
Default interval. |
private java.lang.Long |
m_lTime
Current time. |
Constructor Summary | |
---|---|
Step()
Creates a new step with default starting time 0. |
|
Step(java.lang.Long lInitTime)
Creates a new step with the given long value as the starting time. |
Method Summary | |
---|---|
java.lang.Object |
getDefaultInterval()
Get the default time interval. |
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)
Increase the time by the given interval. |
void |
setTime(java.lang.Object oTime)
Set the given Long as the new time value. |
java.lang.String |
toString()
Return the current time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.Long m_lTime
private java.lang.Long m_lDefaultInterval
Constructor Detail |
---|
public Step()
public Step(java.lang.Long lInitTime)
lInitTime
- a Long: the initial time.Method Detail |
---|
public void setTime(java.lang.Object oTime) throws java.lang.IllegalArgumentException
setTime
in interface Time
oTime
- the new time value.
java.lang.IllegalArgumentException
- if the given object is not convertible to a Longpublic java.lang.Object getTime()
getTime
in interface Time
public void goAhead(java.lang.Object oInterval) throws java.lang.IllegalArgumentException
goAhead
in interface Time
oInterval
- the interval to increase time by
java.lang.IllegalArgumentException
- if the given object is not convertible to a Longpublic java.lang.Object getDefaultInterval()
getDefaultInterval
in interface Time
public java.lang.Comparable<java.lang.String> getTimeStamp(long lStampNumber)
getTimeStamp
in interface Time
lStampNumber
- the number of the stamp
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |