Class TaskSupplier.Constant
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.sdm.TaskSupplier.Constant
- All Implemented Interfaces:
TaskSupplier
- Enclosing interface:
- TaskSupplier
Class that supplies a constant task.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.mental.sdm.TaskSupplier
TaskSupplier.Constant
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Constant
Constructor.- Parameters:
id
- String; idtaskDemand
- double; task demand
-
-
Method Details
-
getTask
Returns a task for the given GTU.- Specified by:
getTask
in interfaceTaskSupplier
- Parameters:
gtu
- LaneBasedGtu; gtu- Returns:
- Task; task for given GTU
-