Package ca.spatial.patchworks
Class RouteReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.patchworks.RouteReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
This class defines a report that saves a route to a destination.
The route is saved in a CSV format file, and can be reloaded into
the simulation to restore the direction of flow in the network.
-
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
ConstructorsConstructorDescriptionRouteReport(String filename, String title, ca.spatial.patchworks.Route route)
Construct a RouteReport -
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.getLabel()
Return the destination name of this routeca.spatial.patchworks.Route
getRoute()
Return a reference to the route that this report is based onString[]
getTypes()
An accessor function to retrieve the list of report types supported by this report.void
setRoute(ca.spatial.patchworks.Route route)
Set the route used for this reportMethods 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
An array holding the sub-types of this report. In the case of the RouteReport this array is null. The report only creates a CSV file and there are no sub-types.
-
-
Constructor Details
-
RouteReport
Construct a RouteReport- Parameters:
filename
- the filename to be used for this reporttitle
- the report titleroute
- the route used as the basic of this report
-
-
Method Details
-
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. -
getLabel
Return the destination name of this route -
getRoute
public ca.spatial.patchworks.Route getRoute()Return a reference to the route that this report is based on -
setRoute
public void setRoute(ca.spatial.patchworks.Route route)Set the route used for this report- Parameters:
route
- the route to report on
-
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.
-