Class AHFEUtil

    • Method Detail

      • createDemand

        public static void createDemand​(OTSRoadNetwork network,
                                        GTUColorer gtuColorer,
                                        org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
                                        int replication,
                                        String anticipationStrategy,
                                        Duration reactionTime,
                                        Duration anticipationTime,
                                        double truckFraction,
                                        Time simulationTime,
                                        Frequency leftDemand,
                                        Frequency rightDemand,
                                        double leftFraction,
                                        double distanceError,
                                        double speedError,
                                        double accelerationError)
                                 throws ValueRuntimeException,
                                        org.opentrafficsim.base.parameters.ParameterException,
                                        org.opentrafficsim.core.gtu.GTUException,
                                        SimRuntimeException,
                                        org.opentrafficsim.core.distributions.ProbabilityException
        Parameters:
        network - OTSRoadNetwork; the network
        gtuColorer - GTUColorer; the GTU colorer
        simulator - OTSSimulatorInterface; the simulator
        replication - int; replication number
        anticipationStrategy - String; anticipation strategy
        reactionTime - Duration; reaction time
        anticipationTime - Duration; anticipation time
        truckFraction - double; truck fraction
        simulationTime - Time; simulation time
        leftDemand - Frequency; demand on left highway
        rightDemand - Frequency; demand on right highway
        leftFraction - double; fraction of traffic generated on left lane
        distanceError - double; distance error
        speedError - double; speed error
        accelerationError - double; acceleration error
        Throws:
        ValueRuntimeException - on value error
        org.opentrafficsim.base.parameters.ParameterException - on parameter error
        org.opentrafficsim.core.gtu.GTUException - on gtu error
        org.opentrafficsim.core.distributions.ProbabilityException - on probability error
        SimRuntimeException - on sim runtime error