public static class Fuller.Task.Exponential extends Fuller.IdentifiableTask
Fuller.Task.Constant, Fuller.Task.Exponential
Constructor and Description |
---|
Exponential(String id,
double initialTaskDemand,
double finalTaskDemand,
double tau,
SimulatorInterface.TimeDoubleUnit simulator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
demand(LanePerception perception,
LaneBasedGTU gtu,
Parameters parameters)
Returns the demand of this task.
|
getId, toString
public Exponential(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 demand(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.