Ignore:
Timestamp:
10/31/12 15:19:13 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

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

    r521 r544  
    334334                                                if(resourceController.getComputingResources().contains(resource)) { 
    335335                                                        if( een != null && een.getPowerProfile() != null &&  een.getPowerProfile().getEnergyEstimationPlugin() != null){ 
    336                                                                 accStats.meanEnergyUsage.add(energyUsage.getMeanValue()); 
     336                                                                accStats.meanEnergyUsage.add(energyUsage.getSumValue()); 
    337337                                                        } 
    338338 
     
    349349                                                        } 
    350350                                                        if(top == true){ 
    351                                                                 accStats.meanEnergyUsage.add(energyUsage.getMeanValue()); 
     351                                                                accStats.meanEnergyUsage.add(energyUsage.getSumValue()); 
    352352                                                        } 
    353353                                                } 
     
    372372                                                if(resourceController.getComputingResources().contains(resource)) { 
    373373                                                        if( een != null /*&& een.getPp() != null*/ ){ 
    374                                                                 accStats.meanAirFlow.add(airFlow.meanValue); 
     374                                                                accStats.meanAirFlow.add(airFlow.getSumValue()); 
    375375                                                        } 
    376376 
     
    387387                                                        } 
    388388                                                        if(top == true){ 
    389                                                                 accStats.meanAirFlow.add(airFlow.meanValue); 
     389                                                                accStats.meanAirFlow.add(airFlow.getSumValue()); 
    390390                                                        } 
    391391                                                } 
     
    13151315                return statsData.get(name); 
    13161316        } 
    1317          
    1318         private void createStatsData() { 
    1319                 statsData.put(MAKESPAN, accStats.makespan); 
    1320                 statsData.put(TASK_COMPLETION_TIME, accStats.meanTaskCompletionTime); 
    1321                 statsData.put(TASK_EXECUTION_TIME, accStats.meanTaskExecutionTime); 
    1322                 statsData.put(TASK_START_TIME, accStats.meanTaskStartTime); 
    1323                 statsData.put(TASK_FLOW_TIME, accStats.meanTaskFlowTime); 
    1324                 statsData.put(TASK_WAITING_TIME, accStats.meanTaskWaitingTime); 
    1325                 statsData.put(TASK_LATENESS, accStats.lateness); 
    1326                 statsData.put(TASK_TARDINESS, accStats.tardiness); 
    1327                 statsData.put(DELAYED_TASKS, accStats.delayedTasks); 
    1328                 statsData.put(FAILED_REQUESTS, accStats.failedRequests); 
    1329                 statsData.put(RESOURCES_TOTAL_LOAD, accStats.meanTotalLoad); 
    1330                 statsData.put(RESOURCES_RESERVATION_LOAD, accStats.meanReservationLoad); 
    1331                 statsData.put(RESOURCES_RESERVATION_LOAD, accStats.meanEnergyUsage); 
    1332                 statsData.put(RESOURCES_QUEUE_LENGTH, accStats.meanQueueLength); 
    1333         } 
    1334  
    13351317 
    13361318        public boolean accumulatedStats() { 
Note: See TracChangeset for help on using the changeset viewer.