Changeset 755 for DCWoRMS/trunk/src/schedframe/resources/computing
- Timestamp:
- 01/07/13 14:53:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/schedframe/resources/computing/profiles/energy/EnergyExtension.java
r495 r755 11 11 import schedframe.resources.computing.extensions.ExtensionException; 12 12 import schedframe.resources.computing.extensions.ExtensionType; 13 import schedframe.resources.computing.profiles.energy.airthroughput.AirThroughputInterfaceFactory; 13 14 import schedframe.resources.computing.profiles.energy.airthroughput.AirThroughputProfile; 14 15 import schedframe.resources.computing.profiles.energy.airthroughput.ui.AirThroughputInterface; 16 import schedframe.resources.computing.profiles.energy.power.PowerInterfaceFactory; 15 17 import schedframe.resources.computing.profiles.energy.power.PowerProfile; 16 18 import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; … … 42 44 this.airFlowProfile = airFlowProfile; 43 45 } 46 47 public EnergyExtension(ComputingResource computingResource, PowerProfile powerProfile, 48 AirThroughputProfile airFlowProfile) { 49 super(); 50 this.computingResource = computingResource; 51 this.powerProfile = powerProfile; 52 this.powerInterface = PowerInterfaceFactory.createPowerInterface(computingResource, powerProfile); 53 this.airFlowProfile = airFlowProfile; 54 this.airFlowInterface = AirThroughputInterfaceFactory.createAirThroughputInterface(computingResource, airFlowProfile); 55 } 44 56 45 57 public boolean supportsEvent(Event event) { … … 62 74 63 75 else return false; 64 65 76 } 66 77 … … 105 116 break; 106 117 case AIRFLOW_STATE_CHANGED: 107 System.out.println("=====" );118 System.out.println("=====" + computingResource.getName()); 108 119 double airFlow = powerProfile.getEnergyEstimationPlugin().estimateAirThroughput(enEvent, new JobRegistryImpl(computingResource.getName()), computingResource); 109 120 airFlowProfile.addToPowerUsageHistory(airFlow); … … 122 133 } 123 134 124 public ComputingResource getResource() {135 /*public ComputingResource getResource() { 125 136 return computingResource; 126 137 } … … 128 139 public void setResource(ComputingResource compRes){ 129 140 this.computingResource = compRes; 130 } 141 }*/ 131 142 132 143 public PowerInterface getPowerInterface() {
Note: See TracChangeset
for help on using the changeset viewer.