|
CSC407 OOP Example | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--plan.dom.DefaultFeatureListImplementation | +--plan.dom.Release
Represents a possible release of a software product.
Field Summary | |
private java.lang.String |
designator
|
Constructor Summary | |
Release()
|
Method Summary | |
void |
addFeature(Feature f)
Add the indicated feature to the list. |
java.util.Iterator |
featureIterator()
Get an Iterator over the features. |
java.lang.String |
getDesignator()
|
java.lang.String |
getLabel()
The FeatureList label is the same as the release designator. |
int |
numFeatures(Priority p)
Returns the number of features broken out by priority. |
void |
setDesignator(java.lang.String designator)
|
protected void |
sortFeatures(java.util.Comparator compare)
Sort features according to the order given by the Feature Comparator. |
protected void |
subtract(DefaultFeatureListImplementation other)
Remove all features in the other list from this one.] |
void |
subtract(Release other)
Removes features from this release that appear in the other release. |
double |
totalSizingOfFeatures(Priority p)
Returns the total sizing of features broken out by priority. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface plan.dom.FeatureList |
featureIterator, numFeatures, totalSizingOfFeatures |
Field Detail |
private java.lang.String designator
Constructor Detail |
public Release()
Method Detail |
public void subtract(Release other)
other
- the release containing features to be removedpublic java.lang.String getDesignator()
public void setDesignator(java.lang.String designator)
public java.lang.String getLabel()
getLabel
in interface FeatureList
public java.util.Iterator featureIterator()
featureIterator
in interface FeatureList
public void addFeature(Feature f)
f
- the feature to addprotected void sortFeatures(java.util.Comparator compare)
protected void subtract(DefaultFeatureListImplementation other)
other
- the feature list to substract from this onepublic int numFeatures(Priority p)
numFeatures
in interface FeatureList
p
- if null, all features, else only features of the given priority
public double totalSizingOfFeatures(Priority p)
totalSizingOfFeatures
in interface FeatureList
p
- if null, all features, else only features of the given priority
|
CSC407 OOP Example | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |