Ignore:
Timestamp:
04/12/12 16:07:03 (13 years ago)
Author:
piontek
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xssim/branches/tpiontek/src/example/localplugin/FCFSPreferedRandomClusterLocalPlugin.java

    r257 r258  
    3131        private boolean init = true; 
    3232         
    33         int scenario = 1; 
     33        int scenario = 2; 
    3434        String prefered = null; 
    3535         
     
    8585                                                case 1: break; 
    8686                                                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                                                                } 
    8894                                                        break; 
    8995                                                } 
Note: See TracChangeset for help on using the changeset viewer.