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 LinkGeotools<IDL,IDN> extends AbstractLink<IDL,IDN,com.vividsolutions.jts.geom.Coordinate,NodeGeotools<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 |
LinkGeotools.INT
Integer ID implementation of the Point link.
|
static class |
LinkGeotools.STR
String ID implementation of the Point link.
|
| Constructor and Description |
|---|
LinkGeotools(IDL id,
NodeGeotools<IDN> startNode,
NodeGeotools<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length)
Construct a new link with infinite capacity.
|
LinkGeotools(IDL id,
NodeGeotools<IDN> startNode,
NodeGeotools<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length,
DoubleScalar.Abs<FrequencyUnit> capacity)
Construct a new link.
|
| Modifier and Type | Method and Description |
|---|---|
Bounds |
getBounds() |
LinearGeometry |
getGeometry() |
DirectedPoint |
getLocation() |
void |
setGeometry(LinearGeometry geometry) |
getCapacity, getEndNode, getId, getLength, getStartNode, setCapacity, toStringpublic LinkGeotools(IDL id, NodeGeotools<IDN> startNode, NodeGeotools<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 LinkGeotools(IDL id, NodeGeotools<IDN> startNode, NodeGeotools<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 LinearGeometry getGeometry()
public final void setGeometry(LinearGeometry geometry)
geometry - set the geometry of this link.public DirectedPoint getLocation() throws RemoteException
RemoteExceptionpublic Bounds getBounds() throws RemoteException
RemoteExceptionCopyright © 2014–2015 Delft University of Technology. All rights reserved.