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 LinkPoint2D<IDL,IDN> extends AbstractLink<IDL,IDN,Point2D,NodePoint2D<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.
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkPoint2D.INT
Integer ID implementation of the Point2D link.
|
static class |
LinkPoint2D.STR
String ID implementation of the Point2D link.
|
| Constructor and Description |
|---|
LinkPoint2D(IDL id,
NodePoint2D<IDN> startNode,
NodePoint2D<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length)
Construct a new link with infinite capacity.
|
LinkPoint2D(IDL id,
NodePoint2D<IDN> startNode,
NodePoint2D<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length,
DoubleScalar.Abs<FrequencyUnit> capacity)
Construct a new link.
|
| Modifier and Type | Method and Description |
|---|---|
javax.media.j3d.Bounds |
getBounds() |
DirectedPoint |
getLocation() |
getCapacity, getEndNode, getId, getLength, getStartNode, setCapacity, toStringpublic LinkPoint2D(IDL id, NodePoint2D<IDN> startNode, NodePoint2D<IDN> endNode, DoubleScalar.Rel<LengthUnit> length, DoubleScalar.Abs<FrequencyUnit> capacity)
id - the link idstartNode - start node (directional)endNode - end node (directional)length - link length in a length unitcapacity - link capacity in GTUs per hourpublic LinkPoint2D(IDL id, NodePoint2D<IDN> startNode, NodePoint2D<IDN> endNode, DoubleScalar.Rel<LengthUnit> length)
id - the link idstartNode - start node (directional)endNode - end node (directional)length - link length in a length unitpublic final DirectedPoint getLocation() throws RemoteException
RemoteExceptionpublic final javax.media.j3d.Bounds getBounds()
throws RemoteException
RemoteExceptionCopyright © 2014–2015 Delft University of Technology. All rights reserved.