public class DirectedLanePosition extends Object implements Serializable
 Copyright (c) 2013-2016 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 position,
                    org.opentrafficsim.core.gtu.GTUDirectionality gtuDirection)
Construct a new DirectedLanePosition. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj) | 
org.opentrafficsim.core.gtu.GTUDirectionality | 
getGtuDirection()
Retrieve the gtuDirection. 
 | 
Lane | 
getLane()
Retrieve the lane. 
 | 
nl.tudelft.simulation.language.d3.DirectedPoint | 
getLocation()
Retrieve the location and direction of the GTU on the lane. 
 | 
org.djunits.value.vdouble.scalar.Length | 
getPosition()
Retrieve the position on the lane. 
 | 
int | 
hashCode() | 
String | 
toString() | 
public DirectedLanePosition(Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.gtu.GTUDirectionality gtuDirection) throws org.opentrafficsim.core.gtu.GTUException
lane - Lane; the lane for the positionposition - Length; the position on the lane, relative to the cross section link (design line)gtuDirection - GTUDirectionality; 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 getPosition()
public final org.opentrafficsim.core.gtu.GTUDirectionality getGtuDirection()
public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.