CSC407/ECE450 Assignment 1b Sample Solution

plan.dom
Interface FeatureList

All Known Implementing Classes:
DefaultFeatureListImplementation, Software, Release

public interface FeatureList

A list of features


Method Summary
 java.util.Iterator featureIterator()
          Get an Iterator over the features.
 java.lang.String getLabel()
          Returns a descriptive label asosciated with this feature list (Used for reporting purposes).
 int numFeatures(Priority p)
          Returns the number of features broken out by priority.
 double totalSizingOfFeatures(Priority p)
          Returns the total sizing of features broken out by priority.
 

Method Detail

featureIterator

public java.util.Iterator featureIterator()
Get an Iterator over the features.
Returns:
the requested Iterator

numFeatures

public int numFeatures(Priority p)
Returns the number of features broken out by priority.
Parameters:
p - if null, all features, else only features of the given priority
Returns:
the count of the specified features

totalSizingOfFeatures

public double totalSizingOfFeatures(Priority p)
Returns the total sizing of features broken out by priority.
Parameters:
p - if null, all features, else only features of the given priority
Returns:
the total of the sizings of the specified features

getLabel

public java.lang.String getLabel()
Returns a descriptive label asosciated with this feature list (Used for reporting purposes).
Returns:
the descriptive (short) label

CSC407/ECE450 Assignment 1b Sample Solution