Class LaneBasedGTUGenerator.Placement

  • Enclosing class:
    LaneBasedGTUGenerator

    public static final class LaneBasedGTUGenerator.Placement
    extends Object
    Placement contains the information that a RoomChecker 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
    • Constructor Detail

      • Placement

        public Placement​(Speed speed,
                         Set<DirectedLanePosition> position)
        Constructor.
        Parameters:
        speed - Speed; speed
        position - 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