LINKID - the ID type of the Link, e.g., String or Integer.NODEID - the ID type of the Node, e.g., String or Integer.public class CrossSectionLink<LINKID,NODEID> extends OTSLink<LINKID,NODEID>
Copyright (c) 2013-2015 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 22:05:02 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1156 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Constructor and Description |
|---|
CrossSectionLink(LINKID id,
Node<NODEID> startNode,
Node<NODEID> endNode,
OTSLine3D designLine)
Construction of a link.
|
CrossSectionLink(LINKID id,
Node<NODEID> startNode,
Node<NODEID> endNode,
OTSLine3D designLine,
DoubleScalar.Abs<FrequencyUnit> capacity)
Construction of a link.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCrossSectionElement(CrossSectionElement<LINKID,NODEID> cse)
Add a cross section element at the end of the list.
|
protected void |
addCrossSectionElement(CrossSectionElement<LINKID,NODEID> cse,
int index)
Add a cross section element at specified index in the list.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction. |
List<CrossSectionElement<LINKID,NODEID>> |
getCrossSectionElementList() |
getBounds, getCapacity, getDesignLine, getEndNode, getId, getLength, getLocation, getStartNode, setCapacity, toStringpublic CrossSectionLink(LINKID id, Node<NODEID> startNode, Node<NODEID> endNode, OTSLine3D designLine, DoubleScalar.Abs<FrequencyUnit> capacity)
id - the link id.startNode - start node (directional).endNode - end node (directional).designLine - the OTSLine3D design line of the Linkcapacity - link capacity in vehicles per hour.protected final void addCrossSectionElement(CrossSectionElement<LINKID,NODEID> cse)
cse - the cross section element to add.protected final void addCrossSectionElement(CrossSectionElement<LINKID,NODEID> cse, int index)
index - the location to insert the element.cse - the cross section element to add.public final List<CrossSectionElement<LINKID,NODEID>> getCrossSectionElementList()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.