Changeset 1117 for DCWoRMS/branches/coolemall/src/simulator
- Timestamp:
- 06/18/13 10:14:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/simulator/stats/implementation/DCWormsStatistics.java
r1056 r1117 84 84 import simulator.stats.SimulationStatistics; 85 85 import simulator.stats.implementation.out.AbstractStringSerializer; 86 import simulator.stats.implementation.out.CoolEmAllStringSerializer; 86 87 import simulator.stats.implementation.out.StringSerializer; 87 88 import csiro.mit.utils.jfreechart.timetablechart.TimetableChartFactory; … … 154 155 protected TaskSeriesCollection ganttDiagramTaskSeriesCollection; 155 156 protected TaskSeriesCollection ganttDiagramWaitingTimeSeriesCollection; 156 protected HashMap<String, List<String>> task_processorsMap;157 protected Map<String, List<String>> task_processorsMap; 157 158 158 159 protected JobRegistry jr; … … 167 168 this.outputFolderName = outputFolderName; 168 169 169 this.serializer = new StringSerializer();170 this.serializer = new CoolEmAllStringSerializer(); 170 171 this.serializer.setDefaultNumberFormat(DataCenterWorkloadSimulator.DFAULT_NUMBER_FORMAT); 171 172 … … 339 340 if (resourceLoadStatsFile != null) { 340 341 Object txt = resourceUsage.serialize(serializer); 341 resourceLoadStatsFile.print ln(txt);342 resourceLoadStatsFile.print(txt); 342 343 } 343 344 } … … 375 376 if (energyStatsFile != null) { 376 377 Object txt = energyUsage.serialize(serializer); 377 energyStatsFile.print ln(txt);378 energyStatsFile.print(txt); 378 379 } 379 380 } … … 413 414 if (airFlowStatsFile != null) { 414 415 Object txt = airFlow.serialize(serializer); 415 airFlowStatsFile.print ln(txt);416 airFlowStatsFile.print(txt); 416 417 } 417 418 } … … 451 452 if (temperatureStatsFile != null) { 452 453 Object txt = temperature.serialize(serializer); 453 temperatureStatsFile.print ln(txt);454 temperatureStatsFile.print(txt); 454 455 } 455 456 } … … 1442 1443 o1int = Integer.parseInt(o1.substring(o1.indexOf("_")+1)); 1443 1444 o2int = Integer.parseInt(o2.substring(o2.indexOf("_")+1)); 1444 if(o1string.compareTo(o2string) != 0)1445 return o1string.compareTo(o2string);1446 else1445 //if(o1string.compareTo(o2string) != 0) 1446 // return o1string.compareTo(o2string); 1447 //else 1447 1448 return o1int.compareTo(o2int); 1448 1449 }
Note: See TracChangeset
for help on using the changeset viewer.