- Timestamp:
- 12/29/14 17:24:25 (10 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/experiments/e2dc2013
- Files:
-
- 4 added
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/experiments/e2dc2013/recs/plugins/scheduling/exp2/RecsIn2OutSP.java
r1399 r1499 1 package test.article2.recs.plugins.scheduling.exp2; 2 1 package experiments.e2dc2013.recs.plugins.scheduling.exp2; 2 3 import experiments.e2dc2013.recs.plugins.scheduling.RecsSP; 3 4 import gridsim.dcworms.DCWormsTags; 4 5 … … 32 33 import schedframe.scheduling.queue.TaskQueueList; 33 34 import schedframe.scheduling.tasks.TaskInterface; 34 import test.article2.recs.plugins.scheduling.RecsSP;35 35 36 36 public class RecsIn2OutSP extends RecsSP { -
DCWoRMS/branches/coolemall/src/experiments/e2dc2013/recs/plugins/scheduling/exp2/RecsLeft2RightSP.java
r1399 r1499 1 package test.article2.recs.plugins.scheduling.exp2; 2 1 package experiments.e2dc2013.recs.plugins.scheduling.exp2; 2 3 import experiments.e2dc2013.recs.plugins.scheduling.RecsSP; 3 4 import gridsim.dcworms.DCWormsTags; 4 5 … … 15 16 import schedframe.events.scheduling.SchedulingEvent; 16 17 import schedframe.resources.ResourceStatus; 18 import schedframe.resources.StandardResourceType; 17 19 import schedframe.resources.computing.Node; 18 20 import schedframe.resources.computing.ComputingResource; 19 21 import schedframe.resources.computing.Core; 22 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 20 23 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 24 import schedframe.resources.devices.Device; 25 import schedframe.resources.devices.Fan; 21 26 import schedframe.resources.units.ProcessingElements; 22 27 import schedframe.resources.units.ResourceUnit; … … 32 37 import schedframe.scheduling.queue.TaskQueueList; 33 38 import schedframe.scheduling.tasks.TaskInterface; 34 import test.article2.recs.plugins.scheduling.RecsSP;35 39 36 40 public class RecsLeft2RightSP extends RecsSP { … … 62 66 Node node = chooseProvider(resourceManager, task); 63 67 if (node != null) { 64 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 68 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 69 70 if(device.getType().equals(StandardResourceType.Fan)){ 71 Fan fan = (Fan) device; 72 73 if(fan.getChilledResources().contains(node.getFullName())){ 74 fan.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 75 } 76 } 77 } 78 //node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 65 79 notSelectedNodes.remove(node); 66 80 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 170 184 // node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.FAN_OFF); 171 185 } else { 172 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 186 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 187 188 if(device.getType().equals(StandardResourceType.Fan)){ 189 Fan fan = (Fan) device; 190 191 if(fan.getChilledResources().contains(node.getFullName())){ 192 fan.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 193 } 194 } 195 } 196 //node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 173 197 } 174 198 } -
DCWoRMS/branches/coolemall/src/experiments/e2dc2013/recs/plugins/scheduling/exp2/RecsOut2InSP.java
r1399 r1499 1 package test.article2.recs.plugins.scheduling.exp2;1 package experiments.e2dc2013.recs.plugins.scheduling.exp2; 2 2 3 import experiments.e2dc2013.recs.plugins.scheduling.RecsSP; 3 4 import gridsim.dcworms.DCWormsTags; 4 5 … … 32 33 import schedframe.scheduling.queue.TaskQueueList; 33 34 import schedframe.scheduling.tasks.TaskInterface; 34 import test.article2.recs.plugins.scheduling.RecsSP;35 35 36 36 public class RecsOut2InSP extends RecsSP { -
DCWoRMS/branches/coolemall/src/experiments/e2dc2013/recs/plugins/scheduling/exp2/RecsRandomSP.java
r1399 r1499 1 package test.article2.recs.plugins.scheduling.exp2;1 package experiments.e2dc2013.recs.plugins.scheduling.exp2; 2 2 3 import experiments.e2dc2013.recs.plugins.scheduling.RecsSP; 3 4 import gridsim.dcworms.DCWormsTags; 4 5 … … 30 31 import schedframe.scheduling.queue.TaskQueueList; 31 32 import schedframe.scheduling.tasks.TaskInterface; 32 import test.article2.recs.plugins.scheduling.RecsSP;33 33 34 34 public class RecsRandomSP extends RecsSP {
Note: See TracChangeset
for help on using the changeset viewer.