Revision 1447,
560 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package schedframe.scheduling.plugin; |
---|
| 2 | |
---|
| 3 | import java.util.HashMap; |
---|
| 4 | import java.util.Map; |
---|
| 5 | |
---|
| 6 | import schedframe.PluginConfiguration; |
---|
[1447] | 7 | import schedframe.events.EventType; |
---|
[477] | 8 | |
---|
| 9 | public class SchedulingPluginConfiguration implements PluginConfiguration { |
---|
| 10 | |
---|
[1447] | 11 | private Map<EventType, Object> events; |
---|
[477] | 12 | |
---|
| 13 | public SchedulingPluginConfiguration(){ |
---|
[1447] | 14 | this.events = new HashMap<EventType, Object>(2); |
---|
[477] | 15 | } |
---|
| 16 | |
---|
[1447] | 17 | public void addServedEvent(EventType eventType, Object argument){ |
---|
[477] | 18 | events.put(eventType, argument); |
---|
| 19 | } |
---|
| 20 | |
---|
[1447] | 21 | public Map<EventType, Object> getServedEvents() { |
---|
[477] | 22 | return events; |
---|
| 23 | } |
---|
| 24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.