Revision 785,
787 bytes
checked in by wojtekp, 12 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[785] | 1 | package schedframe.resources.computing.recs; |
---|
| 2 | |
---|
| 3 | import java.util.List; |
---|
| 4 | |
---|
| 5 | import schedframe.resources.StandardResourceType; |
---|
| 6 | import schedframe.resources.UserResourceType; |
---|
| 7 | import schedframe.resources.computing.ComputingResource; |
---|
| 8 | import schedframe.resources.computing.Processor; |
---|
| 9 | import schedframe.resources.computing.description.ComputingResourceDescription; |
---|
| 10 | |
---|
| 11 | public class NodeGroup extends ComputingResource{ |
---|
| 12 | |
---|
| 13 | public NodeGroup(ComputingResourceDescription resDesc) { |
---|
| 14 | super(resDesc); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | @SuppressWarnings("unchecked") |
---|
| 18 | public List<Node> getNodes(){ |
---|
| 19 | return (List<Node>) getDescendantsByType(new UserResourceType("Node")); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | @SuppressWarnings("unchecked") |
---|
| 23 | public List<Processor> getProcessors(){ |
---|
| 24 | return (List<Processor>) getDescendantsByType(StandardResourceType.Processor); |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.