Package ca.spatial.reportwriter
Class PeriodExpressionReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.reportwriter.GeneralReport
ca.spatial.reportwriter.PeriodExpressionReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
- Direct Known Subclasses:
PeriodPatternReport
This class produces a report that shows periods along the
rows and specified values along the columns,
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spatial.reportwriter.Report
Report.GetNodesAt
-
Field Summary
Fields inherited from class ca.spatial.reportwriter.GeneralReport
TYPES
Fields inherited from class ca.spatial.reportwriter.Report
AREA, LINE, PIE, SIDE_BY_SIDE_BARS, STACKED_BARS
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodExpressionReport(String filename, String title, String units, AttributeStore sourceDataTable, String reselectExpression, int[] periods, boolean annualize, String htmlText, boolean percent, String[] expressions, String[] labels)
Create a PeriodExpression report. -
Method Summary
Modifier and TypeMethodDescriptionca.spatial.reportwriter.Report.DataCache
doReport(String filename, PrintStream out, Map<String,Object> param, ca.spatial.reportwriter.Report.DataCache cache)
The method used by the report writer to format the requested report.String[]
String[]
void
setExpressions(String[] exprs, String[] labels)
void
setStore(AttributeStore as)
Set the table of data that is used in this report.Methods inherited from class ca.spatial.reportwriter.GeneralReport
getAnnualize, getDoColumnTotals, getDoRowTotals, getDoSubTotals, getHTMLText, getMaxFractionDigits, getNoChart, getNoTable, getPercent, getPeriods, getReselectExpression, getStore, getTypes, getUnits, setAnnualize, setDoColumnTotals, setDoRowTotals, setDoSubTotals, setHTMLText, setMaxFractionDigits, setNoChart, setNoTable, setPercent, setPeriods, setReselectExpression, setUnits
Methods inherited from class ca.spatial.reportwriter.Report
addDefaultParam, chartImg, compareTo, csvLink, doesAnyTypes, doesCSV, doesGIF, doesHTML, doesPNG, doesType, encodeFileURL, encodeURL, endMainContent, escapeRegexChars, footer, formatColumnHeadings, formatColumnHeadings, getAdditionalFiles, getAttributeStore, getBasepart, getBasepart, getDefaultFilename, getDisplayFormat, getExtension, getExtension, getFilename, getFolderpart, getFolderpart, getLength, getNamepart, getNamepart, getPathToRoot, getReportFor, getTitle, header, htmlText, indexLink, interpolateParams, isDhandler, isIndexed, isSelected, parentIndex, patternToRegex, setAttributeStore, setDefaultParams, setDisplayFormat, setIndexed, setSelected, setTitle, toString, uniqueLabels
-
Constructor Details
-
PeriodExpressionReport
public PeriodExpressionReport(String filename, String title, String units, AttributeStore sourceDataTable, String reselectExpression, int[] periods, boolean annualize, String htmlText, boolean percent, String[] expressions, String[] labels)Create a PeriodExpression report.- Parameters:
filename
- The name that the report will be saved to.title
- The title of the report.units
- The unit of measure of the values in the report.sourceDataTable
- The source data table.reselectExpression
- A boolean expressin used to limit the number of source data records used to create this report.periods
- An array of periods of interest for this report.annualize
- A flag to indicate if the values should be annualized. If true then values from period 0 (prior to the start of the simulation) are not shown. All other values are divided by the width of the period.htmlText
- Additional text that can be used to document the report.percent
- A boolean used to indicate if the values should be shown in percentage format.expressions
- A list of expressions that will be summarized in the columns of the report.labels
- A list of labels to use as column headings in the report.
-
-
Method Details
-
setExpressions
-
getExpressions
-
getLabels
-
setStore
Description copied from class:GeneralReport
Set the table of data that is used in this report.- Overrides:
setStore
in classGeneralReport
-
doReport
public ca.spatial.reportwriter.Report.DataCache doReport(String filename, PrintStream out, Map<String,Object> param, ca.spatial.reportwriter.Report.DataCache cache)Description copied from class:Report
The method used by the report writer to format the requested report. This method is implemented in every custom report. Application programs generally do not need to call this method, but instead use the report writer methods to obtain reports.
-