Package strategies

Class StrategiesDemo

    • Constructor Detail

      • StrategiesDemo

        protected StrategiesDemo()
        Constructor.
    • Method Detail

      • main

        public static void main​(String[] args)
        Main method.
        Parameters:
        args - String[]; arguments
      • createGtu

        public void createGtu​(Lane lane,
                              Length pos,
                              org.opentrafficsim.core.gtu.GTUType gtuType,
                              Speed initialSpeed,
                              OTSRoadNetwork net)
                       throws NamingException,
                              org.opentrafficsim.core.gtu.GTUException,
                              org.opentrafficsim.core.network.NetworkException,
                              SimRuntimeException,
                              org.opentrafficsim.core.geometry.OTSGeometryException
        Creates a GTU.
        Parameters:
        lane - Lane; lane
        pos - Length; position
        gtuType - GTUType; GTU type
        initialSpeed - Speed; initial speed
        net - OTSRoadNetwork; network
        Throws:
        NamingException - on exception
        org.opentrafficsim.core.gtu.GTUException - on exception
        org.opentrafficsim.core.network.NetworkException - on exception
        SimRuntimeException - on exception
        org.opentrafficsim.core.geometry.OTSGeometryException - on exception