Begin gemaakt met devices die events kunnen sturen naar applications via main opdat actions worden uitgevoerd.
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
package pm.event;
|
||||
|
||||
import pm.device.feature.Feature;
|
||||
import pm.action.Action;
|
||||
|
||||
public class Event {
|
||||
public Feature feature;
|
||||
protected Action action;
|
||||
|
||||
public Event(Feature feature) {
|
||||
this.feature = feature;
|
||||
public Event(Action action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public void Apply() {
|
||||
feature.apply();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user