public class CrossSectionLink extends OTSLink implements Serializable
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-08-27 01:29:47 +0200 (Thu, 27 Aug 2015) $, @version $Revision: 1303 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Constructor and Description |
|---|
CrossSectionLink(String id,
Node startNode,
Node endNode,
OTSLine3D designLine)
Construction of a link.
|
CrossSectionLink(String id,
Node startNode,
Node endNode,
OTSLine3D designLine,
DoubleScalar.Abs<FrequencyUnit> capacity)
Construction of a link.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCrossSectionElement(CrossSectionElement cse)
Add a cross section element at the end of the list.
|
protected void |
addCrossSectionElement(CrossSectionElement 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> |
getCrossSectionElementList() |
equals, getBounds, getCapacity, getDesignLine, getEndNode, getId, getLength, getLocation, getStartNode, hashCode, setCapacity, toStringpublic CrossSectionLink(String id, Node startNode, Node 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 cse)
cse - the cross section element to add.protected final void addCrossSectionElement(CrossSectionElement cse, int index)
index - the location to insert the element.cse - the cross section element to add.public final List<CrossSectionElement> getCrossSectionElementList()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.