Class LaneBasedGtuGenerator.Placement
java.lang.Object
org.opentrafficsim.road.gtu.generator.LaneBasedGtuGenerator.Placement
- Enclosing class:
- LaneBasedGtuGenerator
Placement contains the information that a
RoomChecker
returns.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LaneBasedGtuGenerator.Placement
Value if the GTU cannot be placed. -
Constructor Summary
ConstructorDescriptionPlacement
(org.djunits.value.vdouble.scalar.Speed speed, LanePosition position) Constructor. -
Method Summary
-
Field Details
-
NO
Value if the GTU cannot be placed.
-
-
Constructor Details
-
Placement
Constructor.- Parameters:
speed
- Speed; speedposition
- LanePosition; position
-
-
Method Details
-
canPlace
public boolean canPlace()Returns whether the GTU can be placed.- Returns:
- whether the GTU can be placed
-
getSpeed
public org.djunits.value.vdouble.scalar.Speed getSpeed()Returns the speed.- Returns:
- Speed; speed
-
getPosition
Returns the position.- Returns:
- LanePosition; position
-
toString
-