public class DirectedLanePosition extends Object
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.
Constructor and Description |
---|
DirectedLanePosition(Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.opentrafficsim.core.gtu.GTUDirectionality gtuDirection) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.opentrafficsim.core.gtu.GTUDirectionality |
getGtuDirection() |
Lane |
getLane() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation() |
org.djunits.value.vdouble.scalar.Length.Rel |
getPosition() |
int |
hashCode() |
String |
toString() |
public DirectedLanePosition(Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, org.opentrafficsim.core.gtu.GTUDirectionality gtuDirection) throws org.opentrafficsim.core.gtu.GTUException
lane
- the lane for the positionposition
- the position on the lane, relative to the cross section link (design line)gtuDirection
- the direction the vehicle is driving to -- either in the direction of the design line, or against itorg.opentrafficsim.core.gtu.GTUException
- when preconditions failpublic final Lane getLane()
public final org.djunits.value.vdouble.scalar.Length.Rel getPosition()
public final org.opentrafficsim.core.gtu.GTUDirectionality getGtuDirection()
public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.