- Timestamp:
- 06/26/14 14:24:08 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/FanEnergyEstimationPlugin.java
r1210 r1399 3 3 import schedframe.events.scheduling.EventReason; 4 4 import schedframe.resources.computing.profiles.energy.EnergyEvent; 5 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;5 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 6 6 import schedframe.resources.devices.PhysicalResource; 7 7 import schedframe.scheduling.manager.tasks.JobRegistry; … … 15 15 try { 16 16 if(event.getReason() == EventReason.SIM_INIT) 17 powerConsumption = powerConsumption + resource.getAir ThroughputInterface().getPowerConsumption(StandardAirThroughputStateName.OFF);17 powerConsumption = powerConsumption + resource.getAirflowInterface().getPowerConsumption(StandardAirflowStateName.OFF); 18 18 else 19 powerConsumption = powerConsumption + resource.getAir ThroughputInterface().getPowerConsumption(resource.getAirThroughputInterface().getAirThroughputState());19 powerConsumption = powerConsumption + resource.getAirflowInterface().getPowerConsumption(resource.getAirflowInterface().getAirflowState()); 20 20 } catch (NoSuchFieldException e) { 21 21 } … … 24 24 } 25 25 26 public double estimateAir Throughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {27 double air Throughput= 0;26 public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 27 double airflow = 0; 28 28 try { 29 29 if(event.getReason() == EventReason.SIM_INIT) 30 air Throughput = resource.getAirThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF);30 airflow = resource.getAirflowInterface().getAirflow(StandardAirflowStateName.OFF); 31 31 else 32 air Throughput = resource.getAirThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState());32 airflow = resource.getAirflowInterface().getAirflow(resource.getAirflowInterface().getAirflowState()); 33 33 } catch (NoSuchFieldException e) { 34 34 // TODO Auto-generated catch block 35 35 e.printStackTrace(); 36 36 } 37 return air Throughput;37 return airflow; 38 38 } 39 39 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsCpuBaseEEP.java
r1210 r1399 5 5 import schedframe.resources.computing.Processor; 6 6 import schedframe.resources.computing.profiles.energy.EnergyEvent; 7 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;7 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 8 8 import schedframe.resources.devices.PhysicalResource; 9 9 import schedframe.scheduling.manager.tasks.JobRegistry; … … 39 39 try { 40 40 if(event.getReason() == EventReason.SIM_INIT) 41 airThroughput = resource.getAir ThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF);41 airThroughput = resource.getAirflowInterface().getAirflow(StandardAirflowStateName.OFF); 42 42 else 43 airThroughput = resource.getAir ThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState());43 airThroughput = resource.getAirflowInterface().getAirflow(resource.getAirflowInterface().getAirflowState()); 44 44 } catch (NoSuchFieldException e) { 45 45 // TODO Auto-generated catch block … … 53 53 if(id - resId == 9 || id - resId == -9){ 54 54 try { 55 airThroughput = airThroughput + compResource.getAir ThroughputInterface().getAirFlow(compResource.getAirThroughputInterface().getAirThroughputState())/2;55 airThroughput = airThroughput + compResource.getAirflowInterface().getAirflow(compResource.getAirflowInterface().getAirflowState())/2; 56 56 } catch (NoSuchFieldException e) { 57 57 -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsNodeBaseEEP.java
r1368 r1399 15 15 import schedframe.resources.computing.Processor; 16 16 import schedframe.resources.computing.profiles.energy.EnergyEvent; 17 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;17 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 18 18 import schedframe.resources.units.PEUnit; 19 19 import schedframe.resources.units.ProcessingElements; … … 57 57 try { 58 58 if(event.getReason() == EventReason.SIM_INIT) 59 airThroughput = resource.getAir ThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF);59 airThroughput = resource.getAirflowInterface().getAirflow(StandardAirflowStateName.OFF); 60 60 else 61 airThroughput = resource.getAir ThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState());61 airThroughput = resource.getAirflowInterface().getAirflow(resource.getAirflowInterface().getAirflowState()); 62 62 } catch (NoSuchFieldException e) { 63 63 // TODO Auto-generated catch block … … 71 71 if(id - resId == 9 || id - resId == -9){ 72 72 try { 73 airThroughput = airThroughput + compResource.getAir ThroughputInterface().getAirFlow(compResource.getAirThroughputInterface().getAirThroughputState())/2;73 airThroughput = airThroughput + compResource.getAirflowInterface().getAirflow(compResource.getAirflowInterface().getAirflowState())/2; 74 74 } catch (NoSuchFieldException e) { 75 75
Note: See TracChangeset
for help on using the changeset viewer.