Changeset 1420 for DCWoRMS/branches/coolemall/src/test/thermal
- Timestamp:
- 07/15/14 16:37:15 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/test/thermal/recs
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/thermal/recs/plugins/energy/RecsCoreEEP.java
r1301 r1420 1 1 package test.thermal.recs.plugins.energy; 2 2 3 import schedframe.resources.computing.profiles.energy. EnergyEvent;3 import schedframe.resources.computing.profiles.energy.ResourceEvent; 4 4 import schedframe.resources.devices.PhysicalResource; 5 5 import schedframe.scheduling.manager.tasks.JobRegistry; … … 8 8 public class RecsCoreEEP extends BaseEnergyEstimationPlugin { 9 9 10 public double estimatePowerConsumption( EnergyEvent event, JobRegistry jobRegistry,10 public double estimatePowerConsumption(ResourceEvent event, JobRegistry jobRegistry, 11 11 PhysicalResource resource) { 12 12 double powerConsumption = 0; -
DCWoRMS/branches/coolemall/src/test/thermal/recs/plugins/energy/RecsCpuEEP.java
r1301 r1420 2 2 3 3 import schedframe.resources.computing.Processor; 4 import schedframe.resources.computing.profiles.energy. EnergyEvent;4 import schedframe.resources.computing.profiles.energy.ResourceEvent; 5 5 import schedframe.resources.devices.PhysicalResource; 6 6 import schedframe.scheduling.manager.tasks.JobRegistry; … … 9 9 public class RecsCpuEEP extends BaseEnergyEstimationPlugin { 10 10 11 public double estimatePowerConsumption( EnergyEvent event, JobRegistry jobRegistry,11 public double estimatePowerConsumption(ResourceEvent event, JobRegistry jobRegistry, 12 12 PhysicalResource resource) { 13 13 -
DCWoRMS/branches/coolemall/src/test/thermal/recs/plugins/energy/RecsFanEEP.java
r1312 r1420 3 3 import example.energy.BaseEnergyEstimationPlugin; 4 4 5 import schedframe.resources.computing.profiles.energy. EnergyEvent;5 import schedframe.resources.computing.profiles.energy.ResourceEvent; 6 6 import schedframe.resources.devices.Device; 7 7 import schedframe.resources.devices.PhysicalResource; … … 10 10 public class RecsFanEEP extends BaseEnergyEstimationPlugin { 11 11 12 public double estimatePowerConsumption( EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {12 public double estimatePowerConsumption(ResourceEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 13 13 14 14 return ThermalConstants.fanPower; 15 15 } 16 16 17 public double estimateTemperature( EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {17 public double estimateTemperature(ResourceEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 18 18 19 19 double temp = 0; -
DCWoRMS/branches/coolemall/src/test/thermal/recs/plugins/energy/RecsNodeEEP.java
r1312 r1420 5 5 6 6 import schedframe.resources.computing.Node; 7 import schedframe.resources.computing.profiles.energy. EnergyEvent;7 import schedframe.resources.computing.profiles.energy.ResourceEvent; 8 8 import schedframe.resources.devices.PhysicalResource; 9 9 import schedframe.scheduling.manager.tasks.JobRegistry; … … 11 11 public class RecsNodeEEP extends RecsNodeBaseEEP { 12 12 13 public double estimatePowerConsumption( EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {13 public double estimatePowerConsumption(ResourceEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 14 14 double powerConsumption = 0; 15 15 Node node = (Node) resource; … … 36 36 } 37 37 38 public double estimateTemperature( EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {38 public double estimateTemperature(ResourceEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 39 39 40 40 double power1 = 0; -
DCWoRMS/branches/coolemall/src/test/thermal/recs/plugins/energy/RecsNodeModelEEP.java
r1367 r1420 14 14 import schedframe.resources.computing.Core; 15 15 import schedframe.resources.computing.Processor; 16 import schedframe.resources.computing.profiles.energy. EnergyEvent;16 import schedframe.resources.computing.profiles.energy.ResourceEvent; 17 17 import schedframe.resources.devices.PhysicalResource; 18 18 import schedframe.resources.units.PEUnit; … … 42 42 static int MISSED = 0; 43 43 44 public double estimatePowerConsumption( EnergyEvent event, JobRegistry jobRegistry,44 public double estimatePowerConsumption(ResourceEvent event, JobRegistry jobRegistry, 45 45 PhysicalResource resource) { 46 46 double powerConsumption = 0; -
DCWoRMS/branches/coolemall/src/test/thermal/recs/utils/RecsProcessorPowerInterface.java
r1305 r1420 5 5 import schedframe.resources.ResourceStatus; 6 6 import schedframe.resources.computing.ComputingResource; 7 import schedframe.resources.computing.profiles.energy. EnergyEvent;8 import schedframe.resources.computing.profiles.energy. EnergyEventType;7 import schedframe.resources.computing.profiles.energy.ResourceEvent; 8 import schedframe.resources.computing.profiles.energy.ResourceEventType; 9 9 import schedframe.resources.computing.profiles.energy.power.PState; 10 10 import schedframe.resources.computing.profiles.energy.power.PowerProfile; … … 35 35 resource.setStatus(ResourceStatus.FREE); 36 36 } 37 resource.handleEvent(new EnergyEvent(EnergyEventType.POWER_STATE_CHANGED, resource.getFullName()));37 resource.handleEvent(new ResourceEvent(ResourceEventType.POWER_STATE_CHANGED, resource.getFullName())); 38 38 } 39 39 … … 69 69 //speed.setAmount(Double.valueOf(currentPState.getFrequency()).intValue()); 70 70 //new ResourceEventCommand(resource).execute(EnergyEventType.FREQUENCY_CHANGED); 71 resource.handleEvent(new EnergyEvent(EnergyEventType.FREQUENCY_CHANGED, resource.getFullName()));71 resource.handleEvent(new ResourceEvent(ResourceEventType.CPU_FREQUENCY_CHANGED, resource.getFullName())); 72 72 //resource.getScheduler().sendInternal(GridSimTags.SCHEDULE_NOW, DCWormsTags.UPDATE, resource.getName()); 73 73 return true;
Note: See TracChangeset
for help on using the changeset viewer.