- Timestamp:
- 06/26/14 14:18:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/simulator/stats/AccumulatedStatistics.java
r481 r1396 10 10 import java.util.List; 11 11 12 import simulator.stats.implementation.DCWormsStatistics;13 12 import gridsim.Accumulator; 14 13 … … 50 49 } 51 50 52 GSSAccumulator resourceLoad = getAccumulatedResourceLoad();53 GSSAccumulator reservationLoad = getAccumulatedReservationLoad();54 GSSAccumulator makespan = getAccumulatedMakespan();55 GSSAccumulator taskExecutionTime = getAccumulatedJobExecutionTime();56 GSSAccumulator taskQueueLength = getAccumulatedQueueJobCount();57 GSSAccumulator taskCompletionTime = getAccumulatedCompletionTime();58 GSSAccumulator taskWaitingTime = getAccumulatedWaitingTime();59 GSSAccumulator taskFlowTime = getAccumulatedJobFlowTime();60 GSSAccumulator taskLateness = getAccumulatedLateness();61 GSSAccumulator delayedTasks = getAccumulatedDelayedTasks();62 GSSAccumulator taskTardiness = getAccumulatedTardiness();63 GSSAccumulator failedRequests = getAccumulatedFailedRequests();51 DCwormsAccumulator resourceLoad = getAccumulatedResourceLoad(); 52 DCwormsAccumulator reservationLoad = getAccumulatedReservationLoad(); 53 DCwormsAccumulator makespan = getAccumulatedMakespan(); 54 DCwormsAccumulator taskExecutionTime = getAccumulatedJobExecutionTime(); 55 DCwormsAccumulator taskQueueLength = getAccumulatedQueueJobCount(); 56 DCwormsAccumulator taskCompletionTime = getAccumulatedCompletionTime(); 57 DCwormsAccumulator taskWaitingTime = getAccumulatedWaitingTime(); 58 DCwormsAccumulator taskFlowTime = getAccumulatedJobFlowTime(); 59 DCwormsAccumulator taskLateness = getAccumulatedLateness(); 60 DCwormsAccumulator delayedTasks = getAccumulatedDelayedTasks(); 61 DCwormsAccumulator taskTardiness = getAccumulatedTardiness(); 62 DCwormsAccumulator failedRequests = getAccumulatedFailedRequests(); 64 63 65 64 out.print("Delayed tasks (accumulated)"); … … 91 90 } 92 91 93 public GSSAccumulator getAccumulatedResourceLoad() {94 GSSAccumulator resourceMeanLoad = new GSSAccumulator();95 for (SimulationStatistics simStat : simulations) { 96 GSSAccumulator simulationResTotalLoad = simStat.getStats(SimulationStatistics.RESOURCES_TOTAL_LOAD);92 public DCwormsAccumulator getAccumulatedResourceLoad() { 93 DCwormsAccumulator resourceMeanLoad = new DCwormsAccumulator(); 94 for (SimulationStatistics simStat : simulations) { 95 DCwormsAccumulator simulationResTotalLoad = simStat.getStats(SimulationStatistics.RESOURCES_TOTAL_LOAD); 97 96 resourceMeanLoad.add(simulationResTotalLoad.getMean()); 98 97 } … … 100 99 } 101 100 102 public GSSAccumulator getAccumulatedReservationLoad(){103 GSSAccumulator reservationMean = new GSSAccumulator();101 public DCwormsAccumulator getAccumulatedReservationLoad(){ 102 DCwormsAccumulator reservationMean = new DCwormsAccumulator(); 104 103 for (SimulationStatistics simStat : simulations) { 105 104 Accumulator simulationResvTotalLoad = simStat.getStats(SimulationStatistics.RESOURCES_RESERVATION_LOAD); … … 119 118 }*/ 120 119 121 public GSSAccumulator getAccumulatedJobFlowTime() {122 GSSAccumulator meanJobFlowTime = new GSSAccumulator();120 public DCwormsAccumulator getAccumulatedJobFlowTime() { 121 DCwormsAccumulator meanJobFlowTime = new DCwormsAccumulator(); 123 122 for (SimulationStatistics simStat : simulations) { 124 123 Accumulator simulationJobFlowTime = simStat.getStats(SimulationStatistics.TASK_FLOW_TIME); … … 128 127 } 129 128 130 public GSSAccumulator getAccumulatedLateness() {131 GSSAccumulator meanLateness = new GSSAccumulator();129 public DCwormsAccumulator getAccumulatedLateness() { 130 DCwormsAccumulator meanLateness = new DCwormsAccumulator(); 132 131 for (SimulationStatistics simStat : simulations) { 133 132 Accumulator simulationLateness = simStat.getStats(SimulationStatistics.TASK_LATENESS); … … 137 136 } 138 137 139 public GSSAccumulator getAccumulatedFailedRequests() {140 GSSAccumulator meanFailedRequests = new GSSAccumulator();138 public DCwormsAccumulator getAccumulatedFailedRequests() { 139 DCwormsAccumulator meanFailedRequests = new DCwormsAccumulator(); 141 140 for (SimulationStatistics simStat : simulations) { 142 141 Accumulator simulationFailedRequestes = simStat.getStats(SimulationStatistics.FAILED_REQUESTS); … … 146 145 } 147 146 148 public GSSAccumulator getAccumulatedTardiness() {149 GSSAccumulator meanTardiness = new GSSAccumulator();147 public DCwormsAccumulator getAccumulatedTardiness() { 148 DCwormsAccumulator meanTardiness = new DCwormsAccumulator(); 150 149 for (SimulationStatistics simStat : simulations) { 151 150 Accumulator simulationJobTardiness = simStat.getStats(SimulationStatistics.TASK_TARDINESS); … … 155 154 } 156 155 157 public GSSAccumulator getAccumulatedDelayedTasks() {158 GSSAccumulator delayedTasks = new GSSAccumulator();156 public DCwormsAccumulator getAccumulatedDelayedTasks() { 157 DCwormsAccumulator delayedTasks = new DCwormsAccumulator(); 159 158 for (SimulationStatistics simStat : simulations) { 160 159 Accumulator simulationDelayedTasks = simStat.getStats(SimulationStatistics.DELAYED_TASKS); … … 164 163 } 165 164 166 public GSSAccumulator getAccumulatedCompletionTime() {167 GSSAccumulator meanJobCompletionTime = new GSSAccumulator();165 public DCwormsAccumulator getAccumulatedCompletionTime() { 166 DCwormsAccumulator meanJobCompletionTime = new DCwormsAccumulator(); 168 167 169 168 for (SimulationStatistics simStat : simulations) { … … 174 173 } 175 174 176 public GSSAccumulator getAccumulatedMakespan() {177 GSSAccumulator meanMakespan = new GSSAccumulator();175 public DCwormsAccumulator getAccumulatedMakespan() { 176 DCwormsAccumulator meanMakespan = new DCwormsAccumulator(); 178 177 for (SimulationStatistics simStat : simulations) { 179 178 meanMakespan.add(simStat.getStats(SimulationStatistics.MAKESPAN).getMean()); … … 182 181 } 183 182 184 public GSSAccumulator getAccumulatedWaitingTime() {185 GSSAccumulator meanWaitingTime = new GSSAccumulator();183 public DCwormsAccumulator getAccumulatedWaitingTime() { 184 DCwormsAccumulator meanWaitingTime = new DCwormsAccumulator(); 186 185 for (SimulationStatistics simStat : simulations) 187 186 meanWaitingTime.add(simStat.getStats(SimulationStatistics.TASK_WAITING_TIME).getMean()); … … 189 188 } 190 189 191 public GSSAccumulator getAccumulatedJobExecutionTime() {192 GSSAccumulator meanJobExecutionTime = new GSSAccumulator();190 public DCwormsAccumulator getAccumulatedJobExecutionTime() { 191 DCwormsAccumulator meanJobExecutionTime = new DCwormsAccumulator(); 193 192 for (SimulationStatistics simStat : simulations) 194 193 meanJobExecutionTime.add(simStat.getStats(SimulationStatistics.TASK_EXECUTION_TIME).getMean()); … … 196 195 } 197 196 198 public GSSAccumulator getAccumulatedQueueJobCount() {199 GSSAccumulator meanQueuJobCount = new GSSAccumulator();197 public DCwormsAccumulator getAccumulatedQueueJobCount() { 198 DCwormsAccumulator meanQueuJobCount = new DCwormsAccumulator(); 200 199 for (SimulationStatistics simStat : simulations) 201 200 meanQueuJobCount.add(simStat.getStats(SimulationStatistics.RESOURCES_QUEUE_LENGTH).getMean());
Note: See TracChangeset
for help on using the changeset viewer.