public class LaneDirectionRecord extends Object implements LaneRecord<LaneDirectionRecord>
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 |
---|
LaneDirectionRecord(Lane lane,
GTUDirectionality dir,
Length startDistance,
GTUType gtuType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
GTUDirectionality |
getDirection()
Returns the direction of travel.
|
Lane |
getLane()
Returns the lane.
|
Length |
getLength()
Returns the length of the lane.
|
List<LaneDirectionRecord> |
getNext()
Returns a list of next lanes.
|
List<LaneDirectionRecord> |
getPrev()
Returns a list of previous lanes.
|
Length |
getStartDistance()
Returns the distance from a reference to the start of this lane, negative for upstream distance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceToPosition, isDownstreamBranch
public LaneDirectionRecord(Lane lane, GTUDirectionality dir, Length startDistance, GTUType gtuType)
lane
- Lane; lanedir
- GTUDirectionality; direction of travelstartDistance
- Length; distance to startgtuType
- GTUType; GTU typepublic List<LaneDirectionRecord> getNext()
getNext
in interface LaneRecord<LaneDirectionRecord>
public List<LaneDirectionRecord> getPrev()
getPrev
in interface LaneRecord<LaneDirectionRecord>
public Length getStartDistance()
getStartDistance
in interface LaneRecord<LaneDirectionRecord>
public Length getLength()
getLength
in interface LaneRecord<LaneDirectionRecord>
public GTUDirectionality getDirection()
getDirection
in interface LaneRecord<LaneDirectionRecord>
public Lane getLane()
getLane
in interface LaneRecord<LaneDirectionRecord>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.