source: DCWoRMS/branches/coolemall/src/schedframe/resources/computing/DataCenter.java @ 1247

Revision 1247, 847 bytes checked in by wojtekp, 11 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;
7
8public class DataCenter extends ComputingResource{
9
10        public DataCenter(ComputingResourceDescription resDesc) {
11                super(resDesc);
12                //extensionList.add(new EnergyExtension(this, resDesc.getPowerInterface(), resDesc.getEnergyEstimationPlugin()));
13                //PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile());
14                //accept(new EnergyExtension(pi, resDesc.getPowerProfile()));
15        }
16       
17        @SuppressWarnings("unchecked")
18        public List<Node> getNodes(){
19                return (List<Node>) getDescendantsByType(StandardResourceType.Node);
20        }
21       
22        /*private void accept(EnergyExtension e){
23                extensionList.add(e);
24                e.setResource(this);
25        }*/
26}
Note: See TracBrowser for help on using the repository browser.