Changeset 1318 for DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power
- Timestamp:
- 03/31/14 16:01:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power/PowerInterfaceFactory.java
r1247 r1318 4 4 import schedframe.resources.computing.ComputingResource; 5 5 import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; 6 import schedframe.resources.devices.DevicePowerInterface; 6 7 import schedframe.resources.devices.PhysicalResource; 7 import schedframe.resources.devices.PhysicalResourcePowerInterface;8 8 9 9 public class PowerInterfaceFactory { … … 22 22 powerInterface = new schedframe.resources.computing.profiles.energy.power.ui.ProcessorPowerInterface((ComputingResource)resource, pp); 23 23 else if (resource.getType().getName().equals(StandardResourceType.CRAH.getName())) 24 powerInterface = new PhysicalResourcePowerInterface(resource, pp);24 powerInterface = new DevicePowerInterface(resource, pp); 25 25 else if (resource.getType().getName().equals(StandardResourceType.Fan.getName())) 26 powerInterface = new PhysicalResourcePowerInterface(resource, pp);26 powerInterface = new DevicePowerInterface(resource, pp); 27 27 else if (resource.getType().getName().equals(StandardResourceType.Inlet.getName())) 28 powerInterface = new PhysicalResourcePowerInterface(resource, pp);28 powerInterface = new DevicePowerInterface(resource, pp); 29 29 else if (resource.getType().getName().equals(StandardResourceType.Outlet.getName())) 30 powerInterface = new PhysicalResourcePowerInterface(resource, pp);30 powerInterface = new DevicePowerInterface(resource, pp); 31 31 else if (resource.getType().getName().equals(StandardResourceType.CoolingDevice.getName())) 32 powerInterface = new PhysicalResourcePowerInterface(resource, pp);32 powerInterface = new DevicePowerInterface(resource, pp); 33 33 else if (resource.getType().getName().equals(StandardResourceType.Heatsink.getName())) 34 powerInterface = new PhysicalResourcePowerInterface(resource, pp);34 powerInterface = new DevicePowerInterface(resource, pp); 35 35 else 36 36 powerInterface = new schedframe.resources.computing.profiles.energy.power.ui.ComputingResourcePowerInterface((ComputingResource)resource, pp);
Note: See TracChangeset
for help on using the changeset viewer.