Class AHFEUtil

    • Method Detail

      • createDemand

        public static void createDemand​(OTSRoadNetwork network,
                                        GTUColorer gtuColorer,
                                        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,
                                        ParameterException,
                                        GTUException,
                                        SimRuntimeException,
                                        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
        ParameterException - on parameter error
        GTUException - on gtu error
        ProbabilityException - on probability error
        SimRuntimeException - on sim runtime error