Ignore:
Timestamp:
06/18/13 10:14:07 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/simulator/stats/implementation/DCWormsStatistics.java

    r1056 r1117  
    8484import simulator.stats.SimulationStatistics; 
    8585import simulator.stats.implementation.out.AbstractStringSerializer; 
     86import simulator.stats.implementation.out.CoolEmAllStringSerializer; 
    8687import simulator.stats.implementation.out.StringSerializer; 
    8788import csiro.mit.utils.jfreechart.timetablechart.TimetableChartFactory; 
     
    154155        protected TaskSeriesCollection ganttDiagramTaskSeriesCollection; 
    155156        protected TaskSeriesCollection ganttDiagramWaitingTimeSeriesCollection; 
    156         protected HashMap<String, List<String>> task_processorsMap; 
     157        protected Map<String, List<String>> task_processorsMap; 
    157158 
    158159        protected JobRegistry jr; 
     
    167168                this.outputFolderName = outputFolderName; 
    168169 
    169                 this.serializer = new StringSerializer(); 
     170                this.serializer = new CoolEmAllStringSerializer(); 
    170171                this.serializer.setDefaultNumberFormat(DataCenterWorkloadSimulator.DFAULT_NUMBER_FORMAT); 
    171172 
     
    339340                                                if (resourceLoadStatsFile != null) { 
    340341                                                        Object txt = resourceUsage.serialize(serializer); 
    341                                                         resourceLoadStatsFile.println(txt); 
     342                                                        resourceLoadStatsFile.print(txt); 
    342343                                                } 
    343344                                        } 
     
    375376                                                if (energyStatsFile != null) { 
    376377                                                        Object txt = energyUsage.serialize(serializer); 
    377                                                         energyStatsFile.println(txt); 
     378                                                        energyStatsFile.print(txt); 
    378379                                                } 
    379380                                        } 
     
    413414                                                if (airFlowStatsFile != null) { 
    414415                                                        Object txt = airFlow.serialize(serializer); 
    415                                                         airFlowStatsFile.println(txt); 
     416                                                        airFlowStatsFile.print(txt); 
    416417                                                } 
    417418                                        } 
     
    451452                                                if (temperatureStatsFile != null) { 
    452453                                                        Object txt = temperature.serialize(serializer); 
    453                                                         temperatureStatsFile.println(txt); 
     454                                                        temperatureStatsFile.print(txt); 
    454455                                                } 
    455456                                        } 
     
    14421443                        o1int = Integer.parseInt(o1.substring(o1.indexOf("_")+1)); 
    14431444                        o2int = Integer.parseInt(o2.substring(o2.indexOf("_")+1)); 
    1444                         if(o1string.compareTo(o2string) != 0) 
    1445                                 return o1string.compareTo(o2string); 
    1446                         else 
     1445                        //if(o1string.compareTo(o2string) != 0) 
     1446                        //      return o1string.compareTo(o2string); 
     1447                        //else 
    14471448                                return o1int.compareTo(o2int); 
    14481449                } 
Note: See TracChangeset for help on using the changeset viewer.