Interface Task

    • Method Detail

      • calculateTaskDemand

        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
      • setTaskDemand

        void setTaskDemand​(double taskDemand)
        Sets (gross) task demand.
        Parameters:
        taskDemand - double; set task demand
      • getTaskDemand

        double getTaskDemand()
        Returns the gross demand of this task, i.e without considering anticipation reliance.
        Returns:
        double; gross demand of this task, i.e. without considering anticipation reliance
      • setAnticipationReliance

        void setAnticipationReliance​(double anticipationReliance)
        Set anticipation reliance.
        Parameters:
        anticipationReliance - double; set anticipation reliance
      • getAnticipationReliance

        double getAnticipationReliance()
        Returns the level of anticipation reliance.
        Returns:
        double; anticipation reliance