Class ExponentialTask

    • Constructor Detail

      • ExponentialTask

        public ExponentialTask​(String id,
                               double initialTaskDemand,
                               double finalTaskDemand,
                               Duration tau,
                               SimulatorInterface.TimeDoubleUnit simulator)
        Constructor.
        Parameters:
        id - String; id
        initialTaskDemand - double; initial level of task demand
        finalTaskDemand - double; final level of task demand
        tau - Duration; time scale at which task demand changes from the initial to the final value
        simulator - SimulatorInterface.TimeDoubleUnit; simulator
    • Method Detail

      • calculateTaskDemand

        public double calculateTaskDemand​(LanePerception perception,
                                          LaneBasedGTU gtu,
                                          Parameters parameters)
                                   throws 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:
        ParameterException - if a parameter is missing or out of bounds
        GTUException - exceptions pertaining to the GTU