Action en Target systeem omgepast naar rudimentair Task systeem om Continuous Tasks straks mogelijk te maken. Momenteel zijn de aanpassingen alleen doorgevoerd in de JIntellitypeDevice en ExampleApplication.

This commit is contained in:
2011-02-12 16:30:17 +00:00
parent 24cedc16a6
commit 6550062bc1
17 changed files with 118 additions and 112 deletions

View File

@@ -1,7 +1,5 @@
package pm;
import pm.exception.action.TargetNotSetException;
public enum Action {
START ("start"),
TEST ("test"),
@@ -15,25 +13,11 @@ public enum Action {
REWIND ("rewind"),
MUTE ("mute"),
VOLUME_UP ("volumeUp"),
VOLUME_DOWN ("volumeDown");
protected String action;
protected Target target;
VOLUME_DOWN ("volumeDown");
Action(String action) {
protected String action;
private Action(String action) {
this.action = action;
}
public Action setTarget(Target target) {
this.target = target;
return this;
}
public Target getTarget() throws TargetNotSetException {
if (target == null) {
throw new TargetNotSetException();
}
return target;
}
}