Ignore:
Timestamp:
12/18/14 15:49:58 (10 years ago)
Author:
wojtekp
Message:
 
File:
1 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()){ 
Note: See TracChangeset for help on using the changeset viewer.