Changeset 1396 for DCWoRMS/branches/coolemall/src/example
- Timestamp:
- 06/26/14 14:18:01 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/example
- Files:
-
- 1 deleted
- 42 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 } -
DCWoRMS/branches/coolemall/src/example/globalplugin/BaseGlobalPlugin.java
r516 r1396 6 6 import schedframe.scheduling.TaskList; 7 7 import schedframe.scheduling.manager.resources.ResourceManager; 8 import schedframe.scheduling.plugin.ModuleList; 8 9 import schedframe.scheduling.plugin.SchedulingPluginConfiguration; 9 10 import schedframe.scheduling.plugin.grid.GlobalSchedulingPlugin; 10 import schedframe.scheduling.plugin.grid.ModuleList;11 11 import schedframe.scheduling.queue.TaskQueue; 12 12 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/globalplugin/GridFCFSLoadBalancingPlugin.java
r497 r1396 3 3 4 4 import java.util.List; 5 import java.util.Properties;6 5 7 6 import org.apache.commons.logging.Log; … … 16 15 import schedframe.scheduling.plan.impl.ScheduledTask; 17 16 import schedframe.scheduling.plan.impl.SchedulingPlan; 18 import schedframe.scheduling.plugin. grid.Module;19 import schedframe.scheduling.plugin. grid.ModuleList;17 import schedframe.scheduling.plugin.Module; 18 import schedframe.scheduling.plugin.ModuleList; 20 19 import schedframe.scheduling.plugin.grid.ResourceDiscovery; 21 20 import schedframe.scheduling.queue.QueueDescription; -
DCWoRMS/branches/coolemall/src/example/globalplugin/GridFCFSRandomPlugin.java
r497 r1396 2 2 3 3 import java.util.List; 4 import java.util.Properties;5 4 import java.util.Random; 6 5 … … 13 12 import schedframe.scheduling.plan.impl.ScheduledTask; 14 13 import schedframe.scheduling.plan.impl.SchedulingPlan; 15 import schedframe.scheduling.plugin. grid.Module;16 import schedframe.scheduling.plugin. grid.ModuleList;14 import schedframe.scheduling.plugin.Module; 15 import schedframe.scheduling.plugin.ModuleList; 17 16 import schedframe.scheduling.plugin.grid.ResourceDiscovery; 18 17 import schedframe.scheduling.queue.TaskQueue; … … 29 28 } 30 29 31 public SchedulingPlanInterface schedule(SchedulingEvent event,30 public SchedulingPlanInterface<?> schedule(SchedulingEvent event, 32 31 TaskQueueList queues, 33 32 JobRegistry jobRegistry, -
DCWoRMS/branches/coolemall/src/example/globalplugin/GridFCFSRoundRobinPlugin.java
r497 r1396 12 12 import schedframe.scheduling.plan.impl.ScheduledTask; 13 13 import schedframe.scheduling.plan.impl.SchedulingPlan; 14 import schedframe.scheduling.plugin. grid.Module;15 import schedframe.scheduling.plugin. grid.ModuleList;14 import schedframe.scheduling.plugin.Module; 15 import schedframe.scheduling.plugin.ModuleList; 16 16 import schedframe.scheduling.plugin.grid.ResourceDiscovery; 17 17 import schedframe.scheduling.queue.TaskQueue; … … 24 24 private LinkedList<String> lastUsedResources = new LinkedList<String>(); 25 25 26 public SchedulingPlanInterface schedule(SchedulingEvent event,26 public SchedulingPlanInterface<?> schedule(SchedulingEvent event, 27 27 TaskQueueList queues, 28 28 JobRegistry jobRegistry, -
DCWoRMS/branches/coolemall/src/example/load/DefaultLoadEstimationPlugin.java
r1290 r1396 5 5 import schedframe.resources.devices.PhysicalResource; 6 6 import schedframe.scheduling.manager.tasks.JobRegistry; 7 import simulator.stats. GSSAccumulator;7 import simulator.stats.DCwormsAccumulator; 8 8 9 9 … … 13 13 14 14 ComputingResource computingResource = (ComputingResource) resource; 15 GSSAccumulator childrenLoad = new GSSAccumulator();15 DCwormsAccumulator childrenLoad = new DCwormsAccumulator(); 16 16 for(ComputingResource compRes: computingResource.getChildren()){ 17 17 childrenLoad.add(compRes.getLoadInterface().getRecentUtilization().getValue()); -
DCWoRMS/branches/coolemall/src/example/load/ProcessorLoadEstimationPlugin.java
r1299 r1396 26 26 double cpuUsage = 1 / nrOfThreadsOnCpu; 27 27 28 for(PhaseBehaviour pb: task.get CurrentResourceConsumption().getBehaviourList()){28 for(PhaseBehaviour pb: task.getExecutionProfile().getCurrentResourceConsumption().getBehaviourList()){ 29 29 if(pb.getResouceName().equals("PM_CPU_Usage")){ 30 30 cpuUsage = pb.getUtilization(); -
DCWoRMS/branches/coolemall/src/example/localplugin/BaseLocalSchedulingPlugin.java
r555 r1396 17 17 import schedframe.scheduling.plan.impl.ScheduledTask; 18 18 import schedframe.scheduling.plan.impl.SchedulingPlan; 19 import schedframe.scheduling.plugin.ModuleList; 19 20 import schedframe.scheduling.plugin.SchedulingPluginConfiguration; 20 import schedframe.scheduling.plugin.grid.ModuleList;21 21 import schedframe.scheduling.plugin.local.LocalSchedulingPlugin; 22 22 import schedframe.scheduling.queue.TaskQueue; -
DCWoRMS/branches/coolemall/src/example/localplugin/Cluster_FCFSBF_ConsolidationHighPerf_NodePowMan_Plugin.java
r1299 r1396 17 17 import schedframe.resources.computing.Node; 18 18 import schedframe.resources.computing.Processor; 19 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;19 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 20 20 import schedframe.resources.computing.profiles.energy.power.PState; 21 21 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 30 30 import schedframe.scheduling.plan.SchedulingPlanInterface; 31 31 import schedframe.scheduling.plan.impl.SchedulingPlan; 32 import schedframe.scheduling.plugin. grid.ModuleList;32 import schedframe.scheduling.plugin.ModuleList; 33 33 import schedframe.scheduling.queue.TaskQueue; 34 34 import schedframe.scheduling.queue.TaskQueueList; … … 169 169 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 170 170 if(device.getType().equals(StandardResourceType.Fan)){ 171 device.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);171 device.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 172 172 break; 173 173 } … … 192 192 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 193 193 if(device.getType().equals(StandardResourceType.Fan)){ 194 device.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF);194 device.getAirflowInterface().setAirflowState(StandardAirflowStateName.OFF); 195 195 break; 196 196 } -
DCWoRMS/branches/coolemall/src/example/localplugin/Cluster_FCFSBF_ConsolidationLowPower_NodePowMan_Plugin.java
r1299 r1396 17 17 import schedframe.resources.computing.Node; 18 18 import schedframe.resources.computing.Processor; 19 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;19 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 20 20 import schedframe.resources.computing.profiles.energy.power.PState; 21 21 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 30 30 import schedframe.scheduling.plan.SchedulingPlanInterface; 31 31 import schedframe.scheduling.plan.impl.SchedulingPlan; 32 import schedframe.scheduling.plugin. grid.ModuleList;32 import schedframe.scheduling.plugin.ModuleList; 33 33 import schedframe.scheduling.queue.TaskQueue; 34 34 import schedframe.scheduling.queue.TaskQueueList; … … 168 168 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 169 169 if(device.getType().equals(StandardResourceType.Fan)){ 170 device.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);170 device.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 171 171 break; 172 172 } … … 191 191 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 192 192 if(device.getType().equals(StandardResourceType.Fan)){ 193 device.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF);193 device.getAirflowInterface().setAirflowState(StandardAirflowStateName.OFF); 194 194 break; 195 195 } -
DCWoRMS/branches/coolemall/src/example/localplugin/Cluster_FCFSBF_DFSPlugin.java
r1299 r1396 21 21 import schedframe.scheduling.plan.SchedulingPlanInterface; 22 22 import schedframe.scheduling.plan.impl.SchedulingPlan; 23 import schedframe.scheduling.plugin. grid.ModuleList;23 import schedframe.scheduling.plugin.ModuleList; 24 24 import schedframe.scheduling.queue.TaskQueue; 25 25 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/Cluster_FCFSBF_ExamplePlugin.java
r1299 r1396 25 25 import schedframe.scheduling.plan.SchedulingPlanInterface; 26 26 import schedframe.scheduling.plan.impl.SchedulingPlan; 27 import schedframe.scheduling.plugin. grid.ModuleList;27 import schedframe.scheduling.plugin.ModuleList; 28 28 import schedframe.scheduling.queue.TaskQueue; 29 29 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/Cluster_FCFSBF_RandomPlugin.java
r1258 r1396 13 13 import schedframe.scheduling.plan.SchedulingPlanInterface; 14 14 import schedframe.scheduling.plan.impl.SchedulingPlan; 15 import schedframe.scheduling.plugin. grid.ModuleList;15 import schedframe.scheduling.plugin.ModuleList; 16 16 import schedframe.scheduling.queue.TaskQueue; 17 17 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/FCFSBF_LocalPlugin.java
r888 r1396 6 6 import schedframe.scheduling.manager.tasks.JobRegistry; 7 7 import schedframe.scheduling.plan.impl.SchedulingPlan; 8 import schedframe.scheduling.plugin. grid.ModuleList;8 import schedframe.scheduling.plugin.ModuleList; 9 9 import schedframe.scheduling.queue.TaskQueue; 10 10 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox1/CB1_FCFS_ConsolidationHighPerf_NodePowMan_SP.java
r1299 r1396 16 16 import schedframe.resources.computing.Core; 17 17 import schedframe.resources.computing.Processor; 18 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;18 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 19 19 import schedframe.resources.computing.profiles.energy.power.PState; 20 20 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 31 31 import schedframe.scheduling.plan.SchedulingPlanInterface; 32 32 import schedframe.scheduling.plan.impl.SchedulingPlan; 33 import schedframe.scheduling.plugin. grid.ModuleList;33 import schedframe.scheduling.plugin.ModuleList; 34 34 import schedframe.scheduling.queue.TaskQueue; 35 35 import schedframe.scheduling.queue.TaskQueueList; … … 226 226 Fan fan = (Fan) device; 227 227 if(fan.getChilledResources().contains(node.getFullName())){ 228 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));228 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 229 229 } 230 230 } … … 262 262 if(fan.getChilledResources().contains(node.getFullName())){ 263 263 if(nrOfChilldedNodes == 1) 264 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));264 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 265 265 else { 266 266 for(String chilledNode: fan.getChilledResources()){ … … 274 274 } 275 275 if(nrOfChilldedNodes <= 1) 276 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));276 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 277 277 } 278 278 -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox1/CB1_FCFS_ConsolidationHighPerf_SP.java
r1299 r1396 25 25 import schedframe.scheduling.plan.SchedulingPlanInterface; 26 26 import schedframe.scheduling.plan.impl.SchedulingPlan; 27 import schedframe.scheduling.plugin. grid.ModuleList;27 import schedframe.scheduling.plugin.ModuleList; 28 28 import schedframe.scheduling.queue.TaskQueue; 29 29 import schedframe.scheduling.queue.TaskQueueList; … … 72 72 } 73 73 74 @SuppressWarnings("unchecked")75 74 private Map<ResourceUnitName, ResourceUnit> chooseResourcesForExecution( 76 75 ClusterResourceManager resourceManager, TaskInterface<?> task) { -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox1/CB1_FCFS_ConsolidationLowPower_NodePowMan_SP.java
r1299 r1396 16 16 import schedframe.resources.computing.Node; 17 17 import schedframe.resources.computing.Processor; 18 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;18 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 19 19 import schedframe.resources.computing.profiles.energy.power.PState; 20 20 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 31 31 import schedframe.scheduling.plan.SchedulingPlanInterface; 32 32 import schedframe.scheduling.plan.impl.SchedulingPlan; 33 import schedframe.scheduling.plugin. grid.ModuleList;33 import schedframe.scheduling.plugin.ModuleList; 34 34 import schedframe.scheduling.queue.TaskQueue; 35 35 import schedframe.scheduling.queue.TaskQueueList; … … 226 226 Fan fan = (Fan) device; 227 227 if(fan.getChilledResources().contains(node.getFullName())){ 228 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));228 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 229 229 } 230 230 } … … 262 262 if(fan.getChilledResources().contains(node.getFullName())){ 263 263 if(nrOfChilldedNodes == 1) 264 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));264 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 265 265 else { 266 266 for(String chilledNode: fan.getChilledResources()){ … … 274 274 } 275 275 if(nrOfChilldedNodes <= 1) 276 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));276 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 277 277 } 278 278 -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox1/CB1_FCFS_ConsolidationLowPower_SP.java
r1299 r1396 25 25 import schedframe.scheduling.plan.SchedulingPlanInterface; 26 26 import schedframe.scheduling.plan.impl.SchedulingPlan; 27 import schedframe.scheduling.plugin. grid.ModuleList;27 import schedframe.scheduling.plugin.ModuleList; 28 28 import schedframe.scheduling.queue.TaskQueue; 29 29 import schedframe.scheduling.queue.TaskQueueList; … … 72 72 } 73 73 74 @SuppressWarnings("unchecked")75 74 private Map<ResourceUnitName, ResourceUnit> chooseResourcesForExecution( 76 75 ClusterResourceManager resourceManager, TaskInterface<?> task) { -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox1/CB1_FCFS_LoadBalancing_SP.java
r1258 r1396 11 11 import schedframe.scheduling.plan.SchedulingPlanInterface; 12 12 import schedframe.scheduling.plan.impl.SchedulingPlan; 13 import schedframe.scheduling.plugin. grid.ModuleList;13 import schedframe.scheduling.plugin.ModuleList; 14 14 import schedframe.scheduling.queue.TaskQueue; 15 15 import schedframe.scheduling.queue.TaskQueueList; … … 54 54 } 55 55 56 @SuppressWarnings("unchecked")57 56 private String chooseProvider(ClusterResourceManager resourceManager) { 58 57 List<Node> nodes = resourceManager.getNodes(); -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox1/CB1_FCFS_Random_SP.java
r1258 r1396 21 21 import schedframe.scheduling.plan.SchedulingPlanInterface; 22 22 import schedframe.scheduling.plan.impl.SchedulingPlan; 23 import schedframe.scheduling.plugin. grid.ModuleList;23 import schedframe.scheduling.plugin.ModuleList; 24 24 import schedframe.scheduling.queue.TaskQueue; 25 25 import schedframe.scheduling.queue.TaskQueueList; … … 70 70 } 71 71 72 @SuppressWarnings("unchecked")73 72 private Map<ResourceUnitName, ResourceUnit> chooseResourcesForExecution( 74 73 ClusterResourceManager resourceManager, TaskInterface<?> task) { -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_ConsolidationHighPerf_NodePowMan_SP.java
r1299 r1396 17 17 import schedframe.resources.computing.Processor; 18 18 import schedframe.resources.computing.Rack; 19 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;19 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 20 20 import schedframe.resources.computing.profiles.energy.power.PState; 21 21 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 32 32 import schedframe.scheduling.plan.SchedulingPlanInterface; 33 33 import schedframe.scheduling.plan.impl.SchedulingPlan; 34 import schedframe.scheduling.plugin. grid.ModuleList;34 import schedframe.scheduling.plugin.ModuleList; 35 35 import schedframe.scheduling.queue.TaskQueue; 36 36 import schedframe.scheduling.queue.TaskQueueList; … … 227 227 Fan fan = (Fan) device; 228 228 if(fan.getChilledResources().contains(node.getFullName())){ 229 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));229 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 230 230 } 231 231 } … … 263 263 if(fan.getChilledResources().contains(node.getFullName())){ 264 264 if(nrOfChilldedNodes == 1) 265 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));265 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 266 266 else { 267 267 for(String chilledNode: fan.getChilledResources()){ … … 275 275 } 276 276 if(nrOfChilldedNodes <= 1) 277 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));277 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 278 278 } 279 279 -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_ConsolidationHighPerf_PowerCapping_SP.java
r1319 r1396 20 20 import schedframe.resources.computing.coolemall.ComputeBox1; 21 21 import schedframe.resources.computing.coolemall.NodeGroup; 22 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;22 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 23 23 import schedframe.resources.computing.profiles.energy.power.PState; 24 24 import schedframe.resources.devices.Device; … … 34 34 import schedframe.scheduling.plan.SchedulingPlanInterface; 35 35 import schedframe.scheduling.plan.impl.SchedulingPlan; 36 import schedframe.scheduling.plugin. grid.ModuleList;36 import schedframe.scheduling.plugin.ModuleList; 37 37 import schedframe.scheduling.queue.TaskQueue; 38 38 import schedframe.scheduling.queue.TaskQueueList; … … 364 364 365 365 if(fan.getChilledResources().contains(n.getFullName())){ 366 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));366 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 367 367 } 368 368 } … … 457 457 458 458 if(fan.getChilledResources().contains(n.getFullName())){ 459 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));459 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 460 460 } 461 461 } … … 546 546 for(Device device: nodeGroup.getResourceCharacteristic().getDevices()){ 547 547 try { 548 fpc = fpc + device.getAir ThroughputInterface().getPowerConsumption(new UserAirThroughputStateName("2"));548 fpc = fpc + device.getAirflowInterface().getPowerConsumption(new CustomAirflowStateName("2")); 549 549 } catch (NoSuchFieldException e) { 550 550 // TODO Auto-generated catch block -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_ConsolidationHighPerf_SP.java
r1299 r1396 26 26 import schedframe.scheduling.plan.SchedulingPlanInterface; 27 27 import schedframe.scheduling.plan.impl.SchedulingPlan; 28 import schedframe.scheduling.plugin. grid.ModuleList;28 import schedframe.scheduling.plugin.ModuleList; 29 29 import schedframe.scheduling.queue.TaskQueue; 30 30 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_ConsolidationLowPower_NodePowMan_SP.java
r1299 r1396 16 16 import schedframe.resources.computing.Node; 17 17 import schedframe.resources.computing.Processor; 18 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;18 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 19 19 import schedframe.resources.computing.profiles.energy.power.PState; 20 20 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; … … 31 31 import schedframe.scheduling.plan.SchedulingPlanInterface; 32 32 import schedframe.scheduling.plan.impl.SchedulingPlan; 33 import schedframe.scheduling.plugin. grid.ModuleList;33 import schedframe.scheduling.plugin.ModuleList; 34 34 import schedframe.scheduling.queue.TaskQueue; 35 35 import schedframe.scheduling.queue.TaskQueueList; … … 226 226 Fan fan = (Fan) device; 227 227 if(fan.getChilledResources().contains(node.getFullName())){ 228 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));228 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 229 229 } 230 230 } … … 262 262 if(fan.getChilledResources().contains(node.getFullName())){ 263 263 if(nrOfChilldedNodes == 1) 264 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));264 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 265 265 else { 266 266 for(String chilledNode: fan.getChilledResources()){ … … 274 274 } 275 275 if(nrOfChilldedNodes <= 1) 276 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("1"));276 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("1")); 277 277 } 278 278 -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_ConsolidationLowPower_PowerCapping_SP.java
r1319 r1396 20 20 import schedframe.resources.computing.coolemall.ComputeBox1; 21 21 import schedframe.resources.computing.coolemall.NodeGroup; 22 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;22 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 23 23 import schedframe.resources.computing.profiles.energy.power.PState; 24 24 import schedframe.resources.devices.Device; … … 34 34 import schedframe.scheduling.plan.SchedulingPlanInterface; 35 35 import schedframe.scheduling.plan.impl.SchedulingPlan; 36 import schedframe.scheduling.plugin. grid.ModuleList;36 import schedframe.scheduling.plugin.ModuleList; 37 37 import schedframe.scheduling.queue.TaskQueue; 38 38 import schedframe.scheduling.queue.TaskQueueList; … … 282 282 283 283 if(fan.getChilledResources().contains(n.getFullName())){ 284 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));284 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 285 285 } 286 286 } … … 375 375 376 376 if(fan.getChilledResources().contains(n.getFullName())){ 377 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));377 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 378 378 } 379 379 } … … 464 464 for(Device device: nodeGroup.getResourceCharacteristic().getDevices()){ 465 465 try { 466 fpc = fpc + device.getAir ThroughputInterface().getPowerConsumption(new UserAirThroughputStateName("2"));466 fpc = fpc + device.getAirflowInterface().getPowerConsumption(new CustomAirflowStateName("2")); 467 467 } catch (NoSuchFieldException e) { 468 468 // TODO Auto-generated catch block -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_ConsolidationLowPower_SP.java
r1299 r1396 25 25 import schedframe.scheduling.plan.SchedulingPlanInterface; 26 26 import schedframe.scheduling.plan.impl.SchedulingPlan; 27 import schedframe.scheduling.plugin. grid.ModuleList;27 import schedframe.scheduling.plugin.ModuleList; 28 28 import schedframe.scheduling.queue.TaskQueue; 29 29 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_LoadBalancing_SP.java
r1319 r1396 11 11 import schedframe.scheduling.plan.SchedulingPlanInterface; 12 12 import schedframe.scheduling.plan.impl.SchedulingPlan; 13 import schedframe.scheduling.plugin. grid.ModuleList;13 import schedframe.scheduling.plugin.ModuleList; 14 14 import schedframe.scheduling.queue.TaskQueue; 15 15 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_Random_PowerCapping_SP.java
r1319 r1396 19 19 import schedframe.resources.computing.coolemall.ComputeBox1; 20 20 import schedframe.resources.computing.coolemall.NodeGroup; 21 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;21 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 22 22 import schedframe.resources.computing.profiles.energy.power.PState; 23 23 import schedframe.resources.devices.Device; … … 32 32 import schedframe.scheduling.plan.SchedulingPlanInterface; 33 33 import schedframe.scheduling.plan.impl.SchedulingPlan; 34 import schedframe.scheduling.plugin. grid.ModuleList;34 import schedframe.scheduling.plugin.ModuleList; 35 35 import schedframe.scheduling.queue.TaskQueue; 36 36 import schedframe.scheduling.queue.TaskQueueList; … … 245 245 246 246 if(fan.getChilledResources().contains(n.getFullName())){ 247 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));247 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 248 248 } 249 249 } … … 338 338 339 339 if(fan.getChilledResources().contains(n.getFullName())){ 340 fan.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("2"));340 fan.getAirflowInterface().setAirflowState(new CustomAirflowStateName("2")); 341 341 } 342 342 } … … 427 427 for(Device device: nodeGroup.getResourceCharacteristic().getDevices()){ 428 428 try { 429 fpc = fpc + device.getAir ThroughputInterface().getPowerConsumption(new UserAirThroughputStateName("2"));429 fpc = fpc + device.getAirflowInterface().getPowerConsumption(new CustomAirflowStateName("2")); 430 430 } catch (NoSuchFieldException e) { 431 431 // TODO Auto-generated catch block -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/computebox2/CB2_FCFS_Random_SP.java
r1319 r1396 23 23 import schedframe.scheduling.plan.SchedulingPlanInterface; 24 24 import schedframe.scheduling.plan.impl.SchedulingPlan; 25 import schedframe.scheduling.plugin. grid.ModuleList;25 import schedframe.scheduling.plugin.ModuleList; 26 26 import schedframe.scheduling.queue.TaskQueue; 27 27 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/recs/RECS_FCFS_Consolidation_SP.java
r1258 r1396 25 25 import schedframe.scheduling.plan.SchedulingPlanInterface; 26 26 import schedframe.scheduling.plan.impl.SchedulingPlan; 27 import schedframe.scheduling.plugin. grid.ModuleList;27 import schedframe.scheduling.plugin.ModuleList; 28 28 import schedframe.scheduling.queue.TaskQueue; 29 29 import schedframe.scheduling.queue.TaskQueueList; -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/recs/RECS_FCFS_LB_SP.java
r1258 r1396 11 11 import schedframe.scheduling.plan.SchedulingPlanInterface; 12 12 import schedframe.scheduling.plan.impl.SchedulingPlan; 13 import schedframe.scheduling.plugin. grid.ModuleList;13 import schedframe.scheduling.plugin.ModuleList; 14 14 import schedframe.scheduling.queue.TaskQueue; 15 15 import schedframe.scheduling.queue.TaskQueueList; … … 55 55 } 56 56 57 @SuppressWarnings("unchecked")58 57 private String chooseProvider(ClusterResourceManager resourceManager) { 59 58 List<Node> nodes = resourceManager.getNodes(); -
DCWoRMS/branches/coolemall/src/example/localplugin/coolemall/recs/RECS_FCFS_Random_SP.java
r1258 r1396 12 12 import schedframe.resources.computing.Core; 13 13 import schedframe.resources.computing.Node; 14 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;14 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 15 15 import schedframe.resources.devices.Device; 16 16 import schedframe.resources.units.ProcessingElements; … … 23 23 import schedframe.scheduling.plan.SchedulingPlanInterface; 24 24 import schedframe.scheduling.plan.impl.SchedulingPlan; 25 import schedframe.scheduling.plugin. grid.ModuleList;25 import schedframe.scheduling.plugin.ModuleList; 26 26 import schedframe.scheduling.queue.TaskQueue; 27 27 import schedframe.scheduling.queue.TaskQueueList; … … 79 79 } 80 80 81 @SuppressWarnings("unchecked")82 81 private Node chooseRandomProvider(ClusterResourceManager resourceManager) { 83 82 List<Node> nodes = resourceManager.getNodes(); … … 184 183 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 185 184 if(device.getFullName().equals(Node_Fan_Mapping.getNode_fan().get(node.getFullName()))){ 186 device.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("Off"));185 device.getAirflowInterface().setAirflowState(new CustomAirflowStateName("Off")); 187 186 break; 188 187 } … … 192 191 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 193 192 if(device.getFullName().equals(Node_Fan_Mapping.getNode_fan().get(node.getFullName()))){ 194 device.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("On"));193 device.getAirflowInterface().setAirflowState(new CustomAirflowStateName("On")); 195 194 break; 196 195 } -
DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall/CPUFreqScalingPhaseTimeEstimationPlugin.java
r1364 r1396 2 2 3 3 import java.util.Map; 4 5 import org.joda.time.DateTime;6 4 7 5 import schedframe.events.scheduling.SchedulingEvent; … … 14 12 import schedframe.resources.units.ResourceUnitName; 15 13 import schedframe.resources.units.StandardResourceUnitName; 16 import schedframe.scheduling.tasks.phases.ResourceConsumption;17 14 import dcworms.schedframe.scheduling.ExecTask; 18 import dcworms.schedframe.scheduling.Executable;19 15 import example.timeestimation.BaseTimeEstimationPlugin; 20 16 … … 26 22 double completionPercentage) { 27 23 28 String taskFreqString = task.get CurrentResourceConsumption().getReferenceHardware().get("cpu_maxfreq");24 String taskFreqString = task.getExecutionProfile().getCurrentResourceConsumption().getReferenceHardware().get("cpu_maxfreq"); 29 25 double taskFreq = Double.valueOf(taskFreqString); 30 26 … … 49 45 currentFrequency = taskFreq; 50 46 51 double execTime = (1 - completionPercentage/100) * task.get CurrentResourceConsumption().getDuration() * (taskFreq / currentFrequency);47 double execTime = (1 - completionPercentage/100) * task.getExecutionProfile().getCurrentResourceConsumption().getDuration() * (taskFreq / currentFrequency); 52 48 53 49 // if the result is very close to 0, but less then one millisecond then round this result to 0.001 -
DCWoRMS/branches/coolemall/src/example/timeestimation/coolemall/PhaseTimeEstimationPlugin.java
r1253 r1396 25 25 Executable exec = (Executable) task; 26 26 27 ResourceConsumption resConsumption = exec.get ResourceConsumptionProfile().getCurrentResourceConsumption();27 ResourceConsumption resConsumption = exec.getExecutionProfile().getCurrentResourceConsumption(); 28 28 29 29 double execTime = (1 - completionPercentage/100) * resConsumption.getDuration();
Note: See TracChangeset
for help on using the changeset viewer.