public class LaneDirection extends Object implements Serializable
 Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Constructor and Description | 
|---|
LaneDirection(Lane lane,
             org.opentrafficsim.core.gtu.GTUDirectionality direction)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.djunits.value.vdouble.scalar.Length | 
coveredDistance(double fraction)
Returns the covered distance driven to the given fractional position. 
 | 
boolean | 
equals(Object obj) | 
double | 
fractionAtCoveredDistance(org.djunits.value.vdouble.scalar.Length distance)
Returns the fraction along the design line for having covered the given distance. 
 | 
LaneDirection | 
getAdjacentLaneDirection(org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection,
                        LaneBasedGTU gtu)
Returns the adjacent lane and direction. 
 | 
org.opentrafficsim.core.gtu.GTUDirectionality | 
getDirection()  | 
Lane | 
getLane()  | 
org.djunits.value.vdouble.scalar.Length | 
getLength()
Returns the length of the lane. 
 | 
nl.tudelft.simulation.language.d3.DirectedPoint | 
getLocationFraction(double fraction)
Returns a directed point at the given fraction, in the direction of travel (not center line). 
 | 
LaneDirection | 
getNextLaneDirection(LaneBasedGTU gtu)
Returns the next lane and direction. 
 | 
int | 
hashCode() | 
org.djunits.value.vdouble.scalar.Length | 
remainingDistance(double fraction)
Returns the remaining distance to be driven from the given fractional position. 
 | 
String | 
toString() | 
public LaneDirection(Lane lane, org.opentrafficsim.core.gtu.GTUDirectionality direction)
lane - the lanedirection - the direction to drive on this lanepublic final Lane getLane()
public final org.opentrafficsim.core.gtu.GTUDirectionality getDirection()
public final org.djunits.value.vdouble.scalar.Length coveredDistance(double fraction)
fraction - double; fractional positionpublic final org.djunits.value.vdouble.scalar.Length remainingDistance(double fraction)
fraction - double; fractional positionpublic final double fractionAtCoveredDistance(org.djunits.value.vdouble.scalar.Length distance)
distance - Length; covered distancepublic final LaneDirection getNextLaneDirection(LaneBasedGTU gtu)
gtu - LaneBasedGTU; gtunull if nonepublic org.djunits.value.vdouble.scalar.Length getLength()
public nl.tudelft.simulation.language.d3.DirectedPoint getLocationFraction(double fraction)
                                                                    throws org.opentrafficsim.core.geometry.OTSGeometryException
fraction - double; fractional positionorg.opentrafficsim.core.geometry.OTSGeometryException - in case the fractional position is not correctpublic final LaneDirection getAdjacentLaneDirection(org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection, LaneBasedGTU gtu)
gtu - LaneBasedGTU; gtulaneChangeDirection - LateralDirectionality; lane change directionnull if noneCopyright © 2014–2018 Delft University of Technology. All rights reserved.