public class LinkData extends Object implements LinkDataInterface
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
LinkData(String linkName,
NodeData startNode,
NodeData endNode,
Length length) |
Modifier and Type | Method and Description |
---|---|
void |
addLaneData(LaneData laneData)
Add the lane to the list of lanes for this link.
|
boolean |
equals(Object obj) |
NodeData |
getEndNode() |
String |
getId() |
List<LaneDataInterface> |
getLaneDatas() |
Length |
getLength() |
String |
getLinkName() |
NodeData |
getStartNode() |
int |
hashCode() |
String |
toString() |
public void addLaneData(LaneData laneData)
laneData
- LaneData; the lane to addpublic final List<LaneDataInterface> getLaneDatas()
getLaneDatas
in interface LinkDataInterface
public final Length getLength()
getLength
in interface LinkDataInterface
public final NodeData getStartNode()
public final NodeData getEndNode()
public final String getLinkName()
public String getId()
getId
in interface Identifiable
getId
in interface LinkDataInterface
Copyright © 2014–2019 Delft University of Technology. All rights reserved.