Changeset 1210 for DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsCpuBaseEEP.java
- Timestamp:
- 11/26/13 12:37:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsCpuBaseEEP.java
r826 r1210 6 6 import schedframe.resources.computing.profiles.energy.EnergyEvent; 7 7 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirThroughputStateName; 8 import schedframe.resources.devices.PhysicalResource; 8 9 import schedframe.scheduling.manager.tasks.JobRegistry; 9 10 import example.energy.BaseEnergyEstimationPlugin; … … 18 19 19 20 public double estimatePowerConsumption(EnergyEvent event, JobRegistry jobRegistry, 20 ComputingResource resource) {21 PhysicalResource resource) { 21 22 22 23 double powerConsumption = 0; … … 38 39 try { 39 40 if(event.getReason() == EventReason.SIM_INIT) 40 airThroughput = resource.getAirThroughputInterface().getAirFlow(StandardAirThroughputStateName. FAN_OFF);41 airThroughput = resource.getAirThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF); 41 42 else 42 43 airThroughput = resource.getAirThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState());
Note: See TracChangeset
for help on using the changeset viewer.