package schedframe.resources.computing; import java.util.List; import schedframe.resources.StandardResourceType; import schedframe.resources.computing.description.ComputingResourceDescription; public class DataCenter extends ComputingResource{ public DataCenter(ComputingResourceDescription resDesc) { super(resDesc); //extensionList.add(new EnergyExtension(this, resDesc.getPowerInterface(), resDesc.getEnergyEstimationPlugin())); //PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile()); //accept(new EnergyExtension(pi, resDesc.getPowerProfile())); } @SuppressWarnings("unchecked") public List getNodes(){ return (List) getDescendantsByType(StandardResourceType.Node); } /*private void accept(EnergyExtension e){ extensionList.add(e); e.setResource(this); }*/ }