Ignore:
Timestamp:
06/06/14 10:48:32 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

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

    r1278 r1377  
    4848                                roomPower = roomPower + acc.getSum(); 
    4949                        } 
    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"); 
    5354                } 
    5455                return metric; 
     
    6364                                itComputingPower = itComputingPower + acc.getSum(); 
    6465                        } 
    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"); 
    6869                } 
    6970                return metric; 
     
    8788                        } 
    8889                        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"); 
    9293                } 
    9394                return metric; 
     
    120121                        double nodeGroupFansPowerConumspion = nodeComputingPower - itComputingPower; 
    121122 
    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, ""); 
    125126                } 
    126127                return metric; 
     
    143144 
    144145 
    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, ""); 
    148149                } 
    149150                return metric; 
     
    162163                                } 
    163164                        } 
    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"); 
    167168                } 
    168169                 
     
    187188                        } 
    188189                         
    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"); 
    192193                } 
    193194                 
     
    207208                        } 
    208209 
    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"); 
    212213                } 
    213214                 
     
    223224                                coolingDevicePower = coolingDevicePower + acc.getSum(); 
    224225                        } 
    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"); 
    228229                } 
    229230                return metric; 
     
    239240                                roomPower = roomPower + acc.getSum(); 
    240241                        } 
    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"); 
    244245                } 
    245246                return metric; 
     
    256257                        double itEnergy = calculateITEnergyConsumption().getValue(); 
    257258                         
    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, "%"); 
    261262                } 
    262263                return metric; 
Note: See TracChangeset for help on using the changeset viewer.