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.
  • Constructor Details

    • Constant

      public Constant(String id, double taskDemand)
      Constructor.
      Parameters:
      id - String; id
      taskDemand - double; task demand
  • Method Details

    • getTask

      public Task getTask(LaneBasedGtu gtu)
      Returns a task for the given GTU.
      Specified by:
      getTask in interface TaskSupplier
      Parameters:
      gtu - LaneBasedGtu; gtu
      Returns:
      Task; task for given GTU