Begin gemaakt met Events. Ik neem aan dat elk Event een Feature gaat bevatten. In de main houden we een Queue met Events vast, en we kunnen voor elk Event de feature opvragen en daarna gelijk uitvoeren!

This commit is contained in:
Bram Veenboer
2011-02-02 16:34:02 +00:00
parent 1e53c39bc2
commit 4bf79db42e
3 changed files with 18 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
package pm.device.feature;
public interface Feature {
public void apply();
}

View File

@@ -0,0 +1,16 @@
package pm.event;
import pm.device.feature.Feature;
public class Event {
public Feature feature;
public Event(Feature feature) {
this.feature = feature;
}
public void Apply() {
feature.apply();
}
}