Changeset 1447 for DCWoRMS/branches/coolemall/src/schedframe/scheduling
- Timestamp:
- 09/24/14 15:51:26 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/schedframe/scheduling
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/scheduling/Scheduler.java
r1415 r1447 17 17 import schedframe.Initializable; 18 18 import schedframe.PluginConfiguration; 19 import schedframe.events.EventType; 19 20 import schedframe.events.scheduling.SchedulingEventType; 20 21 import schedframe.resources.Resource; … … 107 108 PluginConfiguration pluginConfig = managementSystem.getSchedulingPluginConfiguration(); 108 109 if (pluginConfig != null) { 109 Map< SchedulingEventType, Object> events = pluginConfig.getServedEvents();110 Map<EventType, Object> events = pluginConfig.getServedEvents(); 110 111 if (events != null) { 111 112 Object obj = events.get(SchedulingEventType.TIMER); -
DCWoRMS/branches/coolemall/src/schedframe/scheduling/plugin/SchedulingPluginConfiguration.java
r477 r1447 5 5 6 6 import schedframe.PluginConfiguration; 7 import schedframe.events. scheduling.SchedulingEventType;7 import schedframe.events.EventType; 8 8 9 9 public class SchedulingPluginConfiguration implements PluginConfiguration { 10 10 11 private Map< SchedulingEventType, Object> events;11 private Map<EventType, Object> events; 12 12 13 13 public SchedulingPluginConfiguration(){ 14 this.events = new HashMap< SchedulingEventType, Object>();14 this.events = new HashMap<EventType, Object>(2); 15 15 } 16 16 17 public void addServedEvent( SchedulingEventType eventType, Object argument){17 public void addServedEvent(EventType eventType, Object argument){ 18 18 events.put(eventType, argument); 19 19 } 20 20 21 public Map< SchedulingEventType, Object> getServedEvents() {21 public Map<EventType, Object> getServedEvents() { 22 22 return events; 23 23 } -
DCWoRMS/branches/coolemall/src/schedframe/scheduling/policy/AbstractManagementSystem.java
r1440 r1447 13 13 14 14 import schedframe.PluginConfiguration; 15 import schedframe.events.EventType; 15 16 import schedframe.events.scheduling.SchedulingEventType; 16 17 import schedframe.scheduling.Scheduler; … … 185 186 PluginConfiguration pluginConfig = schedulingPlugin.getConfiguration(); 186 187 if (pluginConfig != null) { 187 Map< SchedulingEventType, Object> events = pluginConfig.getServedEvents();188 Map<EventType, Object> events = pluginConfig.getServedEvents(); 188 189 if (events != null) { 189 190 Object obj = events.get(SchedulingEventType.TIMER);
Note: See TracChangeset
for help on using the changeset viewer.