source: xssim/src/test/rewolucja/resources/physical/implementation/DataCenter.java @ 104

Revision 104, 758 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package test.rewolucja.resources.physical.implementation;
2
3import test.rewolucja.energy.extension.EnergyExtension;
4import test.rewolucja.energy.profile.PowerInterface;
5import test.rewolucja.resources.description.ExecResourceDescription;
6import test.rewolucja.resources.physical.base.ComputingResource;
7
8public class DataCenter extends ComputingResource{
9
10        public DataCenter(ExecResourceDescription resDesc) {
11                super(resDesc);
12                accept(resDesc.getPowerProfile());
13                //extensionList.add(new EnergyExtension(this, "example.energy.DataCenterEnergyEstimationPlugin"));
14        }
15               
16        public void accept(PowerInterface powIntVis){
17                extensionList.add(new EnergyExtension(this, powIntVis, "example.energy.DataCenterEnergyEstimationPlugin"));
18                powIntVis.visit(this);
19        }
20}
Note: See TracBrowser for help on using the repository browser.