|
MATSIM
|

Public Member Functions | |
| MatsimNetworkReader (Network network) | |
| MatsimNetworkReader (String targetCRS, Network network) | |
| MatsimNetworkReader (String inputCRS, String targetCRS, Network network) | |
| void | startTag (final String name, final Attributes atts, final Stack< String > context) |
| void | endTag (final String name, final String content, final Stack< String > context) |
| void | endDocument () |
| void | putAttributeConverter (Class<?> clazz, AttributeConverter<?> converter) |
| void | putAttributeConverters (Map< Class<?>, AttributeConverter<?>> attributeConverters) |
| 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 Attributes | |
| MatsimXmlParser | delegate = null |
| final String | inputCRS |
| final String | targetCRS |
| final Network | network |
| Map< Class<?>, AttributeConverter<?> > | converters = new HashMap<>() |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(MatsimNetworkReader.class) |
| static final String | NETWORK_V1 = "network_v1.dtd" |
| static final String | NETWORK_V2 = "network_v2.dtd" |
A reader for network-files of MATSim. This reader recognizes the format of the network-file and uses the correct reader for the specific network-version, without manual setting.
Definition at line 44 of file MatsimNetworkReader.java.
| org.matsim.core.network.io.MatsimNetworkReader.MatsimNetworkReader | ( | Network | network | ) |
Creates a new reader for MATSim network files.
| network | The network where to store the loaded data. |
Definition at line 62 of file MatsimNetworkReader.java.
References org.matsim.core.network.io.MatsimNetworkReader.network.
| org.matsim.core.network.io.MatsimNetworkReader.MatsimNetworkReader | ( | String | targetCRS, |
| Network | network | ||
| ) |
Creates a new reader for MATSim network files, that transforms coordinates
| targetCRS | the string representation of the CRS the coordinates should be transformed to (usually an EPSG code) |
| network | The network where to store the loaded data. |
Definition at line 72 of file MatsimNetworkReader.java.
References org.matsim.core.network.io.MatsimNetworkReader.network, and org.matsim.core.network.io.MatsimNetworkReader.targetCRS.
| org.matsim.core.network.io.MatsimNetworkReader.MatsimNetworkReader | ( | String | inputCRS, |
| String | targetCRS, | ||
| Network | network | ||
| ) |
Definition at line 76 of file MatsimNetworkReader.java.
References org.matsim.core.utils.io.MatsimXmlParser.ValidationType.DTD_ONLY, org.matsim.core.network.io.MatsimNetworkReader.inputCRS, org.matsim.core.network.io.MatsimNetworkReader.network, and org.matsim.core.network.io.MatsimNetworkReader.targetCRS.
| void org.matsim.core.network.io.MatsimNetworkReader.startTag | ( | final String | name, |
| final Attributes | atts, | ||
| final Stack< String > | context | ||
| ) |
Definition at line 84 of file MatsimNetworkReader.java.
References org.matsim.core.utils.io.MatsimXmlParser.startTag().

| void org.matsim.core.network.io.MatsimNetworkReader.endTag | ( | final String | name, |
| final String | content, | ||
| final Stack< String > | context | ||
| ) |
Definition at line 89 of file MatsimNetworkReader.java.
References org.matsim.core.utils.io.MatsimXmlParser.endTag().

| void org.matsim.core.network.io.MatsimNetworkReader.endDocument | ( | ) |
Definition at line 94 of file MatsimNetworkReader.java.
|
protected |
Definition at line 106 of file MatsimNetworkReader.java.
References org.matsim.core.utils.geometry.transformations.TransformationFactory.getCoordinateTransformation(), org.matsim.core.network.io.MatsimNetworkReader.network, org.matsim.core.network.io.MatsimNetworkReader.NETWORK_V1, and org.matsim.core.network.io.MatsimNetworkReader.NETWORK_V2.

| void org.matsim.core.network.io.MatsimNetworkReader.putAttributeConverter | ( | Class<?> | clazz, |
| AttributeConverter<?> | converter | ||
| ) |
Definition at line 129 of file MatsimNetworkReader.java.
| void org.matsim.core.network.io.MatsimNetworkReader.putAttributeConverters | ( | Map< Class<?>, AttributeConverter<?>> | attributeConverters | ) |
Definition at line 133 of file MatsimNetworkReader.java.
|
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.
|
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 46 of file MatsimNetworkReader.java.
|
staticprivate |
Definition at line 47 of file MatsimNetworkReader.java.
Referenced by org.matsim.core.network.io.MatsimNetworkReader.setDoctype().
|
staticprivate |
Definition at line 48 of file MatsimNetworkReader.java.
Referenced by org.matsim.core.network.io.MatsimNetworkReader.setDoctype().
|
private |
Definition at line 50 of file MatsimNetworkReader.java.
|
private |
Definition at line 51 of file MatsimNetworkReader.java.
Referenced by org.matsim.core.network.io.MatsimNetworkReader.MatsimNetworkReader().
|
private |
Definition at line 52 of file MatsimNetworkReader.java.
Referenced by org.matsim.core.network.io.MatsimNetworkReader.MatsimNetworkReader().
|
private |
Definition at line 54 of file MatsimNetworkReader.java.
Referenced by org.matsim.core.network.io.MatsimNetworkReader.MatsimNetworkReader(), and org.matsim.core.network.io.MatsimNetworkReader.setDoctype().
|
private |
Definition at line 55 of file MatsimNetworkReader.java.
1.8.13