public class DirectedLanePosition 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 |
---|
DirectedLanePosition(Lane lane,
Length position,
GTUDirectionality gtuDirection)
Construct a new DirectedLanePosition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
GTUDirectionality |
getGtuDirection()
Retrieve the gtuDirection.
|
Lane |
getLane()
Retrieve the lane.
|
LaneDirection |
getLaneDirection()
Returns the lane direction in the direction of this lane direction.
|
LinkDirection |
getLinkDirection()
Returns the link direction in the direction of this lane direction.
|
DirectedPoint |
getLocation()
Retrieve the location and direction of the GTU on the lane.
|
Length |
getPosition()
Retrieve the position on the lane.
|
int |
hashCode() |
String |
toString() |
public DirectedLanePosition(Lane lane, Length position, GTUDirectionality gtuDirection) throws 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 itGTUException
- when preconditions failpublic final Lane getLane()
public final Length getPosition()
public final GTUDirectionality getGtuDirection()
public final DirectedPoint getLocation()
public final LaneDirection getLaneDirection()
public final LinkDirection getLinkDirection()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.