|
MATSIM
|

Public Member Functions | |
| CountsReaderMatsimV2 (Counts<?> counts, Class<? extends Identifiable<?>> idClass) | |
| CountsReaderMatsimV2 (String externalInputCRS, String targetCRS, Counts<?> counts, Class<? extends Identifiable<?>> idClass) | |
| void | startTag (String name, Attributes atts, Stack< String > context) |
| void | endTag (String name, String content, Stack< String > context) |
| abstract void | startTag (String name, Attributes atts, Stack< String > context) |
| final void | setValidating (final boolean validateXml) |
| final void | setNamespaceAware (final boolean awareness) |
| final void | setLocalDtdDirectory (final String localDtdDirectory) |
| final void | readFile (final String filename) throws UncheckedIOException |
| final void | readURL (final URL url) throws UncheckedIOException |
| final void | readStream (InputStream stream) throws UncheckedIOException |
| final void | parse (final URL url) throws UncheckedIOException |
| final void | parse (final InputStream stream) throws UncheckedIOException |
| final void | parse (final InputSource input) throws UncheckedIOException |
| final String | getDoctype () |
| final InputSource | resolveEntity (final String publicId, final String systemId) |
| void | characters (final char[] ch, final int start, final int length) throws SAXException |
| final void | startElement (final String uri, final String localName, final String qName, Attributes atts) |
| final void | endElement (final String uri, final String localName, final String qName) throws SAXException |
| final void | error (final SAXParseException ex) throws SAXException |
| final void | fatalError (final SAXParseException ex) throws SAXException |
| final void | warning (final SAXParseException ex) throws SAXException |
Static Public Member Functions | |
| static double | parseDouble (String value) throws NumberFormatException |
Protected Member Functions | |
| void | setDoctype (final String doctype) |
Private Member Functions | |
| void | addValuesToMeasurable (Attributes atts) |
| void | startMeasurable (String tag, Attributes atts) |
| void | startMeasurementLocation (Attributes atts) |
| void | startMultiModeCounts (Attributes atts) |
Private Attributes | |
| final Class<? extends Identifiable<?> > | idClass |
| CoordinateTransformation | coordinateTransformation |
| final Counts<?> | counts |
| final AttributesXmlReaderDelegate | attributesDelegate = new AttributesXmlReaderDelegate() |
| final String | externalInputCRS |
| final String | targetCRS |
| MeasurementLocation<?> | currLocation |
| Measurable | currMeasurable |
| org.matsim.utils.objectattributes.attributable.Attributes | currAttributes = null |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger( CountsReaderMatsimV2.class ) |
| static final String | VALUE = "value" |
A reader for counts-files of MATSim according to counts_v2.xsd.
Definition at line 24 of file CountsReaderMatsimV2.java.
| org.matsim.counts.CountsReaderMatsimV2.CountsReaderMatsimV2 | ( | Counts<?> | counts, |
| Class<? extends Identifiable<?>> | idClass | ||
| ) |
Definition at line 37 of file CountsReaderMatsimV2.java.
References org.matsim.counts.CountsReaderMatsimV2.counts, and org.matsim.counts.CountsReaderMatsimV2.idClass.
| org.matsim.counts.CountsReaderMatsimV2.CountsReaderMatsimV2 | ( | String | externalInputCRS, |
| String | targetCRS, | ||
| Counts<?> | counts, | ||
| Class<? extends Identifiable<?>> | idClass | ||
| ) |
Definition at line 41 of file CountsReaderMatsimV2.java.
References org.matsim.counts.CountsReaderMatsimV2.counts, org.matsim.counts.CountsReaderMatsimV2.externalInputCRS, org.matsim.core.utils.geometry.transformations.TransformationFactory.getCoordinateTransformation(), org.matsim.counts.CountsReaderMatsimV2.idClass, org.matsim.core.utils.io.MatsimXmlParser.ValidationType.NO_VALIDATION, org.matsim.core.scenario.ProjectionUtils.putCRS(), and org.matsim.counts.CountsReaderMatsimV2.targetCRS.

| void org.matsim.counts.CountsReaderMatsimV2.startTag | ( | String | name, |
| Attributes | atts, | ||
| Stack< String > | context | ||
| ) |
Definition at line 62 of file CountsReaderMatsimV2.java.
References org.matsim.counts.CountsReaderMatsimV2.addValuesToMeasurable(), org.matsim.counts.CountsReaderMatsimV2.currAttributes, org.matsim.counts.Counts< T extends Identifiable< T >.ELEMENT_NAME, org.matsim.counts.CountsReaderMatsimV2.startMeasurable(), org.matsim.counts.CountsReaderMatsimV2.startMeasurementLocation(), org.matsim.counts.CountsReaderMatsimV2.startMultiModeCounts(), and org.matsim.utils.objectattributes.attributable.AttributesXmlReaderDelegate.startTag().

