Class ReadOSMFile
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.osm.input.ReadOSMFile
-
- All Implemented Interfaces:
Serializable
public final class ReadOSMFile extends Object implements 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 Summary
Constructors Constructor Description ReadOSMFile(String location, List<OSMTag> wantedTags, List<String> filteredKeys, ProgressListener progressListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckisReaderThreadDead()OSMNetworkgetNetwork()ProgressListenergetProgressListener()voidsetProgressListener(ProgressListener progressListener)StringtoString()
-
-
-
Constructor Detail
-
ReadOSMFile
public ReadOSMFile(String location, List<OSMTag> wantedTags, List<String> filteredKeys, ProgressListener progressListener) throws URISyntaxException, FileNotFoundException, 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:
URISyntaxException- when location is not a valid URLFileNotFoundException- when the OSM file can not be foundMalformedURLException- 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.
-
-