Class GeneratorPositions.GeneratorZonePosition

java.lang.Object
org.opentrafficsim.road.gtu.generator.GeneratorPositions.GeneratorZonePosition
Enclosing interface:
GeneratorPositions

public static final class GeneratorPositions.GeneratorZonePosition extends Object
Class representing a vehicle generation zone to provide individual generation positions.

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

  • Method Details

    • draw

      GeneratorPositions.GeneratorLinkPosition draw(GtuType gtuType, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Node destination, Route route)
      Draws a GeneratorLinkPosition using number of accessible lanes for the GtuType as weight, and a GeneratorLanePosition from that.
      Parameters:
      gtuType - GtuType; GTU type
      stream - StreamInterface; stream for random numbers
      destination - Node; destination node
      route - Route; route, may be null
      Returns:
      GeneratorLanePosition; draws a LinkPosition using number of accessible lanes for the GtuType as weight, and a GeneratorLanePosition from that
    • toString

      public String toString()
      Overrides:
      toString in class Object