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. |
javax.media.j3d.Bounds |
getBounds() |
List<CrossSectionElement> |
getCrossSectionElementList() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation() |
getGeometry, setGeometry
getCapacity, getEndNode, getId, getLength, getStartNode, setCapacity, toString
public 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 nl.tudelft.simulation.language.d3.DirectedPoint getLocation() throws RemoteException
getLocation
in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
getLocation
in class LinkGeotools<IDL,IDN>
RemoteException
public final javax.media.j3d.Bounds getBounds() throws RemoteException
getBounds
in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
getBounds
in class LinkGeotools<IDL,IDN>
RemoteException
Copyright © 2014–2015 Delft University of Technology. All rights reserved.