Continuous systeem afgemaakt, rollen van verschillende listeners en gatherers gecontroleerd en nutteloze exceptions verwijderd. Het nieuwe actions systeem moet nog worden doorgevoerd in de devices.

This commit is contained in:
2011-02-12 19:06:55 +00:00
parent 6550062bc1
commit 8092b678cf
18 changed files with 158 additions and 105 deletions

View File

@@ -0,0 +1,36 @@
package pm.task;
import pm.Action;
import pm.Target;
import pm.Task;
public class Continuous extends Task {
protected int sleep;
protected boolean stop;
public Continuous(Action action, Target target, int sleep) {
super(action, target);
this.sleep = sleep;
reset();
}
public Continuous(Action action, Target target) {
this(action, target, 0);
}
public void stop() {
stop = true;
}
public void reset() {
stop = false;
}
public int getSleep() {
return sleep;
}
public boolean getStop() {
return stop;
}
}