- Timestamp:
- 09/24/14 15:51:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power/plugin/EnergyPluginConfiguration.java
r1415 r1447 1 1 package schedframe.resources.computing.profiles.energy.power.plugin; 2 2 3 import java.util.HashMap; 3 4 import java.util.Map; 4 5 5 6 import schedframe.PluginConfiguration; 6 import schedframe.events.scheduling.SchedulingEventType; 7 import schedframe.events.EventType; 8 7 9 8 10 public class EnergyPluginConfiguration implements PluginConfiguration { 9 11 10 //private Map<SchedulingEventType, Object> events;12 private Map<EventType, Object> events; 11 13 private double powerCapLevel; 12 14 private double powerFloorLevel; 13 15 14 16 public EnergyPluginConfiguration(){ 15 //this.events = new HashMap<SchedulingEventType, Object>();17 this.events = new HashMap<EventType, Object>(2); 16 18 } 17 19 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); 20 22 } 21 23 22 public Map< SchedulingEventType, Object> getServedEvents() {23 //returnevents;24 return null;24 public Map<EventType, Object> getServedEvents() { 25 return this.events; 26 //return null; 25 27 } 26 28
Note: See TracChangeset
for help on using the changeset viewer.