public class OSMWay extends Object implements Serializable
Copyright (c) 2013-2018 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
Constructor and Description |
---|
OSMWay(long id)
Construct a new OSMWay.
|
Modifier and Type | Method and Description |
---|---|
void |
addTag(OSMTag waytag)
Add one tag to the list of tags of this OSMWay.
|
void |
appendNode(Long nodeId)
Append one node id to the list of node ids.
|
long |
getId()
Retrieve the dd of this OSMWay.
|
List<OSMTag> |
getMatchingTags(String tagKey)
Retrieve the tags that match the give key.
|
List<Long> |
getNodes()
Retrieve the list of ids that comprise this OSMWay.
|
List<OSMTag> |
getTags()
Retrieve the list of OSMTags of this OSMWay.
|
void |
setNodes(List<Long> newNodes)
Set/replace the list of way nodes.
|
void |
setTags(List<OSMTag> newTags)
Set/replace the list of way tags.
|
String |
toString() |
public OSMWay(long id)
id
- long; Id of the new OSMWaypublic final long getId()
public final List<Long> getNodes()
public final void setNodes(List<Long> newNodes)
newNodes
- List<Long>; the new list of way nodespublic final void appendNode(Long nodeId)
nodeId
- Long; the id of the node that must be addedpublic final List<OSMTag> getTags()
public final void setTags(List<OSMTag> newTags)
newTags
- List<Tag>; the new list of way tagspublic final void addTag(OSMTag waytag)
waytag
- OSMTag; the tag that must be addedpublic final List<OSMTag> getMatchingTags(String tagKey)
tagKey
- String; the keyCopyright © 2014–2018 Delft University of Technology. All rights reserved.