Class LaneBasedGTUGenerator.Placement
- java.lang.Object
-
- org.opentrafficsim.road.gtu.generator.LaneBasedGTUGenerator.Placement
-
- Enclosing class:
- LaneBasedGTUGenerator
public static final class LaneBasedGTUGenerator.Placement extends Object
Placement contains the information that aRoomChecker
returns.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 12 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static LaneBasedGTUGenerator.Placement
NO
Value if the GTU cannot be placed.
-
Constructor Summary
Constructors Constructor Description Placement(Speed speed, Set<DirectedLanePosition> position)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canPlace()
Returns whether the GTU can be placed.Set<DirectedLanePosition>
getPosition()
Returns the position.Speed
getSpeed()
Returns the speed.String
toString()
-
-
-
Field Detail
-
NO
public static final LaneBasedGTUGenerator.Placement NO
Value if the GTU cannot be placed.
-
-
Constructor Detail
-
Placement
public Placement(Speed speed, Set<DirectedLanePosition> position)
Constructor.- Parameters:
speed
- Speed; speedposition
- Set<DirectedLanePosition>; position
-
-
Method Detail
-
canPlace
public boolean canPlace()
Returns whether the GTU can be placed.- Returns:
- whether the GTU can be placed
-
getSpeed
public Speed getSpeed()
Returns the speed.- Returns:
- Speed; speed
-
getPosition
public Set<DirectedLanePosition> getPosition()
Returns the position.- Returns:
- Set<DirectedLanePosition>; position
-
-