public class LinkData extends Object implements org.opentrafficsim.kpi.interfaces.LinkDataInterface
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
(package private) NodeData |
endNode
end node.
|
(package private) NodeData |
startNode
start node.
|
Constructor and Description |
---|
LinkData(String linkName,
NodeData startNode,
NodeData endNode,
org.djunits.value.vdouble.scalar.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() |
List<org.opentrafficsim.kpi.interfaces.LaneDataInterface> |
getLaneDatas() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
String |
getLinkName() |
NodeData |
getStartNode() |
int |
hashCode() |
String |
toString() |
final NodeData startNode
final NodeData endNode
public void addLaneData(LaneData laneData)
laneData
- the lane to addpublic final List<org.opentrafficsim.kpi.interfaces.LaneDataInterface> getLaneDatas()
getLaneDatas
in interface org.opentrafficsim.kpi.interfaces.LinkDataInterface
public final org.djunits.value.vdouble.scalar.Length getLength()
getLength
in interface org.opentrafficsim.kpi.interfaces.LinkDataInterface
public final NodeData getStartNode()
public final NodeData getEndNode()
public final String getLinkName()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.