public static final class LaneBasedGTUGenerator.Placement extends Object
RoomChecker
returns.
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.
Modifier and Type | Field and Description |
---|---|
static LaneBasedGTUGenerator.Placement |
NO
Value if the GTU cannot be placed.
|
Constructor and Description |
---|
Placement(Speed speed,
Set<DirectedLanePosition> position)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPlace()
Returns whether the GTU can be placed.
|
Set<DirectedLanePosition> |
getPosition()
Returns the position.
|
Speed |
getSpeed()
Returns the speed.
|
String |
toString() |
public static final LaneBasedGTUGenerator.Placement NO
public Placement(Speed speed, Set<DirectedLanePosition> position)
speed
- Speed; speedposition
- Set<DirectedLanePosition>; positionpublic boolean canPlace()
public Speed getSpeed()
public Set<DirectedLanePosition> getPosition()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.