|
CSC407 OOP Example | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--plan.report.Report
Utility class for printing text-oriented reports to standard output.
| Field Summary | |
private static java.lang.String |
HEAD
|
private static java.lang.String |
LINE
|
private static java.lang.String |
PICT
|
private static int |
WIDTH_CHAMP
|
private static int |
WIDTH_CUST
|
private static int |
WIDTH_DESC
|
private static int |
WIDTH_ID
|
private static int |
WIDTH_PRIO
|
private static int |
WIDTH_SIZE
|
| Constructor Summary | |
private |
Report()
Entirely static class. |
| Method Summary | |
(package private) static java.lang.String |
customerDesirability(Feature f)
Return a string that expresses the desirability by customers of the specified feature. |
(package private) static void |
writeFeature(Feature f)
Write details for the given feature. |
static void |
writeFeatures(java.lang.String title,
FeatureList fl)
Write out details for all the features in the specified FeatureList. |
(package private) static void |
writeField(java.lang.String s,
int width)
Write the given string in a filed of the given width. |
static void |
writeHeader(java.lang.String head)
Write the report header. |
static void |
writeSummaryTable(FeatureList[] fl)
Write a table summarizing the number of features and their sizings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String LINE
private static final java.lang.String PICT
private static final java.lang.String HEAD
private static final int WIDTH_ID
private static final int WIDTH_DESC
private static final int WIDTH_PRIO
private static final int WIDTH_SIZE
private static final int WIDTH_CHAMP
private static final int WIDTH_CUST
| Constructor Detail |
private Report()
| Method Detail |
public static void writeHeader(java.lang.String head)
head - the header message to be printedpublic static void writeSummaryTable(FeatureList[] fl)
fl - the variouos FeatureLists comprising the columns
public static void writeFeatures(java.lang.String title,
FeatureList fl)
title - a title for this section of the reportfl - the list of features to printstatic void writeFeature(Feature f)
f - the feature to print
static void writeField(java.lang.String s,
int width)
s - the string to print in the fieldwidth - the field widthstatic java.lang.String customerDesirability(Feature f)
f - the features whose customer desirability is to be returned
|
CSC407 OOP Example | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||