Package ca.spatial.reportwriter
Class TargetLimitReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.reportwriter.RangeIndicatorChartReport
ca.spatial.reportwriter.TargetLimitReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
This class creates a chart that show account values along with the
minimum and maximum target values. All values are automatically
extracted from the target table.
reportWriter.addReport(new TargetLimitReport("volume/SPF", "Annual SPF Volume harvested by FMU", control.getTargetTable(), "m3/yr", "FMU", "Annual Harvest", "product.Yield.FmuToAnywhere.SPF.*", true, ""));

Note that this class is new and is subject to change.
- See Also:
RangeIndicatorChartReport
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spatial.reportwriter.Report
Report.GetNodesAt
-
Field Summary
FieldsFields inherited from class ca.spatial.reportwriter.Report
AREA, LINE, PIE, SIDE_BY_SIDE_BARS, STACKED_BARS
-
Constructor Summary
ConstructorsConstructorDescriptionTargetLimitReport(String filename, String title, AttributeStore as, String units, String categoryCaption, String valueCaption, String[] targets, String[] aliases, boolean annualize, String html)
This constructor is a convenience to create chart from values in the TargetTable.TargetLimitReport(String filename, String title, AttributeStore as, String units, String categoryCaption, String valueCaption, String targetPattern, boolean annualize, String html)
This constructor is a convenience to create chart from values in the TargetTable. -
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[]
getTypes()
An accessor function to retrieve the list of report types supported by this report.void
setPattern(String pattern)
Methods inherited from class ca.spatial.reportwriter.RangeIndicatorChartReport
getCategories, getCategoryColumn, getCategoryNames, getExpression, getHTMLText, getLegendCaption, getNumPeriods, getThreshData, getUnits, getXCaption, isAnnualize, setAnnualize, setCategories, setCategoryColumn, setCategoryNames, setExpression, setHTMLText, setLegendCaption, setNumPeriods, setUnits, setXCaption
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
-
Field Details
-
TYPES
-
-
Constructor Details
-
TargetLimitReport
public TargetLimitReport(String filename, String title, AttributeStore as, String units, String categoryCaption, String valueCaption, String targetPattern, boolean annualize, String html)This constructor is a convenience to create chart from values in the TargetTable. The upper and lower ranges (max and min targets) are automatically plotted.- Parameters:
filename
- The name to save the filetitle
- The report titleas
- A reference to the target table.units
- Units to be displayed on the y axiscategoryCaption
- the caption on the x axis describing the categoriesvalueCaption
- The legend caption for the simulation datatargetPattern
- The pattern to use to select columns from the target table.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.html
- Additional HTML text to be displayed in the report.
-
TargetLimitReport
public TargetLimitReport(String filename, String title, AttributeStore as, String units, String categoryCaption, String valueCaption, String[] targets, String[] aliases, boolean annualize, String html)This constructor is a convenience to create chart from values in the TargetTable. The upper and lower ranges (max and min targets) are automatically plotted.- Parameters:
filename
- The name to save the filetitle
- The report titleas
- A reference to the target table.units
- Units to be displayed on the y axiscategoryCaption
- the caption on the x axis describing the categoriesvalueCaption
- The legend caption for the simulation datatargets
- The list of targets from the target table.aliases
- A list of names to use in place of the targets.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.html
- Additional HTML text to be displayed in the report.
-
-
Method Details
-
setPattern
-
getPattern
-
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.- Overrides:
doReport
in classRangeIndicatorChartReport
- Parameters:
filename
- The full name of the report to be printed, including the extension of the sub-report (if any).out
- The output stream to print output on to.param
- A HashMap containing parameters that modify the report (for example the scenario name).
-
getTypes
Description copied from class:Report
An accessor function to retrieve the list of report types supported by this report. See the documentation for the TYPES variable for the list of sub-types.- Overrides:
getTypes
in classRangeIndicatorChartReport
-