- Timestamp:
- 07/30/14 12:25:00 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/schedframe/resources/devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/DeviceAirflowInterface.java
r1415 r1423 1 1 package schedframe.resources.devices; 2 2 3 import java.util.ArrayList;4 3 import java.util.List; 5 4 … … 54 53 55 54 public List<AirflowState> getSupportedAirflowStates(){ 56 List<AirflowState> airflowStates = new ArrayList<AirflowState>(); 57 for(AirflowState airFlowState: airflowProfile.getAirflowStates()){ 58 airflowStates.add(airFlowState); 59 } 60 return airflowStates; 55 return airflowProfile.getAirflowStates(); 61 56 } 62 57 -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/DeviceResourceCharacteristics.java
r1207 r1423 10 10 } 11 11 12 13 12 } -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/PhysicalResource.java
r1415 r1423 2 2 3 3 import schedframe.Initializable; 4 import schedframe.events.Event;5 4 import schedframe.events.EventHandler; 6 5 import schedframe.resources.Resource; … … 10 9 import schedframe.resources.computing.extensions.Extension; 11 10 import schedframe.resources.computing.extensions.ExtensionList; 11 import schedframe.resources.computing.extensions.ExtensionListImpl; 12 12 import schedframe.resources.computing.extensions.ExtensionType; 13 13 import schedframe.resources.computing.profiles.energy.EnergyExtension; … … 99 99 100 100 public ExtensionList getExtensionList() { 101 if(extensionList == null){ 102 return new ExtensionListImpl(0); 103 } 101 104 return extensionList; 102 105 } -
DCWoRMS/branches/coolemall/src/schedframe/resources/devices/description/PhysicalResourceDescription.java
r1415 r1423 91 91 92 92 if(params == null) 93 params = new Parameters( );93 params = new Parameters(2); 94 94 params.put("powerCapLevel", param); 95 95 } … … 102 102 103 103 if(params == null) 104 params = new Parameters( );104 params = new Parameters(2); 105 105 params.put("powerFloorLevel", param); 106 106 } … … 273 273 274 274 if(parameters.length != 0) 275 params = new Parameters( );275 params = new Parameters(2); 276 276 277 277 for(int i = 0; i < parameters.length; i++){
Note: See TracChangeset
for help on using the changeset viewer.