Changeset 1317 for DCWoRMS/branches
- Timestamp:
- 03/31/14 16:01:31 (11 years ago)
- 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 6 6 import schedframe.resources.computing.profiles.energy.thermal.ui.ThermalInterface; 7 7 import schedframe.resources.devices.PhysicalResource; 8 import schedframe.resources.devices. PhysicalResourceThermalInterface;8 import schedframe.resources.devices.DeviceThermalInterface; 9 9 10 10 public class ThermalInterfaceFactory { … … 14 14 ThermalInterface thermalInterface; 15 15 if (resource.getType().getName().equals(StandardResourceType.CRAH.getName())) 16 thermalInterface = new PhysicalResourceThermalInterface(resource, tp);16 thermalInterface = new DeviceThermalInterface(resource, tp); 17 17 else if (resource.getType().getName().equals(StandardResourceType.Fan.getName())) 18 thermalInterface = new PhysicalResourceThermalInterface(resource, tp);18 thermalInterface = new DeviceThermalInterface(resource, tp); 19 19 else if(resource.getType().getName().equals(StandardResourceType.Inlet.getName())) 20 thermalInterface = new PhysicalResourceThermalInterface(resource, tp);20 thermalInterface = new DeviceThermalInterface(resource, tp); 21 21 else if(resource.getType().getName().equals(StandardResourceType.Outlet.getName())) 22 thermalInterface = new PhysicalResourceThermalInterface(resource, tp);22 thermalInterface = new DeviceThermalInterface(resource, tp); 23 23 else 24 24 thermalInterface = new ComputingResourceThermalInterface((ComputingResource)resource, tp); -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/DeviceAirThroughputInterface.java
r1207 r1317 16 16 import schedframe.resources.computing.profiles.energy.airthroughput.ui.AirThroughputInterface; 17 17 18 public class PhysicalResourceAirThroughputInterface implements AirThroughputInterface{18 public class DeviceAirThroughputInterface implements AirThroughputInterface{ 19 19 20 20 protected AirThroughputStateName currentAirThroughputState; … … 22 22 protected PhysicalResource resource; 23 23 24 public PhysicalResourceAirThroughputInterface(PhysicalResource resource, AirThroughputProfile airThroughputProfile){24 public DeviceAirThroughputInterface(PhysicalResource resource, AirThroughputProfile airThroughputProfile){ 25 25 this.resource = resource; 26 26 this.airThroughputProfile = airThroughputProfile; -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/DeviceThermalInterface.java
r1207 r1317 10 10 import schedframe.resources.computing.profiles.energy.thermal.ui.ThermalInterface; 11 11 12 public class PhysicalResourceThermalInterface implements ThermalInterface{12 public class DeviceThermalInterface implements ThermalInterface{ 13 13 14 14 private static int START_TEMP = 0; … … 16 16 protected ThermalProfile thermalProfile; 17 17 18 public PhysicalResourceThermalInterface(PhysicalResource resource, ThermalProfile thermalProfile) {18 public DeviceThermalInterface(PhysicalResource resource, ThermalProfile thermalProfile) { 19 19 super(); 20 20 this.resource = resource; -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/coolemall/FanAirThroughputInterface.java
r1207 r1317 4 4 import schedframe.resources.computing.profiles.energy.airthroughput.UserAirThroughputStateName; 5 5 import schedframe.resources.devices.PhysicalResource; 6 import schedframe.resources.devices. PhysicalResourceAirThroughputInterface;6 import schedframe.resources.devices.DeviceAirThroughputInterface; 7 7 8 public class FanAirThroughputInterface extends PhysicalResourceAirThroughputInterface {8 public class FanAirThroughputInterface extends DeviceAirThroughputInterface { 9 9 10 10 public FanAirThroughputInterface(PhysicalResource resource, AirThroughputProfile airThroughputProfile) { -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/description/PhysicalResourceDescription.java
r1294 r1317 48 48 } 49 49 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 50 57 protected void initProfiles(Profile profile) { 51 58 if (profile != null) { -
DCWoRMS/branches/coolemall/src/schedframe/scheduling/ResourceHistoryItem.java
r1207 r1317 13 13 protected Map<ResourceUnitName, ResourceUnit> usedResources; 14 14 protected DateTime timeStamp; 15 protected double completionPercentage; 15 16 16 17 /** … … 31 32 return timeStamp; 32 33 } 34 35 public double getCompletionPercentage() { 36 return completionPercentage; 37 } 38 39 public void setCompletionPercentage(double completionPercentage) { 40 this.completionPercentage = completionPercentage; 41 } 33 42 34 43 }
Note: See TracChangeset
for help on using the changeset viewer.