Changeset 1377 for DCWoRMS/branches/coolemall/src/simulator/stats
- Timestamp:
- 06/06/14 10:48:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/simulator/stats/DCwormsMetricsCalculator.java
r1278 r1377 48 48 roomPower = roomPower + acc.getSum(); 49 49 } 50 metric = new MetricsStats("CoolEmAllTestbed", "Total_energy_consumption", roomPower, timestamp, "Wh"); 51 } catch (Exception e){ 52 metric = new MetricsStats("CoolEmAllTestbed", "Total_energy_consumption", -1, timestamp, "Wh"); 50 51 metric = new MetricsStats("CoolEmAllTestbed", "Total_energy_consumption - not implemented yet", 0, timestamp, "Wh"); 52 } catch (Exception e){ 53 metric = new MetricsStats("CoolEmAllTestbed", "Total_energy_consumption - not implemented yet", -1, timestamp, "Wh"); 53 54 } 54 55 return metric; … … 63 64 itComputingPower = itComputingPower + acc.getSum(); 64 65 } 65 metric = new MetricsStats("CoolEmAllTestbed", "Total_processors_energy_consumption ", (itComputingPower), timestamp, "Wh");66 } catch (Exception e){ 67 metric = new MetricsStats("CoolEmAllTestbed", "Total_processors_energy_consumption ", -1, timestamp, "Wh");66 metric = new MetricsStats("CoolEmAllTestbed", "Total_processors_energy_consumption - not implemented yet", 0, timestamp, "Wh"); 67 } catch (Exception e){ 68 metric = new MetricsStats("CoolEmAllTestbed", "Total_processors_energy_consumption - not implemented yet", -1, timestamp, "Wh"); 68 69 } 69 70 return metric; … … 87 88 } 88 89 double fanPowerConumspion = nodeComputingPower - itComputingPower; 89 metric = new MetricsStats("CoolEmAllTestbed", "Total_IT_energy_consumption ", (totalSitePower * CoolEmAllTestbedMeasurements.POWER_SUPPLY_EFFICIENCY - fanPowerConumspion), timestamp, "Wh");90 } catch (Exception e){ 91 metric = new MetricsStats("CoolEmAllTestbed", "Total_IT_energy_consumption ", -1, timestamp, "Wh");90 metric = new MetricsStats("CoolEmAllTestbed", "Total_IT_energy_consumption - not implemented yet", 0, timestamp, "Wh"); 91 } catch (Exception e){ 92 metric = new MetricsStats("CoolEmAllTestbed", "Total_IT_energy_consumption - not implemented yet", -1, timestamp, "Wh"); 92 93 } 93 94 return metric; … … 120 121 double nodeGroupFansPowerConumspion = nodeComputingPower - itComputingPower; 121 122 122 metric = new MetricsStats("CoolEmAllTestbed", "PUE_Level_4 ", roomPower/(totalSitePower * CoolEmAllTestbedMeasurements.POWER_SUPPLY_EFFICIENCY - nodeGroupFansPowerConumspion), timestamp, "");123 } catch (Exception e){ 124 metric = new MetricsStats("CoolEmAllTestbed", "PUE_Level_4 ", -1, timestamp, "");123 metric = new MetricsStats("CoolEmAllTestbed", "PUE_Level_4 - not implemented yet", 0, timestamp, ""); 124 } catch (Exception e){ 125 metric = new MetricsStats("CoolEmAllTestbed", "PUE_Level_4 - not implemented yet", -1, timestamp, ""); 125 126 } 126 127 return metric; … … 143 144 144 145 145 metric = new MetricsStats("CoolEmAllTestbed", "PUE ", roomPower/totalSitePower, timestamp, "");146 } catch (Exception e){ 147 metric = new MetricsStats("CoolEmAllTestbed", "PUE ", -1, timestamp, "");146 metric = new MetricsStats("CoolEmAllTestbed", "PUE - not implemented yet", 0, timestamp, ""); 147 } catch (Exception e){ 148 metric = new MetricsStats("CoolEmAllTestbed", "PUE - not implemented yet", -1, timestamp, ""); 148 149 } 149 150 return metric; … … 162 163 } 163 164 } 164 metric = new MetricsStats("CoolEmAllTestbed", "Useful_Work ", usefulWork, timestamp, "UW units");165 } catch (Exception e){ 166 metric = new MetricsStats("CoolEmAllTestbed", "Useful_Work ", -1, timestamp, "UW units");165 metric = new MetricsStats("CoolEmAllTestbed", "Useful_Work - not implemented yet", 0, timestamp, "UW units"); 166 } catch (Exception e){ 167 metric = new MetricsStats("CoolEmAllTestbed", "Useful_Work - not implemented yet", -1, timestamp, "UW units"); 167 168 } 168 169 … … 187 188 } 188 189 189 metric = new MetricsStats("CoolEmAllTestbed", "Productivity ", usefulWork/totalSitePower, timestamp, "UW units/Wh");190 } catch (Exception e){ 191 metric = new MetricsStats("CoolEmAllTestbed", "Productivity ", -1, timestamp, "UW units/Wh");190 metric = new MetricsStats("CoolEmAllTestbed", "Productivity - not implemented yet", 0, timestamp, "UW units/Wh"); 191 } catch (Exception e){ 192 metric = new MetricsStats("CoolEmAllTestbed", "Productivity - not implemented yet", -1, timestamp, "UW units/Wh"); 192 193 } 193 194 … … 207 208 } 208 209 209 metric = new MetricsStats("CoolEmAllTestbed", "Max_power ", maxPower, timestamp, "W");210 } catch (Exception e){ 211 metric = new MetricsStats("CoolEmAllTestbed", "Max_power ", -1, timestamp, "W");210 metric = new MetricsStats("CoolEmAllTestbed", "Max_power - not implemented yet", 0, timestamp, "W"); 211 } catch (Exception e){ 212 metric = new MetricsStats("CoolEmAllTestbed", "Max_power - not implemented yet", -1, timestamp, "W"); 212 213 } 213 214 … … 223 224 coolingDevicePower = coolingDevicePower + acc.getSum(); 224 225 } 225 metric = new MetricsStats("CoolEmAllTestbed", "Total_cooling_device_energy_consumption ", coolingDevicePower, timestamp, "Wh");226 } catch (Exception e){ 227 metric = new MetricsStats("CoolEmAllTestbed", "Total_cooling_device_energy_consumption ", -1, timestamp, "Wh");226 metric = new MetricsStats("CoolEmAllTestbed", "Total_cooling_device_energy_consumption - not implemented yet", 0, timestamp, "Wh"); 227 } catch (Exception e){ 228 metric = new MetricsStats("CoolEmAllTestbed", "Total_cooling_device_energy_consumption - not implemented yet", -1, timestamp, "Wh"); 228 229 } 229 230 return metric; … … 239 240 roomPower = roomPower + acc.getSum(); 240 241 } 241 metric = new MetricsStats("CoolEmAllTestbed", "Mean_power ", roomPower/((this.endTime - this.startTime)/(SEC_IN_HOUR * MILLI_SEC)), timestamp, "W");242 } catch (Exception e){ 243 metric = new MetricsStats("CoolEmAllTestbed", "Mean_power ", -1, timestamp, "W");242 metric = new MetricsStats("CoolEmAllTestbed", "Mean_power - not implemented yet", 0, timestamp, "W"); 243 } catch (Exception e){ 244 metric = new MetricsStats("CoolEmAllTestbed", "Mean_power - not implemented yet", -1, timestamp, "W"); 244 245 } 245 246 return metric; … … 256 257 double itEnergy = calculateITEnergyConsumption().getValue(); 257 258 258 metric = new MetricsStats("CoolEmAllTestbed", "Energy_waste_rate ", (1 - itComputingEnergy/itEnergy) * 100, timestamp, "%");259 } catch (Exception e){ 260 metric = new MetricsStats("CoolEmAllTestbed", "Energy_waste_rate ", -1, timestamp, "%");259 metric = new MetricsStats("CoolEmAllTestbed", "Energy_waste_rate - not implemented yet", 0, timestamp, "%"); 260 } catch (Exception e){ 261 metric = new MetricsStats("CoolEmAllTestbed", "Energy_waste_rate - not implemented yet", -1, timestamp, "%"); 261 262 } 262 263 return metric;
Note: See TracChangeset
for help on using the changeset viewer.