Class TaskSupplier.Constant
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.perception.mental.sdm.TaskSupplier.Constant
-
- All Implemented Interfaces:
TaskSupplier
- Enclosing interface:
- TaskSupplier
public static class TaskSupplier.Constant extends Object implements 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskgetTask(LaneBasedGTU gtu)Returns a task for the given GTU.
-
-
-
Constructor Detail
-
Constant
public Constant(String id, double taskDemand)
Constructor.- Parameters:
id- String; idtaskDemand- double; task demand
-
-
Method Detail
-
getTask
public Task getTask(LaneBasedGTU gtu)
Returns a task for the given GTU.- Specified by:
getTaskin interfaceTaskSupplier- Parameters:
gtu- LaneBasedGTU; gtu- Returns:
- Task; task for given GTU
-
-