| 
JMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProgram
to be implemented by all programs. Synchronization is not required.
Be sure to override Object.toString(), returning a
 description of what the program does. This will be called once only, prior to
 init(Context).
 
Any non-Serializable fields (e.g. driver) should be declared as
 transient.
 
| Nested Class Summary | |
|---|---|
static interface | 
IProgram.Context
context, as passed to init(Context). | 
static interface | 
IProgram.States
program states.  | 
| Method Summary | |
|---|---|
 void | 
init(IProgram.Context context)
called once, first, when the program is run.  | 
 void | 
terminate()
called last, if the program is terminated externally, to permit any tidying up to be performed.  | 
 boolean | 
wake(Alert alert)
called after init(Context), whenever IProgram.Context.getTimer().sleep() returns. | 
| Method Detail | 
|---|
void init(IProgram.Context context)
boolean wake(Alert alert)
init(Context), whenever IProgram.Context.getTimer().sleep() returns.  Time-consuming tasks should
 not be undertaken.
alert - this will be cleared automatically if not Alert.trigger(String)ed, each time wake is called.
void terminate()
  | 
JMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||