CSC407/ECE450 Assignment 1b Sample Solution
A C D E F G H I J L M N P R S T W

A

addCustomerRequest(CustomerRequest) - Method in class plan.dom.Feature
 
addFeature(Feature) - Method in class plan.dom.DefaultFeatureListImplementation
Add the indicated feature to the list.

C

champion - Variable in class plan.dom.Feature
 
Company - class plan.dom.Company.
A software company that builds products.
Company() - Constructor for class plan.dom.Company
 
compare(Object, Object) - Method in class plan.dom.ReverseFeaturePlanningOrder
Compares two features to see which is least desirable to be in-plan.
compareTo(Object) - Method in class plan.dom.Priority
high > med > low
customer - Variable in class plan.dom.CustomerRequest
 
Customer - class plan.dom.Customer.
Represents a customer of the software company.
Customer(String) - Constructor for class plan.dom.Customer
Create a new customer with the given name.
customerDesirability() - Method in class plan.dom.Feature
Measures cumulative customer desirability for this feature.
customerDesirability(Feature) - Static method in class plan.report.Report
Return a string that expresses the desirability by customers of the specified feature.
CustomerRequest - class plan.dom.CustomerRequest.
The request of a customer for a feature.
CustomerRequest(Feature, Customer, int) - Constructor for class plan.dom.CustomerRequest
Create a customer request from customer "c" for feature "f" with desirability "d".
customerRequestIterator() - Method in class plan.dom.Feature
 
customerRequests - Variable in class plan.dom.Feature
 

D

DefaultFeatureListImplementation - class plan.dom.DefaultFeatureListImplementation.
Default implementation of FeatureList minus the getLabel() method
DefaultFeatureListImplementation() - Constructor for class plan.dom.DefaultFeatureListImplementation
 
designator - Variable in class plan.dom.Release
 
desirability - Variable in class plan.dom.CustomerRequest
 
dieUsage(String) - Static method in class plan.Plan
Print an error message and a usage message to stderr, and die with exit code -1

E

Employee - class plan.dom.Employee.
An employee of the company.
Employee(String) - Constructor for class plan.dom.Employee
Creates a new employee with the indicated name.
equals(Object) - Method in class plan.dom.Priority
tests for equality of this priority with the other
equals(Object, Object) - Method in class plan.dom.ReverseFeaturePlanningOrder
Compares two features for equal in-plan desirability.

F

Feature - class plan.dom.Feature.
A feature request recorded against a given software product.
Feature(int, String, double, Priority) - Constructor for class plan.dom.Feature
Create a new feature with the indicated attributes.
featureIterator() - Method in interface plan.dom.FeatureList
Get an Iterator over the features.
featureIterator() - Method in class plan.dom.DefaultFeatureListImplementation
Get an Iterator over the features.
FeatureList - interface plan.dom.FeatureList.
A list of features
features - Variable in class plan.dom.DefaultFeatureListImplementation
 
FileInput - interface plan.input.FileInput.
Interface for reading input data from a file

G

get() - Static method in class plan.dom.ReverseFeaturePlanningOrder
Returns the unique instance of this comparator
get(String) - Static method in class plan.dom.Priority
Return the priority object corresponding to the given name.
getChampion() - Method in class plan.dom.Feature
 
getCustomer() - Method in class plan.dom.CustomerRequest
 
getDesignator() - Method in class plan.dom.Release
 
getDesirability() - Method in class plan.dom.CustomerRequest
 
getId() - Method in class plan.dom.Feature
 
getLabel() - Method in interface plan.dom.FeatureList
Returns a descriptive label asosciated with this feature list (Used for reporting purposes).
getLabel() - Method in class plan.dom.Software
The FeatureList label is the name of the Software product.
getLabel() - Method in class plan.dom.Release
The FeatureList label is the same as the release designator.
getLongDescription() - Method in class plan.dom.Feature
 
getName() - Method in class plan.dom.Software
 
getName() - Method in class plan.dom.Customer
 
getName() - Method in class plan.dom.Employee
 
getPriority() - Method in class plan.dom.Feature
 
getShortDescription() - Method in class plan.dom.Feature
 
getSizing() - Method in class plan.dom.Feature
 
getSoftware(String) - Method in class plan.dom.Company
Returns the software product of the given name.

H

HEAD - Static variable in class plan.report.Report
 
high - Static variable in class plan.dom.Priority
 

I

i - Variable in class plan.dom.Priority
 
id - Variable in class plan.dom.Feature
 

J

JUST_MISSED_RATIO - Static variable in class plan.Plan
Features fitting under this ratio of resourcing are considered "just-missed".

L

LINE - Static variable in class plan.report.Report
 
lnkCustomer - Variable in class plan.dom.Company
 
lnkEmployee - Variable in class plan.dom.Company
 
lnkSoftware - Variable in class plan.dom.Company
 
longDescription - Variable in class plan.dom.Feature
 
lookupOrCreateCustomer(String) - Method in class plan.dom.Company
Lookup a Customer and return it or return a new one if not found.
lookupOrCreateEmployee(String) - Method in class plan.dom.Company
Lookup an Employee and return it or return a new one if not found.
lookupOrCreateSoftware(String) - Method in class plan.dom.Company
Lookup a Software product and return it or return a new one if not found.
low - Static variable in class plan.dom.Priority
 

