Changeset 1207 for DCWoRMS/branches/coolemall/src/schedframe/resources/computing/description/ResourceDescription.java
- Timestamp:
- 11/26/13 11:56:07 (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/resources/computing/description/ResourceDescription.java
r477 r1207 5 5 import java.util.List; 6 6 7 import schedframe.Parameters; 7 8 import schedframe.resources.ResourceType; 8 9 9 10 10 public abstract class AbstractResourceDescription {11 public abstract class ResourceDescription { 11 12 12 13 protected String id; 13 14 protected ResourceType type; 14 protected List<AbstractResourceDescription> children; 15 protected List<ResourceDescription> children; 16 protected Parameters parameters; 15 17 16 public AbstractResourceDescription(ResourceType type){18 public ResourceDescription(ResourceType type){ 17 19 this.type = type; 18 this.children = null;19 20 } 20 21 21 public List< AbstractResourceDescription> getChildren() {22 public List<ResourceDescription> getChildren() { 22 23 return children; 23 24 } 24 25 25 public void setChildren(List< AbstractResourceDescription> children) {26 public void setChildren(List<ResourceDescription> children) { 26 27 this.children = children; 27 28 } 28 29 29 public void addChildren( AbstractResourceDescription child) {30 public void addChildren(ResourceDescription child) { 30 31 //child.setParent(this); 31 32 if(children == null) 32 children = new ArrayList< AbstractResourceDescription> (1);33 children = new ArrayList<ResourceDescription> (1); 33 34 this.children.add(child); 34 35 } … … 40 41 public ResourceType getType() { 41 42 return type; 43 } 44 45 public Parameters getParameters() { 46 return parameters; 42 47 } 43 48
Note: See TracChangeset
for help on using the changeset viewer.