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 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 Details

  • Constructor Details

    • Placement

      public Placement(org.djunits.value.vdouble.scalar.Speed speed, LanePosition position)
      Constructor.
      Parameters:
      speed - Speed; speed
      position - 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

      public LanePosition getPosition()
      Returns the position.
      Returns:
      LanePosition; position
    • toString

      public String toString()
      Overrides:
      toString in class Object