Class AHFEUtil


  • public final class AHFEUtil
    extends java.lang.Object

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version 2 mrt. 2017
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createDemand​(OTSRoadNetwork network, GTUColorer gtuColorer, OTSSimulatorInterface simulator, int replication, java.lang.String anticipationStrategy, Duration reactionTime, Duration anticipationTime, double truckFraction, Time simulationTime, Frequency leftDemand, Frequency rightDemand, double leftFraction, double distanceError, double speedError, double accelerationError)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createDemand

        public static void createDemand​(OTSRoadNetwork network,
                                        GTUColorer gtuColorer,
                                        OTSSimulatorInterface simulator,
                                        int replication,
                                        java.lang.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