Ignore:
Timestamp:
10/09/12 13:58:06 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/simulator/reader/ResourceReader.java

    r477 r490  
    1111import java.util.Deque; 
    1212import java.util.HashMap; 
     13import java.util.LinkedHashSet; 
    1314import java.util.LinkedList; 
    1415import java.util.List; 
    1516import java.util.Map; 
     17import java.util.Set; 
    1618 
    1719import org.exolab.castor.types.AnyNode; 
     
    5456        private String globalSchedulingPluginName; 
    5557         
     58        private Set<String> compResLayers; 
     59         
    5660        public ResourceReader(ConfigurationOptions options) throws IOException { 
    5761 
     
    5963                globalSchedulingPluginName = "example.globalplugin.GridFCFSRoundRobinPlugin"; 
    6064                prepareCalendar(); 
     65                compResLayers = new LinkedHashSet<String>(); 
    6166        } 
    6267 
     
    97102                ResourceController rc = new ResourceController(mainScheduler, computingResources); 
    98103                rc.setInitList(toInit); 
     104                rc.setCompResLayers(compResLayers); 
    99105                return rc; 
    100106        } 
     
    192198                        ComputingResource parentResource = resStructure.pop(); 
    193199                        toInit.add(parentResource); 
     200                        compResLayers.add(parentResource.getType().getName()); 
    194201                        List<AbstractResourceDescription> childrenResDesc = parentResDesc.getChildren(); 
    195202                        if (childrenResDesc == null){ 
Note: See TracChangeset for help on using the changeset viewer.