package schedframe.resources; import java.util.List; import schedframe.resources.units.Processor; public class ComputingNode { protected String id; protected List processors; protected PowerInterface powerProfile; public ComputingNode(String id){ this.id = id; } public void setProcessors(List list){ this.processors = list; } public List getProcessors(){ return this.processors; } public PowerInterface getPowerProfile(){ return this.powerProfile; } public String getId(){ return this.id; } public void accept(PowerInterface v){ v.visit(this); this.powerProfile = v; } }