|
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.Software
Field Summary | |
private java.lang.String |
name
|
Constructor Summary | |
(package private) |
Software(java.lang.String name)
|
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 |
getLabel()
The FeatureList label is the name of the Software product. |
java.lang.String |
getName()
|
int |
numFeatures(Priority p)
Returns the number of features broken out by priority. |
Release |
planRelease(double capacity)
Suggests a release of this software product. |
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.] |
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 name
Constructor Detail |
Software(java.lang.String name)
Method Detail |
public java.lang.String getName()
public Release planRelease(double capacity)
capacity
- the number of person-days of coding effort available to work on the release
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 |