- Timestamp:
- 11/26/13 11:56:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/ComputingNode.java
r756 r1207 3 3 import java.util.List; 4 4 import java.util.Properties; 5 6 5 7 6 import schedframe.resources.ResourceStatus; … … 10 9 import schedframe.resources.computing.extensions.ExtensionType; 11 10 import schedframe.resources.computing.profiles.energy.EnergyExtension; 12 import schedframe.resources.computing.profiles.energy.airthroughput.AirThroughputInterfaceFactory;13 import schedframe.resources.computing.profiles.energy.airthroughput.ui.AirThroughputInterface;14 import schedframe.resources.computing.profiles.energy.power.PowerInterfaceFactory;15 11 import schedframe.resources.computing.profiles.energy.power.ui.ComputingNodePowerInterface; 16 import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface;17 12 import schedframe.resources.computing.properties.ComputingNodePropertiesBuilder; 18 13 import schedframe.resources.computing.properties.PropertiesDirector; … … 32 27 //accept(new EnergyExtension(pi, resDesc.getPowerProfile())); 33 28 //accept(new EnergyExtension(pi, resDesc.getPowerProfile(), ai, resDesc.getAirThroughputProfile())); 34 } 35 36 /*public ComputingNode (String resourceName, ResourceCharacteristics resourceCharacteristic, Category cat, PowerInterface powerInterface) { 37 super(resourceName, ResourceType.COMPUTING_NODE, resourceCharacteristic); 38 category = cat; 39 accept(powerInterface); 40 // extensionList.add(new EnergyExtension(this, "example.energy.ComputingNodeEnergyEstimationPlugin")); 41 }*/ 42 29 } 43 30 44 31 public ComputingNodePowerInterface getPowerInterface(){ … … 86 73 87 74 public Memory getMemory() throws NoSuchFieldException { 88 return (Memory) resourceCharacteristic.getResourceUnit(StandardResourceUnitName.MEMORY);75 return (Memory) ((ComputingResourceCharacteristics)resourceCharacteristic).getResourceUnit(StandardResourceUnitName.MEMORY); 89 76 } 90 77 … … 95 82 96 83 private Cost getCost() throws NoSuchFieldException { 97 return (Cost) resourceCharacteristic.getResourceUnit(StandardResourceUnitName.COST);84 return (Cost) ((ComputingResourceCharacteristics)resourceCharacteristic).getResourceUnit(StandardResourceUnitName.COST); 98 85 } 99 86
Note: See TracChangeset
for help on using the changeset viewer.