Class ShortMerge

    • Field Detail

      • LEFT_FRACTION

        static final double LEFT_FRACTION
        Left traffic fraction.
        See Also:
        Constant Field Values
      • MAIN_DEMAND

        static final Frequency MAIN_DEMAND
        Main demand per lane.
      • RAMP_DEMAND

        static final Frequency RAMP_DEMAND
        Ramp demand.
      • SYNCHRONIZATION

        static final Synchronization SYNCHRONIZATION
        Synchronization.
      • COOPERATION

        static final Cooperation COOPERATION
        Cooperation.
      • ADDITIONAL_INCENTIVES

        static final boolean ADDITIONAL_INCENTIVES
        Use additional incentives.
        See Also:
        Constant Field Values
      • SIMTIME

        public static final Time SIMTIME
        Simulation time.
    • Constructor Detail

      • ShortMerge

        public ShortMerge​(String title,
                          OTSAnimationPanel panel,
                          ShortMerge.ShortMergeModel model)
                   throws org.opentrafficsim.draw.core.OTSDrawingException
        Create a ShortMerge Swing application.
        Parameters:
        title - String; the title of the Frame
        panel - OTSAnimationPanel; the tabbed panel to display
        model - ShortMergeModel; the model
        Throws:
        org.opentrafficsim.draw.core.OTSDrawingException - on animation error
    • Method Detail

      • main

        public static void main​(String[] args)
        Main program.
        Parameters:
        args - String[]; the command line arguments (not used)
      • demo

        public static void demo​(boolean exitOnClose)
        Start the demo.
        Parameters:
        exitOnClose - boolean; when running stand-alone: true; when running as part of a demo: false