Class ReadOSMFile
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.osm.input.ReadOSMFile
-
- All Implemented Interfaces:
java.io.Serializable
public final class ReadOSMFile extends java.lang.Object implements java.io.SerializableCopyright (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 Summary
Constructors Constructor Description ReadOSMFile(java.lang.String location, java.util.List<OSMTag> wantedTags, java.util.List<java.lang.String> filteredKeys, ProgressListener progressListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckisReaderThreadDead()OSMNetworkgetNetwork()ProgressListenergetProgressListener()voidsetProgressListener(ProgressListener progressListener)java.lang.StringtoString()
-
-
-
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 filewantedTags- List<OSMTag>; the list of wanted tagsfilteredKeys- List<String>; the list of filtered keysprogressListener- ProgressListener; ProgressListener- Throws:
java.net.URISyntaxException- when location is not a valid URLjava.io.FileNotFoundException- when the OSM file can not be foundjava.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:
toStringin classjava.lang.Object
-
-