M

main(String[]) - Static method in class plan.Plan
Main program.
med - Static variable in class plan.dom.Priority
 

N

name - Variable in class plan.dom.Software
 
name - Variable in class plan.dom.Customer
 
name - Variable in class plan.dom.Employee
 
numFeatures(Priority) - Method in interface plan.dom.FeatureList
Returns the number of features broken out by priority.
numFeatures(Priority) - Method in class plan.dom.DefaultFeatureListImplementation
Returns the number of features broken out by priority.

P

PICT - Static variable in class plan.report.Report
 
plan - package plan
This is the top-level package for the release planner application.
Plan - class plan.Plan.
This class is used to parse the command line and drive the program.
plan.dom - package plan.dom
This package implements the domain object model which consists of classes representing domain concepts as drawn from the object-oriented analysis.
plan.input - package plan.input
This package deals with reading from data sources and instantiating objects from package dom to represent this data.
plan.report - package plan.report
This package is used to prepare and output reports.
Plan() - Constructor for class plan.Plan
This class is entirely static.
planRelease(double) - Method in class plan.dom.Software
Suggests a release of this software product.
prioObj - Static variable in class plan.dom.Priority
 
priority - Variable in class plan.dom.Feature
 
Priority - class plan.dom.Priority.
Implements a priority type of {high, med, low}
Priority(int) - Constructor for class plan.dom.Priority
Private access so that only the instances defined above can exist.
prioStr - Static variable in class plan.dom.Priority
 

R

randint(int) - Method in class plan.input.TestInput
Returns a random integer in the range 0..max drawn from a uniform distribution.
readFile(String) - Method in interface plan.input.FileInput
Read objects from the indicated file.
readFile(String) - Method in class plan.input.TestInput
Generates test sets of objects depending on the parameter.
readPlanetaria() - Method in class plan.input.TestInput
Generates a pre-determined set of test data.
readRandom() - Method in class plan.input.TestInput
Generates a randomly-determined set of test data.
Release - class plan.dom.Release.
Represents a possible release of a software product.
Release() - Constructor for class plan.dom.Release
 
Report - class plan.report.Report.
Utility class for printing text-oriented reports to standard output.
Report() - Constructor for class plan.report.Report
Entirely static class.
ReverseFeaturePlanningOrder - class plan.dom.ReverseFeaturePlanningOrder.
Compares Features by in-plan desirability.
ReverseFeaturePlanningOrder() - Constructor for class plan.dom.ReverseFeaturePlanningOrder
Ensure only one instance.

S

setChampion(Employee) - Method in class plan.dom.Feature
 
setDesignator(String) - Method in class plan.dom.Release
 
setId(int) - Method in class plan.dom.Feature
 
setLongDescription(String) - Method in class plan.dom.Feature
 
setPriority(Priority) - Method in class plan.dom.Feature
 
setShortDescription(String) - Method in class plan.dom.Feature
 
setSizing(double) - Method in class plan.dom.Feature
 
shortDescription - Variable in class plan.dom.Feature
 
sizing - Variable in class plan.dom.Feature
 
Software - class plan.dom.Software.
 
Software(String) - Constructor for class plan.dom.Software
 
sortFeatures(Comparator) - Method in class plan.dom.DefaultFeatureListImplementation
Sort features according to the order given by the Feature Comparator.
subtract(DefaultFeatureListImplementation) - Method in class plan.dom.DefaultFeatureListImplementation
Remove all features in the other list from this one.]
subtract(Release) - Method in class plan.dom.Release
Removes features from this release that appear in the other release.

T

TestInput - class plan.input.TestInput.
A class used for testing other parts of the application.
TestInput() - Constructor for class plan.input.TestInput
 
theInstance - Static variable in class plan.dom.ReverseFeaturePlanningOrder
 
toString() - Method in class plan.dom.Priority
converts to a standard string representation of priorities
totalSizingOfFeatures(Priority) - Method in interface plan.dom.FeatureList
Returns the total sizing of features broken out by priority.
totalSizingOfFeatures(Priority) - Method in class plan.dom.DefaultFeatureListImplementation
Returns the total sizing of features broken out by priority.

W

WIDTH_CHAMP - Static variable in class plan.report.Report
 
WIDTH_CUST - Static variable in class plan.report.Report
 
WIDTH_DESC - Static variable in class plan.report.Report
 
WIDTH_ID - Static variable in class plan.report.Report
 
WIDTH_PRIO - Static variable in class plan.report.Report
 
WIDTH_SIZE - Static variable in class plan.report.Report
 
writeFeature(Feature) - Static method in class plan.report.Report
Write details for the given feature.
writeFeatures(String, FeatureList) - Static method in class plan.report.Report
Write out details for all the features in the specified FeatureList.
writeField(String, int) - Static method in class plan.report.Report
Write the given string in a filed of the given width.
writeHeader(String) - Static method in class plan.report.Report
Write the report header.
writeSummaryTable(FeatureList[]) - Static method in class plan.report.Report
Write a table summarizing the number of features and their sizings.

A C D E F G H I J L M N P R S T W
CSC407/ECE450 Assignment 1b Sample Solution