source: DCWoRMS/trunk/src/schedframe/resources/computing/DataCenter.java @ 756

Revision 756, 1.1 KB checked in by wojtekp, 12 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.resources.computing;
2
3import java.util.List;
4
5import schedframe.resources.StandardResourceType;
6import schedframe.resources.computing.description.ComputingResourceDescription;
7import schedframe.resources.computing.profiles.energy.EnergyExtension;
8import schedframe.resources.computing.profiles.energy.power.PowerInterfaceFactory;
9import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface;
10
11public class DataCenter extends ComputingResource{
12
13        public DataCenter(ComputingResourceDescription resDesc) {
14                super(resDesc);
15                //extensionList.add(new EnergyExtension(this, resDesc.getPowerInterface(), resDesc.getEnergyEstimationPlugin()));
16                //PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile());
17                //accept(new EnergyExtension(pi, resDesc.getPowerProfile()));
18        }
19       
20        @SuppressWarnings("unchecked")
21        public List<ComputingNode> getComputingNodes(){
22                return (List<ComputingNode>) getDescendantsByType(StandardResourceType.ComputingNode);
23        }
24       
25        /*private void accept(EnergyExtension e){
26                extensionList.add(e);
27                e.setResource(this);
28        }*/
29}
Note: See TracBrowser for help on using the repository browser.