public interface Link extends LocatableInterface, Serializable
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-11-08 23:04:17 +0100 (Sun, 08 Nov 2015) $, @version $Revision: 1539 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectionality(GTUType gtuType,
LongitudinalDirectionality directionality)
This method sets the directionality of the link for a GTU type.
|
Bounds |
getBounds() |
OTSLine3D |
getDesignLine() |
LongitudinalDirectionality |
getDirectionality(GTUType gtuType)
This method returns the directionality of the link for a GTU type.
|
Node |
getEndNode() |
String |
getId() |
org.djunits.value.vdouble.scalar.Length.Rel |
getLength() |
LinkType |
getLinkType() |
DirectedPoint |
getLocation() |
Node |
getStartNode() |
void |
removeDirectionality(GTUType gtuType)
This method removes an earlier provided directionality of the link for a given GTU type, e.g.
|
String getId()
Node getStartNode()
Node getEndNode()
LinkType getLinkType()
OTSLine3D getDesignLine()
org.djunits.value.vdouble.scalar.Length.Rel getLength()
LongitudinalDirectionality getDirectionality(GTUType gtuType)
gtuType - the GTU type to request the directionality forvoid addDirectionality(GTUType gtuType, LongitudinalDirectionality directionality)
gtuType - the GTU type to set the directionality for.directionality - the longitudinal directionality of the link (FORWARD, BACKWARD, BOTH or NONE) for the given GTU
type.void removeDirectionality(GTUType gtuType)
gtuType - the GTU type to remove the directionality for.DirectedPoint getLocation()
getLocation in interface LocatableInterfaceBounds getBounds()
getBounds in interface LocatableInterfaceCopyright © 2014–2016 Delft University of Technology. All rights reserved.