public class Way extends Object
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
Way(long id) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(Long waynode) |
void |
addTag(Tag waytag) |
long |
getID() |
List<Long> |
getNodes() |
Tag |
getTag(String tagKey) |
List<Tag> |
getTags() |
void |
setID(long id) |
void |
setNodes(List<Long> theWayNodes)
Set/replace the list of way nodes.
|
void |
setTags(List<Tag> theWayTags)
Set/replace the list of way tags.
|
public final long getID()
public final void setID(long id)
id
- public final void setNodes(List<Long> theWayNodes)
theWayNodes
- List<Long>; the new list of way nodespublic final void addNode(Long waynode)
waynode
- public final void setTags(List<Tag> theWayTags)
theWayTags
- List<Tag>; the new list of way tagspublic final void addTag(Tag waytag)
waytag
- public final Tag getTag(String tagKey) throws IOException
tagKey
- IOException
Copyright © 2014–2015 Delft University of Technology. All rights reserved.