|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--generator2.Time
Representation of the time.
| Constructor Summary | |
Time(java.util.Properties properties,
int maxTime)
Time constructor. |
|
| Method Summary | |
int |
getCurrTime()
Returns the current time. |
int |
getMaxTime()
Returns the maximum time. |
void |
increaseCurrTime()
Increases the current time. |
static boolean |
isFirstTimeStamp(int time)
Tests whether the time stamp is the first or not. |
boolean |
isMaximumTimeExceeded()
Returns if the maximum time is exceeded. |
boolean |
isMaximumTimeReached()
Returns if the maximum time is reached. |
void |
reset()
Resets the current time. |
protected void |
setCurrTime(int newCurrTime)
Sets the current to a new value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Time(java.util.Properties properties,
int maxTime)
properties - properties of the generatormaxTime - the maximum time| Method Detail |
public int getCurrTime()
public int getMaxTime()
public void increaseCurrTime()
public boolean isMaximumTimeReached()
public static boolean isFirstTimeStamp(int time)
time - the time stamp
public boolean isMaximumTimeExceeded()
public void reset()
protected void setCurrTime(int newCurrTime)
newCurrTime - new current time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||