Ignore:
Timestamp:
06/26/14 14:24:08 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/FanEnergyEstimationPlugin.java

    r1210 r1399  
    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} 
  • DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsCpuBaseEEP.java

    r1210 r1399  
    55import schedframe.resources.computing.Processor; 
    66import schedframe.resources.computing.profiles.energy.EnergyEvent; 
    7 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirThroughputStateName; 
     7import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 
    88import schedframe.resources.devices.PhysicalResource; 
    99import schedframe.scheduling.manager.tasks.JobRegistry; 
     
    3939                try { 
    4040                        if(event.getReason() == EventReason.SIM_INIT) 
    41                                 airThroughput = resource.getAirThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF); 
     41                                airThroughput = resource.getAirflowInterface().getAirflow(StandardAirflowStateName.OFF); 
    4242                        else 
    43                                 airThroughput = resource.getAirThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState()); 
     43                                airThroughput = resource.getAirflowInterface().getAirflow(resource.getAirflowInterface().getAirflowState()); 
    4444                } catch (NoSuchFieldException e) { 
    4545                        // TODO Auto-generated catch block 
     
    5353                                if(id - resId == 9 || id - resId == -9){ 
    5454                                        try { 
    55                                                 airThroughput = airThroughput + compResource.getAirThroughputInterface().getAirFlow(compResource.getAirThroughputInterface().getAirThroughputState())/2; 
     55                                                airThroughput = airThroughput + compResource.getAirflowInterface().getAirflow(compResource.getAirflowInterface().getAirflowState())/2; 
    5656                                        } catch (NoSuchFieldException e) { 
    5757                 
  • DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/energy/RecsNodeBaseEEP.java

    r1368 r1399  
    1515import schedframe.resources.computing.Processor; 
    1616import schedframe.resources.computing.profiles.energy.EnergyEvent; 
    17 import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirThroughputStateName; 
     17import schedframe.resources.computing.profiles.energy.airthroughput.StandardAirflowStateName; 
    1818import schedframe.resources.units.PEUnit; 
    1919import schedframe.resources.units.ProcessingElements; 
     
    5757                try { 
    5858                        if(event.getReason() == EventReason.SIM_INIT) 
    59                                 airThroughput = resource.getAirThroughputInterface().getAirFlow(StandardAirThroughputStateName.OFF); 
     59                                airThroughput = resource.getAirflowInterface().getAirflow(StandardAirflowStateName.OFF); 
    6060                        else 
    61                                 airThroughput = resource.getAirThroughputInterface().getAirFlow(resource.getAirThroughputInterface().getAirThroughputState()); 
     61                                airThroughput = resource.getAirflowInterface().getAirflow(resource.getAirflowInterface().getAirflowState()); 
    6262                } catch (NoSuchFieldException e) { 
    6363                        // TODO Auto-generated catch block 
     
    7171                                if(id - resId == 9 || id - resId == -9){ 
    7272                                        try { 
    73                                                 airThroughput = airThroughput + compResource.getAirThroughputInterface().getAirFlow(compResource.getAirThroughputInterface().getAirThroughputState())/2; 
     73                                                airThroughput = airThroughput + compResource.getAirflowInterface().getAirflow(compResource.getAirflowInterface().getAirflowState())/2; 
    7474                                        } catch (NoSuchFieldException e) { 
    7575                 
Note: See TracChangeset for help on using the changeset viewer.