Changeset 490 for DCWoRMS/trunk/src/simulator/reader
- Timestamp:
- 10/09/12 13:58:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/simulator/reader/ResourceReader.java
r477 r490 11 11 import java.util.Deque; 12 12 import java.util.HashMap; 13 import java.util.LinkedHashSet; 13 14 import java.util.LinkedList; 14 15 import java.util.List; 15 16 import java.util.Map; 17 import java.util.Set; 16 18 17 19 import org.exolab.castor.types.AnyNode; … … 54 56 private String globalSchedulingPluginName; 55 57 58 private Set<String> compResLayers; 59 56 60 public ResourceReader(ConfigurationOptions options) throws IOException { 57 61 … … 59 63 globalSchedulingPluginName = "example.globalplugin.GridFCFSRoundRobinPlugin"; 60 64 prepareCalendar(); 65 compResLayers = new LinkedHashSet<String>(); 61 66 } 62 67 … … 97 102 ResourceController rc = new ResourceController(mainScheduler, computingResources); 98 103 rc.setInitList(toInit); 104 rc.setCompResLayers(compResLayers); 99 105 return rc; 100 106 } … … 192 198 ComputingResource parentResource = resStructure.pop(); 193 199 toInit.add(parentResource); 200 compResLayers.add(parentResource.getType().getName()); 194 201 List<AbstractResourceDescription> childrenResDesc = parentResDesc.getChildren(); 195 202 if (childrenResDesc == null){
Note: See TracChangeset
for help on using the changeset viewer.