Changeset 1317 for DCWoRMS/branches


Ignore:
Timestamp:
03/31/14 16:01:31 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/schedframe
Files:
1 added
1 deleted
4 edited
2 moved

Legend:

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

    r1292 r1317  
    66import schedframe.resources.computing.profiles.energy.thermal.ui.ThermalInterface; 
    77import schedframe.resources.devices.PhysicalResource; 
    8 import schedframe.resources.devices.PhysicalResourceThermalInterface; 
     8import schedframe.resources.devices.DeviceThermalInterface; 
    99 
    1010public class ThermalInterfaceFactory { 
     
    1414                ThermalInterface thermalInterface; 
    1515                if (resource.getType().getName().equals(StandardResourceType.CRAH.getName())) 
    16                         thermalInterface = new PhysicalResourceThermalInterface(resource, tp); 
     16                        thermalInterface = new DeviceThermalInterface(resource, tp); 
    1717                else if (resource.getType().getName().equals(StandardResourceType.Fan.getName())) 
    18                         thermalInterface = new PhysicalResourceThermalInterface(resource, tp); 
     18                        thermalInterface = new DeviceThermalInterface(resource, tp); 
    1919                else if(resource.getType().getName().equals(StandardResourceType.Inlet.getName())) 
    20                         thermalInterface = new PhysicalResourceThermalInterface(resource, tp); 
     20                        thermalInterface = new DeviceThermalInterface(resource, tp); 
    2121                else if(resource.getType().getName().equals(StandardResourceType.Outlet.getName())) 
    22                         thermalInterface = new PhysicalResourceThermalInterface(resource, tp); 
     22                        thermalInterface = new DeviceThermalInterface(resource, tp); 
    2323                else  
    2424                        thermalInterface = new ComputingResourceThermalInterface((ComputingResource)resource, tp); 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/devices/DeviceAirThroughputInterface.java

    r1207 r1317  
    1616import schedframe.resources.computing.profiles.energy.airthroughput.ui.AirThroughputInterface; 
    1717 
    18 public class PhysicalResourceAirThroughputInterface implements AirThroughputInterface{ 
     18public class DeviceAirThroughputInterface implements AirThroughputInterface{ 
    1919 
    2020        protected AirThroughputStateName currentAirThroughputState; 
     
    2222        protected PhysicalResource resource; 
    2323         
    24         public PhysicalResourceAirThroughputInterface(PhysicalResource resource, AirThroughputProfile airThroughputProfile){ 
     24        public DeviceAirThroughputInterface(PhysicalResource resource, AirThroughputProfile airThroughputProfile){ 
    2525                this.resource = resource; 
    2626                this.airThroughputProfile = airThroughputProfile; 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/devices/DeviceThermalInterface.java

    r1207 r1317  
    1010import schedframe.resources.computing.profiles.energy.thermal.ui.ThermalInterface; 
    1111 
    12 public class PhysicalResourceThermalInterface implements ThermalInterface{ 
     12public class DeviceThermalInterface implements ThermalInterface{ 
    1313 
    1414        private static int START_TEMP = 0; 
     
    1616        protected ThermalProfile thermalProfile; 
    1717 
    18         public PhysicalResourceThermalInterface(PhysicalResource resource, ThermalProfile thermalProfile) { 
     18        public DeviceThermalInterface(PhysicalResource resource, ThermalProfile thermalProfile) { 
    1919                super(); 
    2020                this.resource = resource; 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/devices/coolemall/FanAirThroughputInterface.java

    r1207 r1317  
    44import schedframe.resources.computing.profiles.energy.airthroughput.UserAirThroughputStateName; 
    55import schedframe.resources.devices.PhysicalResource; 
    6 import schedframe.resources.devices.PhysicalResourceAirThroughputInterface; 
     6import schedframe.resources.devices.DeviceAirThroughputInterface; 
    77 
    8 public class FanAirThroughputInterface extends PhysicalResourceAirThroughputInterface { 
     8public class FanAirThroughputInterface extends DeviceAirThroughputInterface { 
    99 
    1010        public FanAirThroughputInterface(PhysicalResource resource, AirThroughputProfile airThroughputProfile) { 
  • DCWoRMS/branches/coolemall/src/schedframe/resources/devices/description/PhysicalResourceDescription.java

    r1294 r1317  
    4848        } 
    4949 
     50        public void addChildren(PhysicalResourceDescription child) { 
     51                super.addChildren(child); 
     52                if(child.getLoadProfile().getLoadCalendar().getLoadDistribution().size() == 0){ 
     53                        child.getLoadProfile().getLoadCalendar().getLoadDistribution().addAll(this.getLoadProfile().getLoadCalendar().getLoadDistribution()); 
     54                } 
     55        } 
     56         
    5057        protected void initProfiles(Profile profile) { 
    5158                if (profile != null) { 
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/ResourceHistoryItem.java

    r1207 r1317  
    1313        protected Map<ResourceUnitName, ResourceUnit> usedResources; 
    1414        protected DateTime timeStamp; 
     15        protected double completionPercentage; 
    1516         
    1617        /** 
     
    3132                return timeStamp; 
    3233        } 
     34 
     35        public double getCompletionPercentage() { 
     36                return completionPercentage; 
     37        } 
     38 
     39        public void setCompletionPercentage(double completionPercentage) { 
     40                this.completionPercentage = completionPercentage; 
     41        } 
    3342         
    3443} 
Note: See TracChangeset for help on using the changeset viewer.