package test.rewolucja.resources.physical.implementation; import test.rewolucja.energy.extension.EnergyExtension; import test.rewolucja.energy.profile.PowerInterface; import test.rewolucja.resources.description.ExecResourceDescription; import test.rewolucja.resources.physical.base.ComputingResource; public class DataCenter extends ComputingResource{ public DataCenter(ExecResourceDescription resDesc) { super(resDesc); accept(resDesc.getPowerProfile()); //extensionList.add(new EnergyExtension(this, "example.energy.DataCenterEnergyEstimationPlugin")); } public void accept(PowerInterface powIntVis){ extensionList.add(new EnergyExtension(this, powIntVis, "example.energy.DataCenterEnergyEstimationPlugin")); powIntVis.visit(this); } }