Class StochasticDistractionModel

    • Constructor Detail

      • StochasticDistractionModel

        public StochasticDistractionModel​(boolean allowMultiTasking,
                                          List<Distraction> distractions,
                                          DEVSSimulatorInterface.TimeDoubleUnit 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 - DEVSSimulatorInterface.TimeDoubleUnit; simulator
        network - OTSRoadNetwork; network