| void org.matsim.counts.CountsReaderMatsimV2.endTag | ( | String | name, |
| String | content, | ||
| Stack< String > | context | ||
| ) |
Definition at line 73 of file CountsReaderMatsimV2.java.
References org.matsim.counts.Counts< T extends Identifiable< T >.ELEMENT_NAME, org.matsim.utils.objectattributes.attributable.AttributesXmlReaderDelegate.endTag(), org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.counts.Counts< T extends Identifiable< T >.getAttributes(), org.matsim.core.utils.geometry.transformations.TransformationFactory.getCoordinateTransformation(), org.matsim.core.scenario.ProjectionUtils.INPUT_CRS_ATT, and org.matsim.core.scenario.ProjectionUtils.putCRS().

|
private |
Definition at line 94 of file CountsReaderMatsimV2.java.
References org.matsim.counts.Measurable.setAtSecond().
Referenced by org.matsim.counts.CountsReaderMatsimV2.startTag().

|
private |
Definition at line 100 of file CountsReaderMatsimV2.java.
References org.matsim.counts.MeasurementLocation< T >.createMeasurable().
Referenced by org.matsim.counts.CountsReaderMatsimV2.startTag().

|
private |
Definition at line 105 of file CountsReaderMatsimV2.java.
References org.matsim.api.core.v01.Id< T >.create(), org.matsim.counts.Counts< T extends Identifiable< T >.createAndAddMeasureLocation(), org.matsim.counts.CountsReaderMatsimV2.currAttributes, org.matsim.counts.MeasurementLocation< T >.getAttributes(), org.matsim.counts.MeasurementLocation< T >.setCoordinates(), org.matsim.counts.MeasurementLocation< T >.setId(), and org.matsim.core.utils.geometry.CoordinateTransformation.transform().
Referenced by org.matsim.counts.CountsReaderMatsimV2.startTag().

|
private |
Definition at line 124 of file CountsReaderMatsimV2.java.
References org.matsim.counts.CountsReaderMatsimV2.currAttributes, org.matsim.counts.Counts< T extends Identifiable< T >.getAttributes(), org.matsim.counts.Counts< T extends Identifiable< T >.setDescription(), org.matsim.counts.Counts< T extends Identifiable< T >.setName(), org.matsim.counts.Counts< T extends Identifiable< T >.setSource(), and org.matsim.counts.Counts< T extends Identifiable< T >.setYear().
Referenced by org.matsim.counts.CountsReaderMatsimV2.startTag().

|
abstractinherited |
Called for each opening xml-tag.
| name | the name of the xml-tag |
| atts | the list of attributes and their values |
| context | a stack containing the path/hierarchy to the current tag |
Referenced by org.matsim.core.utils.io.MatsimXmlParser.MatsimXmlParser(), org.matsim.core.utils.io.MatsimXmlParser.startElement(), org.matsim.matrices.MatsimMatricesReader.startTag(), org.matsim.core.config.ConfigReader.startTag(), org.matsim.core.network.io.MatsimNetworkReader.startTag(), org.matsim.counts.MatsimCountsReader.startTag(), org.matsim.core.population.io.PopulationReader.startTag(), org.matsim.pt.transitSchedule.api.TransitScheduleReader.XmlScheduleReader.startTag(), and org.matsim.facilities.MatsimFacilitiesReader.startTag().
|
inherited |
Sets, if this parser should validate the read XML or not. Not validating is sometimes useful during development or during some tests with format-extensions that are not yet part of the DTD, but it is strongly discouraged not to validate during production use.
| validateXml | Whether the parsed XML should be validated or not. |
Definition at line 117 of file MatsimXmlParser.java.
Referenced by org.matsim.core.events.EventsConverterXML.EventsConverterXML(), and org.matsim.core.events.EventsReaderXMLv1.EventsReaderXMLv1().
|
inherited |
Specifies that the parser produced by this code will provide support for XML namespaces. By default the value of this is set to false.
| awareness | true if the parser produced by this code will provide support for XML namespaces; false otherwise. |
Definition at line 128 of file MatsimXmlParser.java.
|
inherited |
Sets the directory where to look for DTD and XSD files if they are not found at the location specified in the XML.
| localDtdDirectory |
Definition at line 138 of file MatsimXmlParser.java.
|
inherited |
Parses the specified file. The file can be gzip-compressed and is decompressed on-the-fly while parsing. A gzip-compressed file must have the ending ".gz" to be correctly recognized. The passed filename may or may not contain the ending ".gz". If no uncompressed file is found with the specified name, the ending ".gz" will be added to the filename and a compressed file will be searched for and read if found.
| filename | The filename of the file to read, optionally ending with ".gz" to force reading a gzip-compressed file. |
| UncheckedIOException |
Implements org.matsim.core.api.internal.MatsimReader.
Definition at line 152 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.IOUtils.getBufferedReader(), and org.matsim.core.utils.io.MatsimXmlParser.parse().
Referenced by org.matsim.utils.gis.matsim2esri.plans.SelectedPlans2ESRIShape.main(), org.matsim.core.utils.io.OsmNetworkReader.parse(), org.matsim.vehicles.MatsimVehicleReader.readFile(), org.matsim.pt.transitSchedule.api.TransitScheduleReader.readFile(), org.matsim.core.events.MatsimEventsReader.readFile(), org.matsim.core.population.io.StreamingPopulationReader.readFile(), org.matsim.core.network.NetworkUtils.readNetwork(), org.matsim.core.population.PopulationUtils.readPopulation(), org.matsim.core.network.algorithms.intersectionSimplifier.RunIntersectionSimplifier.run(), and org.matsim.run.gui.ScheduleValidatorWindow.run().

