source: DCWoRMS/branches/coolemall/src/schedframe/resources/computing/Rack.java @ 1207

Revision 1207, 908 bytes checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.resources.computing;
2
3import java.util.List;
4
5import schedframe.resources.StandardResourceType;
6import schedframe.resources.computing.description.ComputingResourceDescription;
7
8public class Rack extends ComputingResource{
9       
10
11        public Rack (ComputingResourceDescription resDesc) {
12                super(resDesc);
13                //PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile());
14                //accept(new EnergyExtension(pi, resDesc.getPowerProfile()));   
15        }
16
17        @SuppressWarnings("unchecked")
18        public List<ComputingNode> getComputingNodes(){
19                return (List<ComputingNode>) getDescendantsByType(StandardResourceType.Node);
20        }
21       
22        @SuppressWarnings("unchecked")
23        public List<Processor> getProcessors(){
24                return (List<Processor>) getDescendantsByType(StandardResourceType.Processor);
25        }
26       
27        /*private void accept(EnergyExtension e){
28                extensionList.add(e);
29                e.setResource(this);
30        }*/
31}
Note: See TracBrowser for help on using the repository browser.