Changeset 258 for xssim/branches/tpiontek/src/example/localplugin/FCFSPreferedRandomClusterLocalPlugin.java
- Timestamp:
- 04/12/12 16:07:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xssim/branches/tpiontek/src/example/localplugin/FCFSPreferedRandomClusterLocalPlugin.java
r257 r258 31 31 private boolean init = true; 32 32 33 int scenario = 1;33 int scenario = 2; 34 34 String prefered = null; 35 35 … … 85 85 case 1: break; 86 86 case 2: 87 //ComputingNode node = chooseRandomProvider(resourceManager, ResourceStatus.UNAVAILABLE, task); 87 node = chooseRandomProvider(resourceManager, ResourceStatus.UNAVAILABLE, task); 88 if( node != null) 89 { 90 List<Processor> cpus = chooseProcessorsForExecution(node, ResourceStatus.UNAVAILABLE, task); 91 for( Processor cpu: cpus) 92 cpu.getPowerInterface().setPowerState( PowerState.ON); 93 } 88 94 break; 89 95 }
Note: See TracChangeset
for help on using the changeset viewer.