Changeset 1396 for DCWoRMS/branches/coolemall/src/example/energy
- Timestamp:
- 06/26/14 14:18:01 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/example/energy
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/example/energy/BaseEnergyEstimationPlugin.java
r1207 r1396 17 17 18 18 @Override 19 public double estimateAir Throughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {19 public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 20 20 throw new RuntimeException("Not implemented."); 21 21 } -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/CB1EnergyEstimationPlugin.java
r1329 r1396 11 11 import schedframe.resources.computing.coolemall.NodeGroup; 12 12 import schedframe.resources.computing.profiles.energy.EnergyEvent; 13 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;13 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 14 14 import schedframe.resources.computing.profiles.energy.power.PState; 15 15 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 105 105 for(Device device: nodeGroup.getResourceCharacteristic().getDevices()){ 106 106 try { 107 fpc = fpc + device.getAir ThroughputInterface().getPowerConsumption(new UserAirThroughputStateName("2"));107 fpc = fpc + device.getAirflowInterface().getPowerConsumption(new CustomAirflowStateName("2")); 108 108 } catch (NoSuchFieldException e) { 109 109 // TODO Auto-generated catch block -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/CB2EnergyEstimationPlugin.java
r1299 r1396 168 168 169 169 delta_p = ConfigurationOptions.coolingData.getPressureDrop(); 170 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();170 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 171 171 172 172 if(delta_p != -1 && Vair_total != -1) … … 192 192 double Vair_recs1 = 0; 193 193 194 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();194 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 195 195 196 196 double Vair_recs2 = 0; … … 198 198 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 199 199 200 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();200 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 201 201 202 202 break; … … 401 401 if(fan.getPowerInterface().getRecentPowerUsage().getValue() == -1){ 402 402 try { 403 Qfans = Qfans + (1 - delta_2) * fan.getAir ThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState());403 Qfans = Qfans + (1 - delta_2) * fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState()); 404 404 } catch (NoSuchFieldException e) { 405 405 // TODO Auto-generated catch block … … 443 443 double ro = 1.168;//constant 444 444 445 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();445 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 446 446 447 447 if(Vair_total != -1) { … … 465 465 double Vair_recs1 = 0; 466 466 467 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();467 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 468 468 469 469 double Vair_recs2 = 0; … … 471 471 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 472 472 473 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();473 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 474 474 475 475 break; -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/CoolingDeviceEnergyEstimationPlugin.java
r1299 r1396 18 18 public class CoolingDeviceEnergyEstimationPlugin extends BaseEnergyEstimationPlugin { 19 19 20 public double estimateAir Throughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {21 double air Throughput= 0;22 return air Throughput;20 public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 21 double airflow = 0; 22 return airflow; 23 23 } 24 24 … … 140 140 141 141 delta_p = ConfigurationOptions.coolingData.getPressureDrop(); 142 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();142 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 143 143 144 144 if(delta_p != -1 && Vair_total != -1) … … 164 164 double Vair_recs1 = 0; 165 165 166 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();166 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 167 167 168 168 double Vair_recs2 = 0; … … 170 170 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 171 171 172 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();172 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 173 173 174 174 break; … … 373 373 if(fan.getPowerInterface().getRecentPowerUsage().getValue() == -1){ 374 374 try { 375 Qfans = Qfans + (1 - delta_2) * fan.getAir ThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState());375 Qfans = Qfans + (1 - delta_2) * fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState()); 376 376 } catch (NoSuchFieldException e) { 377 377 // TODO Auto-generated catch block … … 415 415 double ro = 1.168;//constant 416 416 417 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();417 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 418 418 419 419 if(Vair_total != -1) { … … 437 437 double Vair_recs1 = 0; 438 438 439 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();439 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 440 440 441 441 double Vair_recs2 = 0; … … 443 443 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 444 444 445 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();445 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 446 446 447 447 break; -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/FanEnergyEstimationPlugin.java
r1299 r1396 21 21 Fan fan = (Fan) resource; 22 22 try { 23 powerConsumption = fan.getAir ThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState());23 powerConsumption = fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState()); 24 24 } catch (NoSuchFieldException e) { 25 25 // TODO Auto-generated catch block … … 35 35 } 36 36 37 public double estimateAir Throughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {37 public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 38 38 39 double air Throughput= 0;39 double airflow = 0; 40 40 Fan fan = (Fan) resource; 41 41 try { 42 42 if(event.getReason() == EventReason.SIM_INIT) 43 air Throughput = fan.getAirThroughputInterface().getAirFlow(fan.getAirThroughputInterface().getAirThroughputState());43 airflow = fan.getAirflowInterface().getAirflow(fan.getAirflowInterface().getAirflowState()); 44 44 else 45 air Throughput = fan.getAirThroughputInterface().getAirFlow(fan.getAirThroughputInterface().getAirThroughputState());45 airflow = fan.getAirflowInterface().getAirflow(fan.getAirflowInterface().getAirflowState()); 46 46 } catch (NoSuchFieldException e) { 47 47 // TODO Auto-generated catch block … … 65 65 66 66 67 return air Throughput* getNumberOfWorkingNodes(fan)/(double)fan.getChilledResources().size();67 return airflow * getNumberOfWorkingNodes(fan)/(double)fan.getChilledResources().size(); 68 68 } 69 69 -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/FlowPumpInletEnergyEstimationPlugin.java
r1299 r1396 26 26 27 27 delta_p = ConfigurationOptions.coolingData.getPressureDrop(); 28 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();28 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 29 29 30 30 if(delta_p != -1 && Vair_total != -1) … … 53 53 double Vair_recs1 = 0; 54 54 55 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();55 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 56 56 57 57 double Vair_recs2 = 0; … … 59 59 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 60 60 61 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();61 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 62 62 63 63 break; … … 86 86 } 87 87 88 public double estimateAir Throughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {89 double air Throughput= 0;88 public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 89 double airflow = 0; 90 90 double Vair_total; 91 91 92 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();92 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 93 93 if(Vair_total != -1) { 94 air Throughput= Vair_total;94 airflow = Vair_total; 95 95 } else { 96 96 Device flowPump = (Device) resource; … … 114 114 double Vair_recs1 = 0; 115 115 116 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();116 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 117 117 118 118 double Vair_recs2 = 0; … … 120 120 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 121 121 122 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();122 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 123 123 124 124 break; … … 136 136 mair_total = mair_rack; 137 137 Vair_total = mair_total / ro; 138 air Throughput= Vair_total;138 airflow = Vair_total; 139 139 } 140 return air Throughput;140 return airflow; 141 141 } 142 142 -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/FlowPumpOutletEnergyEstimationPlugin.java
r1299 r1396 23 23 } 24 24 25 public double estimateAir Throughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {26 double air Throughput= 0;25 public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 26 double airflow = 0; 27 27 double Vair_total; 28 28 29 Vair_total = ConfigurationOptions.coolingData.getAir FlowVolume();29 Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 30 30 if(Vair_total != -1) { 31 air Throughput= Vair_total;31 airflow = Vair_total; 32 32 } else { 33 33 Device flowPump = (Device) resource; … … 51 51 double Vair_recs1 = 0; 52 52 53 Vair_recs1 = fan.getAir ThroughputInterface().getRecentAirFlow().getValue();53 Vair_recs1 = fan.getAirflowInterface().getRecentAirflow().getValue(); 54 54 55 55 double Vair_recs2 = 0; … … 57 57 if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 58 58 59 Vair_recs2 = device2.getAir ThroughputInterface().getRecentAirFlow().getValue();59 Vair_recs2 = device2.getAirflowInterface().getRecentAirflow().getValue(); 60 60 61 61 break; … … 73 73 mair_total = mair_rack; 74 74 Vair_total = mair_total / ro; 75 air Throughput= Vair_total;75 airflow = Vair_total; 76 76 } 77 return air Throughput;77 return airflow; 78 78 } 79 79 } -
DCWoRMS/branches/coolemall/src/example/energy/coolemall/NodeEnergyEstimationPlugin.java
r1299 r1396 34 34 if(fan.getPowerInterface().getRecentPowerUsage().getValue() == -1){ 35 35 try { 36 powerConsumption = powerConsumption + fan.getAir ThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState())/getNumberOfWorkingNodes(fan);36 powerConsumption = powerConsumption + fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState())/getNumberOfWorkingNodes(fan); 37 37 } catch (NoSuchFieldException e) { 38 38 // TODO Auto-generated catch block -
DCWoRMS/branches/coolemall/src/example/energy/device/FanEnergyEstimationPlugin.java
r1207 r1396 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 }
Note: See TracChangeset
for help on using the changeset viewer.