IDL - the ID type of the Link, e.g., String or Integer.IDN - the ID type of the Node, e.g., String or Integer.public class CrossSectionLink<IDL,IDN> extends LinkGeotools<IDL,IDN>
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.
LinkGeotools.INT, LinkGeotools.STR| Constructor and Description |
|---|
CrossSectionLink(IDL id,
NodeGeotools<IDN> startNode,
NodeGeotools<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length)
Construction of a link.
|
CrossSectionLink(IDL id,
NodeGeotools<IDN> startNode,
NodeGeotools<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length,
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. |
Bounds |
getBounds() |
List<CrossSectionElement> |
getCrossSectionElementList() |
DirectedPoint |
getLocation() |
getGeometry, setGeometrygetCapacity, getEndNode, getId, getLength, getStartNode, setCapacity, toStringpublic CrossSectionLink(IDL id, NodeGeotools<IDN> startNode, NodeGeotools<IDN> endNode, DoubleScalar.Rel<LengthUnit> length, DoubleScalar.Abs<FrequencyUnit> capacity)
id - the link id.startNode - start node (directional).endNode - end node (directional).length - link length in a length unit.capacity - link capacity in vehicles per hour.public CrossSectionLink(IDL id, NodeGeotools<IDN> startNode, NodeGeotools<IDN> endNode, DoubleScalar.Rel<LengthUnit> length)
id - the link id.startNode - start node (directional).endNode - end node (directional).length - link length in a length unit.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()
public final DirectedPoint getLocation() throws RemoteException
getLocation in interface LocatableInterfacegetLocation in class LinkGeotools<IDL,IDN>RemoteExceptionpublic final Bounds getBounds() throws RemoteException
getBounds in interface LocatableInterfacegetBounds in class LinkGeotools<IDL,IDN>RemoteExceptionCopyright © 2014–2015 Delft University of Technology. All rights reserved.