public static final class GeneratorPositions.GeneratorLanePosition extends Object
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 |
---|
GeneratorLanePosition(int laneNumber,
Set<DirectedLanePosition> position,
CrossSectionLink link)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
allows(org.opentrafficsim.core.gtu.GTUType gtuType)
Returns whether this lane is accessible to the GTU type.
|
(package private) org.opentrafficsim.core.gtu.GTUDirectionality |
getDirection()
Returns the direction of travel.
|
(package private) int |
getLaneNumber()
Returns the lane number, where 1 is the right-most lane.
|
(package private) CrossSectionLink |
getLink()
Returns the link.
|
(package private) Set<DirectedLanePosition> |
getPosition()
Returns the contained position set, representing a single GTU position on the network.
|
String |
toString() |
GeneratorLanePosition(int laneNumber, Set<DirectedLanePosition> position, CrossSectionLink link)
laneNumber
- int; lane number, where 1 is the right-most laneposition
- Set<DirectedLanePosition>; position set, representing a single GTU position on the networklink
- CrossSectionLink; linkint getLaneNumber()
boolean allows(org.opentrafficsim.core.gtu.GTUType gtuType)
gtuType
- GTUType; gtu typeSet<DirectedLanePosition> getPosition()
CrossSectionLink getLink()
org.opentrafficsim.core.gtu.GTUDirectionality getDirection()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.