- Timestamp:
- 06/26/14 14:24:08 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsIn2OutSP.java
r1247 r1399 18 18 import schedframe.resources.computing.ComputingResource; 19 19 import schedframe.resources.computing.Core; 20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 21 21 import schedframe.resources.units.ProcessingElements; 22 22 import schedframe.resources.units.ResourceUnit; … … 28 28 import schedframe.scheduling.plan.SchedulingPlanInterface; 29 29 import schedframe.scheduling.plan.impl.SchedulingPlan; 30 import schedframe.scheduling.plugin. grid.ModuleList;30 import schedframe.scheduling.plugin.ModuleList; 31 31 import schedframe.scheduling.queue.TaskQueue; 32 32 import schedframe.scheduling.queue.TaskQueueList; … … 61 61 Node node = chooseProvider(resourceManager, task); 62 62 if (node != null) { 63 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);63 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 64 64 notSelectedNodes.remove(node); 65 65 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 170 170 //node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.FAN_OFF); 171 171 } else { 172 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);172 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 173 173 } 174 174 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsLeft2RightSP.java
r1247 r1399 18 18 import schedframe.resources.computing.ComputingResource; 19 19 import schedframe.resources.computing.Core; 20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 21 21 import schedframe.resources.units.ProcessingElements; 22 22 import schedframe.resources.units.ResourceUnit; … … 28 28 import schedframe.scheduling.plan.SchedulingPlanInterface; 29 29 import schedframe.scheduling.plan.impl.SchedulingPlan; 30 import schedframe.scheduling.plugin. grid.ModuleList;30 import schedframe.scheduling.plugin.ModuleList; 31 31 import schedframe.scheduling.queue.TaskQueue; 32 32 import schedframe.scheduling.queue.TaskQueueList; … … 62 62 Node node = chooseProvider(resourceManager, task); 63 63 if (node != null) { 64 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);64 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 65 65 notSelectedNodes.remove(node); 66 66 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 170 170 // node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.FAN_OFF); 171 171 } else { 172 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);172 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 173 173 } 174 174 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsOut2InSP.java
r1247 r1399 18 18 import schedframe.resources.computing.ComputingResource; 19 19 import schedframe.resources.computing.Core; 20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 21 21 import schedframe.resources.units.ProcessingElements; 22 22 import schedframe.resources.units.ResourceUnit; … … 28 28 import schedframe.scheduling.plan.SchedulingPlanInterface; 29 29 import schedframe.scheduling.plan.impl.SchedulingPlan; 30 import schedframe.scheduling.plugin. grid.ModuleList;30 import schedframe.scheduling.plugin.ModuleList; 31 31 import schedframe.scheduling.queue.TaskQueue; 32 32 import schedframe.scheduling.queue.TaskQueueList; … … 61 61 Node node = chooseProvider(resourceManager, task); 62 62 if (node != null) { 63 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);63 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 64 64 notSelectedNodes.remove(node); 65 65 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 169 169 //node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.FAN_OFF); 170 170 } else { 171 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);171 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 172 172 } 173 173 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsRandomSP.java
r1247 r1399 14 14 import schedframe.resources.computing.ComputingResource; 15 15 import schedframe.resources.computing.Core; 16 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;17 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;16 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 17 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 18 18 import schedframe.resources.units.ProcessingElements; 19 19 import schedframe.resources.units.ResourceUnit; … … 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; … … 58 58 Node node = chooseRandomProvider(resourceManager, task); 59 59 if (node != null) { 60 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);60 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 61 61 notSelectedNodes.remove(node); 62 62 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 152 152 for(Node node : nodes){ 153 153 if(node.getFreeProcessorsNumber() == node.getProcessorsNumber()){ 154 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF);154 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.OFF); 155 155 } else if(new JobRegistryImpl(node.getFullName()).getRunningTasks().size() > 1) 156 node.getAir ThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("FAN_ON_TURBO"));156 node.getAirflowInterface().setAirflowState(new CustomAirflowStateName("FAN_ON_TURBO")); 157 157 else 158 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);158 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 159 159 } 160 160 }
Note: See TracChangeset
for help on using the changeset viewer.