public class ExponentialTask extends AbstractTask
| Constructor and Description | 
|---|
ExponentialTask(String id,
               double initialTaskDemand,
               double finalTaskDemand,
               double tau,
               SimulatorInterface.TimeDoubleUnit simulator)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
calculateTaskDemand(LanePerception perception,
                   LaneBasedGTU gtu,
                   Parameters parameters)
Returns the gross task demand to be managed by a task manager. 
 | 
getAnticipationReliance, getId, getTaskDemand, setAnticipationReliance, setTaskDemand, toStringpublic ExponentialTask(String id, double initialTaskDemand, double finalTaskDemand, double tau, SimulatorInterface.TimeDoubleUnit simulator)
id - String; idinitialTaskDemand - double; initial level of task demandfinalTaskDemand - double; final level of task demandtau - double; time scale at which task demand changes from the initial to the final valuesimulator - SimulatorInterface.TimeDoubleUnit; simulatorpublic double calculateTaskDemand(LanePerception perception, LaneBasedGTU gtu, Parameters parameters) throws ParameterException, GTUException
perception - LanePerception; perceptiongtu - LaneBasedGTU; gtuparameters - Parameters; parametersParameterException - if a parameter is missing or out of boundsGTUException - exceptions pertaining to the GTUCopyright © 2014–2019 Delft University of Technology. All rights reserved.