public class LaneDirectionRecord extends Object implements LaneRecord<LaneDirectionRecord>
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 |
|---|
LaneDirectionRecord(Lane lane,
org.opentrafficsim.core.gtu.GTUDirectionality dir,
org.djunits.value.vdouble.scalar.Length startDistance,
org.opentrafficsim.core.gtu.GTUType gtuType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.opentrafficsim.core.gtu.GTUDirectionality |
getDirection()
Returns the direction of travel.
|
Lane |
getLane()
Returns the lane.
|
org.djunits.value.vdouble.scalar.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.
|
org.djunits.value.vdouble.scalar.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, waitgetDistanceToPosition, isDownstreamBranchpublic LaneDirectionRecord(Lane lane, org.opentrafficsim.core.gtu.GTUDirectionality dir, org.djunits.value.vdouble.scalar.Length startDistance, org.opentrafficsim.core.gtu.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 org.djunits.value.vdouble.scalar.Length getStartDistance()
getStartDistance in interface LaneRecord<LaneDirectionRecord>public org.djunits.value.vdouble.scalar.Length getLength()
getLength in interface LaneRecord<LaneDirectionRecord>public org.opentrafficsim.core.gtu.GTUDirectionality getDirection()
getDirection in interface LaneRecord<LaneDirectionRecord>public Lane getLane()
getLane in interface LaneRecord<LaneDirectionRecord>Copyright © 2014–2018 Delft University of Technology. All rights reserved.