Class TaskRoadSideDistraction

  • All Implemented Interfaces:
    org.opentrafficsim.base.Identifiable, Task

    public class TaskRoadSideDistraction
    extends AbstractTask
    Task-demand for road-side distraction.

    Copyright (c) 2013-2022 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 5 apr. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Constructor Detail

      • TaskRoadSideDistraction

        public TaskRoadSideDistraction()
        Constructor.
    • Method Detail

      • calculateTaskDemand

        public double calculateTaskDemand​(LanePerception perception,
                                          LaneBasedGTU gtu,
                                          org.opentrafficsim.base.parameters.Parameters parameters)
                                   throws org.opentrafficsim.base.parameters.ParameterException,
                                          GTUException
        Returns the gross task demand to be managed by a task manager.
        Parameters:
        perception - LanePerception; perception
        gtu - LaneBasedGTU; gtu
        parameters - Parameters; parameters
        Returns:
        double; gross task demand
        Throws:
        org.opentrafficsim.base.parameters.ParameterException - if a parameter is missing or out of bounds
        GTUException - exceptions pertaining to the GTU