Ignore:
Timestamp:
06/26/14 14:18:01 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/example/energy
Files:
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/example/energy/BaseEnergyEstimationPlugin.java

    r1207 r1396  
    1717         
    1818        @Override 
    19         public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
     19        public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
    2020                throw new RuntimeException("Not implemented."); 
    2121        } 
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/CB1EnergyEstimationPlugin.java

    r1329 r1396  
    1111import schedframe.resources.computing.coolemall.NodeGroup; 
    1212import schedframe.resources.computing.profiles.energy.EnergyEvent; 
    13 import schedframe.resources.computing.profiles.energy.airthroughput.UserAirThroughputStateName; 
     13import schedframe.resources.computing.profiles.energy.airthroughput.CustomAirflowStateName; 
    1414import schedframe.resources.computing.profiles.energy.power.PState; 
    1515import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 
     
    105105                        for(Device device: nodeGroup.getResourceCharacteristic().getDevices()){ 
    106106                                try { 
    107                                         fpc = fpc + device.getAirThroughputInterface().getPowerConsumption(new UserAirThroughputStateName("2")); 
     107                                        fpc = fpc + device.getAirflowInterface().getPowerConsumption(new CustomAirflowStateName("2")); 
    108108                                } catch (NoSuchFieldException e) { 
    109109                                        // TODO Auto-generated catch block 
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/CB2EnergyEstimationPlugin.java

    r1299 r1396  
    168168                 
    169169                delta_p = ConfigurationOptions.coolingData.getPressureDrop(); 
    170                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     170                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    171171                 
    172172                if(delta_p != -1 && Vair_total != -1) 
     
    192192                                                        double Vair_recs1 = 0; 
    193193 
    194                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     194                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    195195 
    196196                                                        double Vair_recs2 = 0; 
     
    198198                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    199199 
    200                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     200                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    201201 
    202202                                                                        break; 
     
    401401                                        if(fan.getPowerInterface().getRecentPowerUsage().getValue() == -1){ 
    402402                                                try { 
    403                                                         Qfans = Qfans + (1 - delta_2) * fan.getAirThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState()); 
     403                                                        Qfans = Qfans + (1 - delta_2) * fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState()); 
    404404                                                } catch (NoSuchFieldException e) { 
    405405                                                        // TODO Auto-generated catch block 
     
    443443                double ro = 1.168;//constant 
    444444                 
    445                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     445                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    446446                 
    447447                if(Vair_total != -1) { 
     
    465465                                                        double Vair_recs1 = 0; 
    466466 
    467                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     467                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    468468 
    469469                                                        double Vair_recs2 = 0; 
     
    471471                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    472472 
    473                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     473                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    474474 
    475475                                                                        break; 
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/CoolingDeviceEnergyEstimationPlugin.java

    r1299 r1396  
    1818public class CoolingDeviceEnergyEstimationPlugin extends BaseEnergyEstimationPlugin { 
    1919 
    20         public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
    21                 double airThroughput = 0; 
    22                 return airThroughput; 
     20        public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
     21                double airflow = 0; 
     22                return airflow; 
    2323        } 
    2424 
     
    140140                 
    141141                delta_p = ConfigurationOptions.coolingData.getPressureDrop(); 
    142                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     142                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    143143                 
    144144                if(delta_p != -1 && Vair_total != -1) 
     
    164164                                                        double Vair_recs1 = 0; 
    165165 
    166                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     166                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    167167 
    168168                                                        double Vair_recs2 = 0; 
     
    170170                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    171171 
    172                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     172                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    173173 
    174174                                                                        break; 
     
    373373                                        if(fan.getPowerInterface().getRecentPowerUsage().getValue() == -1){ 
    374374                                                try { 
    375                                                         Qfans = Qfans + (1 - delta_2) * fan.getAirThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState()); 
     375                                                        Qfans = Qfans + (1 - delta_2) * fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState()); 
    376376                                                } catch (NoSuchFieldException e) { 
    377377                                                        // TODO Auto-generated catch block 
     
    415415                double ro = 1.168;//constant 
    416416                 
    417                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     417                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    418418                 
    419419                if(Vair_total != -1) { 
     
    437437                                                        double Vair_recs1 = 0; 
    438438 
    439                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     439                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    440440 
    441441                                                        double Vair_recs2 = 0; 
     
    443443                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    444444 
    445                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     445                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    446446 
    447447                                                                        break; 
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/FanEnergyEstimationPlugin.java

    r1299 r1396  
    2121                Fan fan = (Fan) resource; 
    2222                try { 
    23                         powerConsumption = fan.getAirThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState()); 
     23                        powerConsumption = fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState()); 
    2424                } catch (NoSuchFieldException e) { 
    2525                        // TODO Auto-generated catch block 
     
    3535        } 
    3636         
    37         public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
     37        public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
    3838                 
    39                 double airThroughput = 0; 
     39                double airflow = 0; 
    4040                Fan fan = (Fan) resource; 
    4141                try { 
    4242                        if(event.getReason() == EventReason.SIM_INIT) 
    43                                 airThroughput = fan.getAirThroughputInterface().getAirFlow(fan.getAirThroughputInterface().getAirThroughputState()); 
     43                                airflow = fan.getAirflowInterface().getAirflow(fan.getAirflowInterface().getAirflowState()); 
    4444                        else 
    45                                 airThroughput = fan.getAirThroughputInterface().getAirFlow(fan.getAirThroughputInterface().getAirThroughputState()); 
     45                                airflow = fan.getAirflowInterface().getAirflow(fan.getAirflowInterface().getAirflowState()); 
    4646                } catch (NoSuchFieldException e) { 
    4747                        // TODO Auto-generated catch block 
     
    6565 
    6666                 
    67                 return airThroughput * getNumberOfWorkingNodes(fan)/(double)fan.getChilledResources().size(); 
     67                return airflow * getNumberOfWorkingNodes(fan)/(double)fan.getChilledResources().size(); 
    6868        } 
    6969         
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/FlowPumpInletEnergyEstimationPlugin.java

    r1299 r1396  
    2626                 
    2727                delta_p = ConfigurationOptions.coolingData.getPressureDrop(); 
    28                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     28                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    2929                 
    3030                if(delta_p != -1 && Vair_total != -1) 
     
    5353                                                        double Vair_recs1 = 0; 
    5454 
    55                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     55                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    5656 
    5757                                                        double Vair_recs2 = 0; 
     
    5959                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    6060 
    61                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     61                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    6262 
    6363                                                                        break; 
     
    8686        } 
    8787         
    88         public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
    89                 double airThroughput = 0; 
     88        public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
     89                double airflow = 0; 
    9090                double Vair_total; 
    9191                 
    92                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     92                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    9393                if(Vair_total != -1) { 
    94                         airThroughput = Vair_total; 
     94                        airflow = Vair_total; 
    9595                } else { 
    9696                        Device flowPump = (Device) resource; 
     
    114114                                                        double Vair_recs1 = 0; 
    115115 
    116                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     116                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    117117 
    118118                                                        double Vair_recs2 = 0; 
     
    120120                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    121121 
    122                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     122                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    123123 
    124124                                                                        break; 
     
    136136                        mair_total = mair_rack; 
    137137                        Vair_total = mair_total / ro; 
    138                         airThroughput = Vair_total; 
     138                        airflow = Vair_total; 
    139139                } 
    140                 return airThroughput; 
     140                return airflow; 
    141141        } 
    142142         
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/FlowPumpOutletEnergyEstimationPlugin.java

    r1299 r1396  
    2323        } 
    2424         
    25         public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
    26                 double airThroughput = 0; 
     25        public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
     26                double airflow = 0; 
    2727                double Vair_total; 
    2828                 
    29                 Vair_total = ConfigurationOptions.coolingData.getAirFlowVolume(); 
     29                Vair_total = ConfigurationOptions.coolingData.getAirflowVolume(); 
    3030                if(Vair_total != -1) { 
    31                         airThroughput = Vair_total; 
     31                        airflow = Vair_total; 
    3232                } else { 
    3333                        Device flowPump = (Device) resource; 
     
    5151                                                        double Vair_recs1 = 0; 
    5252 
    53                                                         Vair_recs1  = fan.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     53                                                        Vair_recs1  = fan.getAirflowInterface().getRecentAirflow().getValue(); 
    5454 
    5555                                                        double Vair_recs2 = 0; 
     
    5757                                                                if(device2.getType().equals(StandardResourceType.Inlet) && device2.getFullName().equals(fan.getFullName().replace("Outlet", "Inlet"))){ 
    5858 
    59                                                                         Vair_recs2  = device2.getAirThroughputInterface().getRecentAirFlow().getValue(); 
     59                                                                        Vair_recs2  = device2.getAirflowInterface().getRecentAirflow().getValue(); 
    6060 
    6161                                                                        break; 
     
    7373                        mair_total = mair_rack; 
    7474                        Vair_total = mair_total / ro; 
    75                         airThroughput = Vair_total; 
     75                        airflow = Vair_total; 
    7676                } 
    77                 return airThroughput; 
     77                return airflow; 
    7878        } 
    7979} 
  • DCWoRMS/branches/coolemall/src/example/energy/coolemall/NodeEnergyEstimationPlugin.java

    r1299 r1396  
    3434                                                if(fan.getPowerInterface().getRecentPowerUsage().getValue() == -1){ 
    3535                                                        try { 
    36                                                                 powerConsumption = powerConsumption + fan.getAirThroughputInterface().getPowerConsumption(fan.getAirThroughputInterface().getAirThroughputState())/getNumberOfWorkingNodes(fan); 
     36                                                                powerConsumption = powerConsumption + fan.getAirflowInterface().getPowerConsumption(fan.getAirflowInterface().getAirflowState())/getNumberOfWorkingNodes(fan); 
    3737                                                        } catch (NoSuchFieldException e) { 
    3838                                                                // TODO Auto-generated catch block 
  • DCWoRMS/branches/coolemall/src/example/energy/device/FanEnergyEstimationPlugin.java

    r1207 r1396  
    33import schedframe.events.scheduling.EventReason; 
    44import schedframe.resources.computing.profiles.energy.EnergyEvent; 
    5 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirThroughputStateName; 
     5import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 
    66import schedframe.resources.devices.PhysicalResource; 
    77import schedframe.scheduling.manager.tasks.JobRegistry; 
     
    1515                try { 
    1616                        if(event.getReason() == EventReason.SIM_INIT) 
    17                                 powerConsumption = powerConsumption + resource.getAirThroughputInterface().getPowerConsumption(StandardAirThroughputStateName.OFF); 
     17                                powerConsumption = powerConsumption + resource.getAirflowInterface().getPowerConsumption(StandardAirflowStateName.OFF); 
    1818                        else 
    19                                 powerConsumption = powerConsumption + resource.getAirThroughputInterface().getPowerConsumption(resource.getAirThroughputInterface().getAirThroughputState()); 
     19                                powerConsumption = powerConsumption + resource.getAirflowInterface().getPowerConsumption(resource.getAirflowInterface().getAirflowState()); 
    2020                } catch (NoSuchFieldException e) { 
    2121                } 
     
    2424        } 
    2525 
    26         public double estimateAirThroughput(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
    27                 double airThroughput = 0; 
     26        public double estimateAirflow(EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 
     27                double airflow= 0; 
    2828                try { 
    2929                        if(event.getReason() == EventReason.SIM_INIT) 
    30                                 airThroughput = resource.getAirThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF); 
     30                                airflow = resource.getAirflowInterface().getAirflow(StandardAirflowStateName.OFF); 
    3131                        else 
    32                                 airThroughput = resource.getAirThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState()); 
     32                                airflow = resource.getAirflowInterface().getAirflow(resource.getAirflowInterface().getAirflowState()); 
    3333                } catch (NoSuchFieldException e) { 
    3434                        // TODO Auto-generated catch block 
    3535                        e.printStackTrace(); 
    3636                } 
    37                 return airThroughput; 
     37                return airflow; 
    3838        } 
    3939} 
Note: See TracChangeset for help on using the changeset viewer.