Ignore:
Timestamp:
03/31/14 16:01:59 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/energy/power/PowerInterfaceFactory.java

    r1247 r1318  
    44import schedframe.resources.computing.ComputingResource; 
    55import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; 
     6import schedframe.resources.devices.DevicePowerInterface; 
    67import schedframe.resources.devices.PhysicalResource; 
    7 import schedframe.resources.devices.PhysicalResourcePowerInterface; 
    88 
    99public class PowerInterfaceFactory { 
     
    2222                        powerInterface = new schedframe.resources.computing.profiles.energy.power.ui.ProcessorPowerInterface((ComputingResource)resource, pp); 
    2323                else if (resource.getType().getName().equals(StandardResourceType.CRAH.getName())) 
    24                         powerInterface = new PhysicalResourcePowerInterface(resource, pp); 
     24                        powerInterface = new DevicePowerInterface(resource, pp); 
    2525                else if (resource.getType().getName().equals(StandardResourceType.Fan.getName())) 
    26                         powerInterface = new PhysicalResourcePowerInterface(resource, pp); 
     26                        powerInterface = new DevicePowerInterface(resource, pp); 
    2727                else if (resource.getType().getName().equals(StandardResourceType.Inlet.getName())) 
    28                         powerInterface = new PhysicalResourcePowerInterface(resource, pp); 
     28                        powerInterface = new DevicePowerInterface(resource, pp); 
    2929                else if (resource.getType().getName().equals(StandardResourceType.Outlet.getName())) 
    30                         powerInterface = new PhysicalResourcePowerInterface(resource, pp); 
     30                        powerInterface = new DevicePowerInterface(resource, pp); 
    3131                else if (resource.getType().getName().equals(StandardResourceType.CoolingDevice.getName())) 
    32                         powerInterface = new PhysicalResourcePowerInterface(resource, pp); 
     32                        powerInterface = new DevicePowerInterface(resource, pp); 
    3333                else if (resource.getType().getName().equals(StandardResourceType.Heatsink.getName())) 
    34                         powerInterface = new PhysicalResourcePowerInterface(resource, pp); 
     34                        powerInterface = new DevicePowerInterface(resource, pp); 
    3535                else  
    3636                        powerInterface = new schedframe.resources.computing.profiles.energy.power.ui.ComputingResourcePowerInterface((ComputingResource)resource, pp); 
Note: See TracChangeset for help on using the changeset viewer.