Ignore:
Timestamp:
09/24/14 15:51:26 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/schedframe/scheduling
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/Scheduler.java

    r1415 r1447  
    1717import schedframe.Initializable; 
    1818import schedframe.PluginConfiguration; 
     19import schedframe.events.EventType; 
    1920import schedframe.events.scheduling.SchedulingEventType; 
    2021import schedframe.resources.Resource; 
     
    107108                PluginConfiguration pluginConfig = managementSystem.getSchedulingPluginConfiguration(); 
    108109                if (pluginConfig != null) { 
    109                         Map<SchedulingEventType, Object> events = pluginConfig.getServedEvents(); 
     110                        Map<EventType, Object> events = pluginConfig.getServedEvents(); 
    110111                        if (events != null) { 
    111112                                Object obj = events.get(SchedulingEventType.TIMER); 
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/plugin/SchedulingPluginConfiguration.java

    r477 r1447  
    55 
    66import schedframe.PluginConfiguration; 
    7 import schedframe.events.scheduling.SchedulingEventType; 
     7import schedframe.events.EventType; 
    88 
    99public class SchedulingPluginConfiguration implements PluginConfiguration { 
    1010         
    11         private Map<SchedulingEventType, Object> events; 
     11        private Map<EventType, Object> events; 
    1212 
    1313        public SchedulingPluginConfiguration(){ 
    14                 this.events = new HashMap<SchedulingEventType, Object>(); 
     14                this.events = new HashMap<EventType, Object>(2); 
    1515        } 
    1616         
    17         public void addServedEvent(SchedulingEventType eventType, Object argument){ 
     17        public void addServedEvent(EventType eventType, Object argument){ 
    1818                events.put(eventType, argument); 
    1919        } 
    2020         
    21         public Map<SchedulingEventType, Object> getServedEvents() { 
     21        public Map<EventType, Object> getServedEvents() { 
    2222                return events; 
    2323        } 
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/policy/AbstractManagementSystem.java

    r1440 r1447  
    1313 
    1414import schedframe.PluginConfiguration; 
     15import schedframe.events.EventType; 
    1516import schedframe.events.scheduling.SchedulingEventType; 
    1617import schedframe.scheduling.Scheduler; 
     
    185186                PluginConfiguration pluginConfig = schedulingPlugin.getConfiguration(); 
    186187                if (pluginConfig != null) { 
    187                         Map<SchedulingEventType, Object> events = pluginConfig.getServedEvents(); 
     188                        Map<EventType, Object> events = pluginConfig.getServedEvents(); 
    188189                        if (events != null) { 
    189190                                Object obj = events.get(SchedulingEventType.TIMER); 
Note: See TracChangeset for help on using the changeset viewer.