- Timestamp:
- 06/26/14 14:24:08 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsInIdleSP.java
r1247 r1399 16 16 import schedframe.resources.computing.ComputingResource; 17 17 import schedframe.resources.computing.Core; 18 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;18 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 19 19 import schedframe.resources.units.ProcessingElements; 20 20 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; … … 59 59 Node node = chooseProvider(resourceManager, task); 60 60 if (node != null) { 61 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);61 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 62 62 notSelectedNodes.remove(node); 63 63 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 166 166 //node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.FAN_OFF); 167 167 } else { 168 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);168 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 169 169 } 170 170 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsInOffSP.java
r1247 r1399 17 17 import schedframe.resources.computing.Core; 18 18 import schedframe.resources.computing.Processor; 19 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;20 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;19 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 20 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 21 21 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 22 22 import schedframe.resources.units.ProcessingElements; … … 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; … … 63 63 Node node = chooseProvider(resourceManager, task); 64 64 if (node != null) { 65 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);65 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 66 66 notSelectedNodes.remove(node); 67 67 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 186 186 for(Node node : nodes){ 187 187 if(node.getFreeProcessorsNumber() == node.getProcessorsNumber()){ 188 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF);188 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.OFF); 189 189 } else { 190 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);190 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 191 191 } 192 192 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsInOutSP.java
r1247 r1399 19 19 import schedframe.resources.computing.ComputingResource; 20 20 import schedframe.resources.computing.Core; 21 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;21 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 22 22 import schedframe.resources.units.ProcessingElements; 23 23 import schedframe.resources.units.ResourceUnit; … … 29 29 import schedframe.scheduling.plan.SchedulingPlanInterface; 30 30 import schedframe.scheduling.plan.impl.SchedulingPlan; 31 import schedframe.scheduling.plugin. grid.ModuleList;31 import schedframe.scheduling.plugin.ModuleList; 32 32 import schedframe.scheduling.queue.TaskQueue; 33 33 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/exp1/RecsOutIdleSP.java
r1247 r1399 16 16 import schedframe.resources.computing.ComputingResource; 17 17 import schedframe.resources.computing.Core; 18 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;18 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 19 19 import schedframe.resources.units.ProcessingElements; 20 20 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; … … 59 59 Node node = chooseProvider(resourceManager, task); 60 60 if (node != null) { 61 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);61 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 62 62 notSelectedNodes.remove(node); 63 63 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 166 166 //node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.FAN_OFF); 167 167 } else { 168 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);168 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 169 169 } 170 170 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsOutOffSP.java
r1247 r1399 18 18 import schedframe.resources.computing.Core; 19 19 import schedframe.resources.computing.Processor; 20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAir ThroughputStateName;21 import schedframe.resources.computing.profiles.energy.airthroughput. UserAirThroughputStateName;20 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 21 import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 22 22 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 23 23 import schedframe.resources.units.ProcessingElements; … … 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; … … 64 64 Node node = chooseProvider(resourceManager, task); 65 65 if (node != null) { 66 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);66 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 67 67 notSelectedNodes.remove(node); 68 68 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 187 187 for(Node node : nodes){ 188 188 if(node.getFreeProcessorsNumber() == node.getProcessorsNumber()){ 189 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF);189 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.OFF); 190 190 } else { 191 node.getAir ThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON);191 node.getAirflowInterface().setAirflowState(StandardAirflowStateName.ON); 192 192 } 193 193 } -
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.