Ignore:
Timestamp:
09/24/14 15:51:26 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power/plugin/EnergyPluginConfiguration.java

    r1415 r1447  
    11package schedframe.resources.computing.profiles.energy.power.plugin; 
    22 
     3import java.util.HashMap; 
    34import java.util.Map; 
    45 
    56import schedframe.PluginConfiguration; 
    6 import schedframe.events.scheduling.SchedulingEventType; 
     7import schedframe.events.EventType; 
     8 
    79 
    810public class EnergyPluginConfiguration  implements PluginConfiguration { 
    911         
    10         //private Map<SchedulingEventType, Object> events; 
     12        private Map<EventType, Object> events; 
    1113        private double powerCapLevel; 
    1214        private double powerFloorLevel; 
    1315 
    1416        public EnergyPluginConfiguration(){ 
    15                 //this.events = new HashMap<SchedulingEventType, Object>(); 
     17                this.events = new HashMap<EventType, Object>(2); 
    1618        } 
    1719         
    18         public void addServedEvent(SchedulingEventType eventType, Object argument){ 
    19                 //events.put(eventType, argument); 
     20        public void addServedEvent(EventType eventType, Object argument){ 
     21                this.events.put(eventType, argument); 
    2022        } 
    2123         
    22         public Map<SchedulingEventType, Object> getServedEvents() { 
    23                 //return events; 
    24                 return null; 
     24        public Map<EventType, Object> getServedEvents() { 
     25                return this.events; 
     26                //return null; 
    2527        } 
    2628 
Note: See TracChangeset for help on using the changeset viewer.