Class StochasticDistractionModel

    • Constructor Detail

      • StochasticDistractionModel

        public StochasticDistractionModel​(boolean allowMultiTasking,
                                          List<Distraction> distractions,
                                          OTSSimulatorInterface simulator,
                                          OTSRoadNetwork network)
        Constructor. This model will react to GTU's being created in simulation and apply distractions.
        Parameters:
        allowMultiTasking - boolean; whether to allow multi-tasking
        distractions - List<Distraction>; list of distractions
        simulator - OTSSimulatorInterface; simulator
        network - OTSRoadNetwork; network