Class TaskHeadwayBased

    • Constructor Detail

      • TaskHeadwayBased

        public TaskHeadwayBased​(String id)
        Constructor.
        Parameters:
        id - String; id
    • Method Detail

      • calculateTaskDemand

        public double calculateTaskDemand​(LanePerception perception,
                                          LaneBasedGTU gtu,
                                          Parameters parameters)
                                   throws ParameterException
        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
      • getSpeed

        protected Speed getSpeed()
        Returns the current speed to translate a distance headway to a time headway.
        Returns:
        Speed; speed