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

Revision 495, 859 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.resources.computing;
2
3import schedframe.resources.computing.description.ComputingResourceDescription;
4import schedframe.resources.computing.profiles.energy.EnergyExtension;
5import schedframe.resources.computing.profiles.energy.power.PowerInterfaceFactory;
6import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface;
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        public void accept(EnergyExtension e){
18                extensionList.add(e);
19                e.setResource(this);
20        }
21}
Note: See TracBrowser for help on using the repository browser.