public class Link extends org.opentrafficsim.core.network.AbstractLink<Long,AreaNode> implements LocatableInterface
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.
| Constructor and Description |
|---|
Link(long id,
AreaNode nodeA,
AreaNode nodeB,
org.opentrafficsim.core.value.vdouble.scalar.DoubleScalar<org.opentrafficsim.core.unit.LengthUnit> length,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Bounds |
getBounds() |
DirectedPoint |
getLocation() |
String |
getName() |
double |
getSpeed() |
void |
setSpeed(double speed) |
public Link(long id,
AreaNode nodeA,
AreaNode nodeB,
org.opentrafficsim.core.value.vdouble.scalar.DoubleScalar<org.opentrafficsim.core.unit.LengthUnit> length,
String name)
id - the id of the link (Long).nodeA - the start node of the link.nodeB - the end node of the link.length - the length of the link with a unit.name - the human readable name of the link, e.g. a street name.public final DirectedPoint getLocation() throws RemoteException
getLocation in interface LocatableInterfaceRemoteExceptionpublic final Bounds getBounds() throws RemoteException
getBounds in interface LocatableInterfaceRemoteExceptionpublic final String getName()
public final double getSpeed()
public final void setSpeed(double speed)
speed - set speedCopyright © 2014 Delft University of Technology. All rights reserved.