|
inherited |
Implements org.matsim.core.api.internal.MatsimReader.
Definition at line 159 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.parse().
Referenced by org.matsim.vehicles.MatsimVehicleReader.readURL(), and org.matsim.core.events.MatsimEventsReader.readURL().

|
inherited |
Definition at line 163 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.parse().

|
inherited |
Definition at line 167 of file MatsimXmlParser.java.
References org.matsim.core.gbl.Gbl.assertNotNull(), and org.matsim.core.utils.io.IOUtils.getBufferedReader().
Referenced by org.matsim.core.config.ConfigUtils.loadConfig(), org.matsim.core.population.io.StreamingPopulationReader.parse(), org.matsim.core.utils.io.MatsimXmlParser.parse(), org.matsim.core.utils.io.OsmNetworkReader.parse(), org.matsim.core.utils.io.MatsimXmlParser.readFile(), org.matsim.vehicles.MatsimVehicleReader.readStream(), org.matsim.pt.transitSchedule.api.TransitScheduleReader.readStream(), org.matsim.core.events.MatsimEventsReader.readStream(), org.matsim.core.utils.io.MatsimXmlParser.readStream(), org.matsim.pt.transitSchedule.api.TransitScheduleReader.readURL(), org.matsim.core.population.io.StreamingPopulationReader.readURL(), and org.matsim.core.utils.io.MatsimXmlParser.readURL().

|
inherited |
Definition at line 175 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.parse().

|
inherited |
Definition at line 180 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.ValidationType.DTD_ONLY, and org.matsim.core.utils.io.MatsimXmlParser.ValidationType.NO_VALIDATION.
|
inherited |
Definition at line 235 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.doctype.
|
protectedinherited |
Definition at line 239 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.doctype.
Referenced by org.matsim.core.utils.io.MatsimXmlParser.resolveEntity().
|
inherited |
Definition at line 248 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.findDtdInClasspath(), org.matsim.core.utils.io.MatsimXmlParser.findDtdInDefaultLocation(), org.matsim.core.utils.io.MatsimXmlParser.findDtdInLocalFilesystem(), org.matsim.core.utils.io.MatsimXmlParser.findDtdInRemoteLocation(), and org.matsim.core.utils.io.MatsimXmlParser.setDoctype().

|
inherited |
Definition at line 352 of file MatsimXmlParser.java.
|
inherited |
Definition at line 362 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.startTag().

|
inherited |
Definition at line 372 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.endTag(), and org.matsim.core.utils.io.MatsimXmlParser.theContext.

|
inherited |
Definition at line 384 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.getInputSource().

|
inherited |
Definition at line 394 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.getInputSource().

|
inherited |
Definition at line 401 of file MatsimXmlParser.java.
References org.matsim.core.utils.io.MatsimXmlParser.getInputSource().

|
staticinherited |
Parses a String into a double, taking into account the special encoding for Infinity according to the xsd-specifications for the xs:double data type
Definition at line 426 of file MatsimXmlParser.java.
|
staticprivate |
Definition at line 25 of file CountsReaderMatsimV2.java.
|
staticprivate |
Definition at line 26 of file CountsReaderMatsimV2.java.
|
private |
Definition at line 27 of file CountsReaderMatsimV2.java.
Referenced by org.matsim.counts.CountsReaderMatsimV2.CountsReaderMatsimV2().
|
private |
Definition at line 28 of file CountsReaderMatsimV2.java.
|
private |
Definition at line 29 of file CountsReaderMatsimV2.java.
Referenced by org.matsim.counts.CountsReaderMatsimV2.CountsReaderMatsimV2().
|
private |
Definition at line 30 of file CountsReaderMatsimV2.java.
|
private |
Definition at line 31 of file CountsReaderMatsimV2.java.
Referenced by org.matsim.counts.CountsReaderMatsimV2.CountsReaderMatsimV2().
|
private |
Definition at line 32 of file CountsReaderMatsimV2.java.
Referenced by org.matsim.counts.CountsReaderMatsimV2.CountsReaderMatsimV2().
|
private |
Definition at line 33 of file CountsReaderMatsimV2.java.
|
private |
Definition at line 34 of file CountsReaderMatsimV2.java.
|
private |
Definition at line 35 of file CountsReaderMatsimV2.java.
Referenced by org.matsim.counts.CountsReaderMatsimV2.startMeasurementLocation(), org.matsim.counts.CountsReaderMatsimV2.startMultiModeCounts(), and org.matsim.counts.CountsReaderMatsimV2.startTag().
1.8.13