public interface RepeatAction
Modifier and Type | Field and Description |
---|---|
static String |
HOUR
Interval value HOUR
|
static String |
MINUTE
Interval value MINUTE
|
static String |
SECOND
Interval value SECOND
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Every RepeatAction must return a string name to search it in
Second, Hour or Day Action lists
|
boolean |
live(RuNA runa,
double hrs)
Method defining if this process is extinct
|
void |
repeat(double elapsed)
Method incapsulating repeating action functionallity
|
void |
setName(String name)
You can set name for this RepeatAction with a help of this method
|
static final String SECOND
static final String MINUTE
static final String HOUR
void repeat(double elapsed)
elapsed
- - elapsed time in hours from previous callboolean live(RuNA runa, double hrs)
runa
- - RuNAhrs
- - elapsed time in hrsString getName()
void setName(String name)
name
- new name for RA