Class LaneChangeGraph

    • Field Detail

      • STANDARDSPEEDS

        static final double[] STANDARDSPEEDS
        Standard speed values in km/h.
    • Constructor Detail

      • LaneChangeGraph

        LaneChangeGraph​(String title,
                        JPanel mainPanel)
        Create a Lane Change Graph.
        Parameters:
        title - String; title text of the window
        mainPanel - JPanel; panel that will (indirectly?) contain the charts
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws NamingException,
                                org.opentrafficsim.core.network.NetworkException,
                                SimRuntimeException,
                                org.opentrafficsim.core.gtu.GTUException,
                                org.opentrafficsim.core.geometry.OTSGeometryException,
                                org.opentrafficsim.base.parameters.ParameterException,
                                org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
        Main entry point; now Swing thread safe (I hope).
        Parameters:
        args - String[]; the command line arguments (not used)
        Throws:
        org.opentrafficsim.core.gtu.GTUException - on error during GTU construction
        SimRuntimeException - on ???
        org.opentrafficsim.core.network.NetworkException - on network inconsistency
        NamingException - on ???
        org.opentrafficsim.core.geometry.OTSGeometryException - x
        org.opentrafficsim.base.parameters.ParameterException - in case of a parameter problem.
        org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - x
      • buildGUI

        public static void buildGUI​(String[] args)
                             throws NamingException,
                                    org.opentrafficsim.core.network.NetworkException,
                                    SimRuntimeException,
                                    org.opentrafficsim.core.gtu.GTUException
        Then execution start point.
        Parameters:
        args - String[]; the command line arguments (not used)
        Throws:
        NamingException - on ???
        org.opentrafficsim.core.network.NetworkException - on network inconsistency
        SimRuntimeException - on ???
        org.opentrafficsim.core.gtu.GTUException - on error during GTU construction
      • constructModel

        public void constructModel()
        Specified by:
        constructModel in interface DSOLModel<Duration,​org.opentrafficsim.core.dsol.OTSSimulatorInterface>
      • getNetwork

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

        public org.opentrafficsim.core.dsol.OTSSimulatorInterface getSimulator()
        Specified by:
        getSimulator in interface DSOLModel<Duration,​org.opentrafficsim.core.dsol.OTSSimulatorInterface>
      • getShortName

        public String getShortName()
        Specified by:
        getShortName in interface org.opentrafficsim.core.dsol.OTSModelInterface
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.opentrafficsim.core.dsol.OTSModelInterface