package schedframe.resources.computing; import java.util.List; import schedframe.resources.StandardResourceType; import schedframe.resources.computing.description.ComputingResourceDescription; import schedframe.resources.computing.profiles.energy.EnergyExtension; import schedframe.resources.computing.profiles.energy.power.PowerInterfaceFactory; import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; public class Rack extends ComputingResource{ public Rack (ComputingResourceDescription resDesc) { super(resDesc); //PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile()); //accept(new EnergyExtension(pi, resDesc.getPowerProfile())); } @SuppressWarnings("unchecked") public List getComputingNodes(){ return (List) getDescendantsByType(StandardResourceType.ComputingNode); } @SuppressWarnings("unchecked") public List getProcessors(){ return (List) getDescendantsByType(StandardResourceType.Processor); } /*private void accept(EnergyExtension e){ extensionList.add(e); e.setResource(this); }*/ }