Class SequentialLanes.SequentialModel

  • All Implemented Interfaces:
    Serializable, DSOLModel<Duration,​org.opentrafficsim.core.dsol.OTSSimulatorInterface>, UNITS, EventProducerInterface, org.opentrafficsim.core.dsol.OTSModelInterface
    Enclosing class:
    SequentialLanes

    static class SequentialLanes.SequentialModel
    extends org.opentrafficsim.core.dsol.AbstractOTSModel
    implements UNITS
    Build the sequential model.

    Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    $LastChangedDate$, @version $Revision$, by $Author$, initial version 0 jan. 2015

    Author:
    Peter Knoppers
    • Constructor Detail

      • SequentialModel

        SequentialModel​(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
        Parameters:
        simulator - OTSSimulatorInterface; the simulator for this model
    • Method Detail

      • getPath

        public List<Lane> getPath()
        Returns:
        a newly created path (which all GTUs in this simulation will follow).
      • getNetwork

        public OTSRoadNetwork getNetwork()
        Specified by:
        getNetwork in interface org.opentrafficsim.core.dsol.OTSModelInterface
      • getMinimumDistance

        public final Length getMinimumDistance()
        Returns:
        minimumDistance
      • getMaximumDistance

        public final Length getMaximumDistance()
        Returns:
        maximumDistance
      • generateCar

        protected final void generateCar()
        Generate cars at a fixed rate (implemented by re-scheduling this method).