|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
stella.roof.RoofReceiver.RetryTask
protected class RoofReceiver.RetryTask
The timer task responsible for retries of open/close of the roof.
Prior to running it checks if its internal retry counter has not reached
its maximum, whether the last open/close has been successful, whether
the last close/open receive is valid and whether the limit switch state
is not the desired reading.
To query this task if its is scheduled for opening or closing, use the
isOpen() and isShut() method, respectively.
| Field Summary | |
|---|---|
private int |
retries
The number of retries. |
private String |
type
The type of this retry task. |
| Constructor Summary | |
|---|---|
protected |
RoofReceiver.RetryTask(String openclose)
Constructs a new retry-task. |
| Method Summary | |
|---|---|
boolean |
isOpen()
Queries the retry type for open. |
boolean |
isShut()
Queries the retry type for shut. |
void |
run()
The run method of the repetitive open/shut task. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String type
private int retries
| Constructor Detail |
|---|
protected RoofReceiver.RetryTask(String openclose)
| Method Detail |
|---|
public boolean isOpen()
public boolean isShut()
public void run()
RoofReceiver.KEY_RETRYMAXIMUM. If this number is zero, this task will
never run.RoofReceiver.KEY_RETRYSWITCHES
is compared to the aim value, either RoofReceiver.KEY_RETRYOPENAIM or
RoofReceiver.KEY_RETRYCLOSEAIM. If the current switch state already
reads as this aim value, this timer task is canceled.RoofReceiver.open(boolean) or RoofReceiver.close(boolean) method is called. No further checks
are made after the call to this method.
run in interface Runnablerun in class TimerTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||