Changeset 1570 for DCWoRMS/branches
- Timestamp:
- 02/02/16 13:56:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/simulator/stats/implementation/TaskStats.java
r1567 r1570 11 11 import java.util.List; 12 12 import java.util.Set; 13 import java.util.TreeSet; 13 14 14 15 import schedframe.resources.computing.ComputingResource; … … 183 184 } 184 185 185 public List<String> getProcessingElementsName() {186 List<String> processingElementsNames = new ArrayList<String>();186 public Set<String> getProcessingElementsName() { 187 Set<String> processingElementsNames = new TreeSet<String>(); 187 188 Iterator<ComputingResource> it = processingElements.iterator(); 188 189 while(it.hasNext()) { … … 190 191 processingElementsNames.add(compRes.getFullName()); 191 192 } 192 processingElementsNames.sort(new PEIdComparator());193 193 return processingElementsNames; 194 194 } 195 195 196 196 public Set<String> getHostName() { 197 Set<String> hostNames = new HashSet<String>();197 Set<String> hostNames = new TreeSet <String>(); 198 198 Iterator<ComputingResource> it = processingElements.iterator(); 199 199 while(it.hasNext()) { … … 212 212 hostNames.add(node.getFullName()); 213 213 } 214 214 215 return hostNames; 215 216 } … … 239 240 240 241 } 241 242 243 class PEIdComparator implements Comparator<String>{244 245 @Override246 public int compare(String o1, String o2) {247 return(o1.compareTo(o2));248 }249 }
Note: See TracChangeset
for help on using the changeset viewer.