- Timestamp:
- 11/26/13 12:37:28 (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
r826 r1211 59 59 ComputingNode node = chooseProvider(resourceManager, task); 60 60 if (node != null) { 61 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);61 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.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.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);168 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 169 169 } 170 170 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsInOffSP.java
r826 r1211 63 63 ComputingNode node = chooseProvider(resourceManager, task); 64 64 if (node != null) { 65 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);65 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 66 66 notSelectedNodes.remove(node); 67 67 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 186 186 for(ComputingNode node : nodes){ 187 187 if(node.getFreeProcessorsNumber() == node.getProcessorsNumber()){ 188 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_OFF);188 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF); 189 189 } else { 190 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);190 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 191 191 } 192 192 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsInOutSP.java
r826 r1211 62 62 ComputingNode node = chooseProvider(resourceManager, task); 63 63 if (node != null) { 64 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);64 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.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.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);172 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 173 173 } 174 174 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsOutIdleSP.java
r826 r1211 59 59 ComputingNode node = chooseProvider(resourceManager, task); 60 60 if (node != null) { 61 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);61 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.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.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);168 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 169 169 } 170 170 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp1/RecsOutOffSP.java
r826 r1211 64 64 ComputingNode node = chooseProvider(resourceManager, task); 65 65 if (node != null) { 66 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);66 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 67 67 notSelectedNodes.remove(node); 68 68 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 187 187 for(ComputingNode node : nodes){ 188 188 if(node.getFreeProcessorsNumber() == node.getProcessorsNumber()){ 189 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_OFF);189 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF); 190 190 } else { 191 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);191 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 192 192 } 193 193 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsIn2OutSP.java
r1178 r1211 61 61 ComputingNode node = chooseProvider(resourceManager, task); 62 62 if (node != null) { 63 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);63 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.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.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);172 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 173 173 } 174 174 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsLeft2RightSP.java
r826 r1211 62 62 ComputingNode node = chooseProvider(resourceManager, task); 63 63 if (node != null) { 64 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);64 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.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.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);172 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 173 173 } 174 174 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsOut2InSP.java
r1178 r1211 61 61 ComputingNode node = chooseProvider(resourceManager, task); 62 62 if (node != null) { 63 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);63 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.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.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);171 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 172 172 } 173 173 } -
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsRandomSP.java
r1200 r1211 58 58 ComputingNode node = chooseRandomProvider(resourceManager, task); 59 59 if (node != null) { 60 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);60 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 61 61 notSelectedNodes.remove(node); 62 62 addToSchedulingPlan(plan, task, chooseResourcesForExecution(node, task)); … … 152 152 for(ComputingNode node : nodes){ 153 153 if(node.getFreeProcessorsNumber() == node.getProcessorsNumber()){ 154 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_OFF);155 } else if(new JobRegistryImpl(node.get Name()).getRunningTasks().size() > 1)154 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.OFF); 155 } else if(new JobRegistryImpl(node.getFullName()).getRunningTasks().size() > 1) 156 156 node.getAirThroughputInterface().setAirThroughputState(new UserAirThroughputStateName("FAN_ON_TURBO")); 157 157 else 158 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName. FAN_ON);158 node.getAirThroughputInterface().setAirThroughputState(StandardAirThroughputStateName.ON); 159 159 } 160 160 }
Note: See TracChangeset
for help on using the changeset viewer.