Class TaskSupplier.Constant

  • All Implemented Interfaces:
    TaskSupplier
    Enclosing interface:
    TaskSupplier

    public static class TaskSupplier.Constant
    extends java.lang.Object
    implements TaskSupplier
    Class that supplies a constant task.
    • Constructor Summary

      Constructors 
      Constructor Description
      Constant​(java.lang.String id, double taskDemand)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Task getTask​(LaneBasedGTU gtu)
      Returns a task for the given GTU.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Constant

        public Constant​(java.lang.String id,
                        double taskDemand)
        Constructor.
        Parameters:
        id - String; id
        taskDemand - double; task demand
    • Method Detail

      • 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