|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
barsuift.simLife.time.TimeCounter
public class TimeCounter
| Constructor Summary | |
|---|---|
TimeCounter(TimeCounterState state)
Default constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(TimeCounter o)
|
boolean |
equals(java.lang.Object obj)
|
int |
getDays()
Get the number of days |
int |
getHours()
Get the number of hours |
int |
getMinutes()
Get the number of minutes |
int |
getSeconds()
Get the number of seconds |
TimeCounterState |
getState()
|
int |
hashCode()
|
void |
increment()
Increment the counter, and notify observers |
void |
synchronize()
|
java.lang.String |
toString()
Return a representation of this counter in the form " d days hh:mm:ss" |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeCounter(TimeCounterState state)
| Method Detail |
|---|
public void increment()
public int getSeconds()
public int getMinutes()
public int getHours()
public int getDays()
public TimeCounterState getState()
getState in interface Persistent<TimeCounterState>public void synchronize()
synchronize in interface Persistent<TimeCounterState>public java.lang.String toString()
d days hh:mm:ss"
toString in class java.lang.Objectpublic int compareTo(TimeCounter o)
compareTo in interface java.lang.Comparable<TimeCounter>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||