public class DirectedLinkPosition extends LinkDirection
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
DirectedLinkPosition(Link link,
double fractionalLongitudinalPosition,
GTUDirectionality direction) |
DirectedLinkPosition(Link link,
Length position,
GTUDirectionality direction) |
| Modifier and Type | Method and Description |
|---|---|
double |
getFractionalLongitudinalPosition() |
Length |
getLongitudinalPosition() |
String |
toString() |
equals, getDirection, getId, getLength, getLink, getLinkType, getNodeFrom, getNodeTo, hashCodepublic DirectedLinkPosition(Link link, double fractionalLongitudinalPosition, GTUDirectionality direction)
link - Link; the linkfractionalLongitudinalPosition - double; fractional positiondirection - GTUDirectionality; the direction on the link, with or against the design linepublic DirectedLinkPosition(Link link, Length position, GTUDirectionality direction)
link - Link; the linkposition - Length; positiondirection - GTUDirectionality; the direction on the link, with or against the design linepublic final double getFractionalLongitudinalPosition()
public final Length getLongitudinalPosition()
public String toString()
toString in class LinkDirectionCopyright © 2014–2019 Delft University of Technology. All rights reserved.