|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.lang.StateObject
sophware.home.lang.BinaryObject
sophware.home.util.Timer
public class Timer
Timer is "on" when started and turns itself "off" when the
timer expires.
| Field Summary |
|---|
| Fields inherited from class sophware.home.lang.BinaryObject |
|---|
OFF, ON |
| Constructor Summary | |
|---|---|
Timer(java.lang.String name,
int duration)
Creates a Timer with the name and duration |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
void |
execute()
MacroStep implementation |
java.lang.String |
getName()
Get name |
void |
start()
Start the timer |
void |
stop()
Stop the timer |
| Methods inherited from class sophware.home.lang.BinaryObject |
|---|
isOn, setOn, stateEquals |
| Methods inherited from class sophware.home.lang.StateObject |
|---|
addStateChangeListener, fireStateChange, removeStateChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timer(java.lang.String name,
int duration)
Timer with the name and duration
name - name of this timerduration - of timer in seconds| Method Detail |
|---|
public java.lang.String getName()
getName in interface Namedpublic void start()
public void stop()
public void execute()
execute in interface MacroStepMacroSteppublic 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 | ||||||||