|
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
Default implementation of FeatureList minus the getLabel() method
Field Summary | |
private java.util.Vector |
features
|
Constructor Summary | |
(package private) |
DefaultFeatureListImplementation()
|
Method Summary | |
void |
addFeature(Feature f)
Add the indicated feature to the list. |
java.util.Iterator |
featureIterator()
Get an Iterator over the features. |
int |
numFeatures(Priority p)
Returns the number of features broken out by priority. |
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 |
getLabel |
Field Detail |
private java.util.Vector features
Constructor Detail |
DefaultFeatureListImplementation()
Method Detail |
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 |