Class ReadOSMFile

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ReadOSMFile
    extends java.lang.Object
    implements java.io.Serializable

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    $LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $, initial version 31 dec. 2014

    Author:
    Mingxin Zhang , Moritz Bergmann
    See Also:
    Serialized Form
    • Constructor Detail

      • ReadOSMFile

        public ReadOSMFile​(java.lang.String location,
                           java.util.List<OSMTag> wantedTags,
                           java.util.List<java.lang.String> filteredKeys,
                           ProgressListener progressListener)
                    throws java.net.URISyntaxException,
                           java.io.FileNotFoundException,
                           java.net.MalformedURLException
        Parameters:
        location - String; the location of the OSM file
        wantedTags - List<OSMTag>; the list of wanted tags
        filteredKeys - List<String>; the list of filtered keys
        progressListener - ProgressListener; ProgressListener
        Throws:
        java.net.URISyntaxException - when location is not a valid URL
        java.io.FileNotFoundException - when the OSM file can not be found
        java.net.MalformedURLException - when location is not valid
    • Method Detail

      • checkisReaderThreadDead

        public boolean checkisReaderThreadDead()
        Returns:
        is reader thread dead
      • getNetwork

        public OSMNetwork getNetwork()
        Returns:
        get the whole Network
      • getProgressListener

        public ProgressListener getProgressListener()
        Returns:
        progressListener.
      • setProgressListener

        public void setProgressListener​(ProgressListener progressListener)
        Parameters:
        progressListener - ProgressListener; set progressListener.
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object