- Timestamp:
- 12/18/14 15:49:58 (10 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power/PowerInterfaceFactory.java
r1318 r1457 3 3 import schedframe.resources.StandardResourceType; 4 4 import schedframe.resources.computing.ComputingResource; 5 import schedframe.resources.computing.profiles.energy.power.ui.ComputingResourcePowerInterface; 5 6 import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; 7 import schedframe.resources.devices.Device; 6 8 import schedframe.resources.devices.DevicePowerInterface; 7 9 import schedframe.resources.devices.PhysicalResource; … … 33 35 else if (resource.getType().getName().equals(StandardResourceType.Heatsink.getName())) 34 36 powerInterface = new DevicePowerInterface(resource, pp); 37 else if (resource instanceof Device) 38 powerInterface = new DevicePowerInterface(resource, pp); 35 39 else 36 powerInterface = new schedframe.resources.computing.profiles.energy.power.ui.ComputingResourcePowerInterface((ComputingResource)resource, pp);40 powerInterface = new ComputingResourcePowerInterface((ComputingResource)resource, pp); 37 41 38 42 /*switch(resource.getType()){ -
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/thermal/ThermalInterfaceFactory.java
r1317 r1457 5 5 import schedframe.resources.computing.profiles.energy.thermal.ui.ComputingResourceThermalInterface; 6 6 import schedframe.resources.computing.profiles.energy.thermal.ui.ThermalInterface; 7 import schedframe.resources.devices.Device; 8 import schedframe.resources.devices.DeviceThermalInterface; 7 9 import schedframe.resources.devices.PhysicalResource; 8 import schedframe.resources.devices.DeviceThermalInterface;9 10 10 11 public class ThermalInterfaceFactory { … … 21 22 else if(resource.getType().getName().equals(StandardResourceType.Outlet.getName())) 22 23 thermalInterface = new DeviceThermalInterface(resource, tp); 24 else if(resource instanceof Device) 25 thermalInterface = new DeviceThermalInterface(resource, tp); 23 26 else 24 27 thermalInterface = new ComputingResourceThermalInterface((ComputingResource)resource, tp);
Note: See TracChangeset
for help on using the changeset viewer.