Ignore:
Timestamp:
12/18/14 15:49:58 (10 years ago)
Author:
wojtekp
Message:
 
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  
    33import schedframe.resources.StandardResourceType; 
    44import schedframe.resources.computing.ComputingResource; 
     5import schedframe.resources.computing.profiles.energy.power.ui.ComputingResourcePowerInterface; 
    56import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; 
     7import schedframe.resources.devices.Device; 
    68import schedframe.resources.devices.DevicePowerInterface; 
    79import schedframe.resources.devices.PhysicalResource; 
     
    3335                else if (resource.getType().getName().equals(StandardResourceType.Heatsink.getName())) 
    3436                        powerInterface = new DevicePowerInterface(resource, pp); 
     37                else if (resource instanceof Device) 
     38                        powerInterface = new DevicePowerInterface(resource, pp); 
    3539                else  
    36                         powerInterface = new schedframe.resources.computing.profiles.energy.power.ui.ComputingResourcePowerInterface((ComputingResource)resource, pp); 
     40                        powerInterface = new ComputingResourcePowerInterface((ComputingResource)resource, pp); 
    3741 
    3842                /*switch(resource.getType()){ 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/thermal/ThermalInterfaceFactory.java

    r1317 r1457  
    55import schedframe.resources.computing.profiles.energy.thermal.ui.ComputingResourceThermalInterface; 
    66import schedframe.resources.computing.profiles.energy.thermal.ui.ThermalInterface; 
     7import schedframe.resources.devices.Device; 
     8import schedframe.resources.devices.DeviceThermalInterface; 
    79import schedframe.resources.devices.PhysicalResource; 
    8 import schedframe.resources.devices.DeviceThermalInterface; 
    910 
    1011public class ThermalInterfaceFactory { 
     
    2122                else if(resource.getType().getName().equals(StandardResourceType.Outlet.getName())) 
    2223                        thermalInterface = new DeviceThermalInterface(resource, tp); 
     24                else if(resource instanceof Device) 
     25                        thermalInterface = new DeviceThermalInterface(resource, tp); 
    2326                else  
    2427                        thermalInterface = new ComputingResourceThermalInterface((ComputingResource)resource, tp); 
Note: See TracChangeset for help on using the changeset viewer.