Class LeafTask

  • All Implemented Interfaces:
    Task, java.lang.Iterable<Task>

    public class LeafTask
    extends AbstactTask
    Represents a task without level (no sub tasks).
    Author:
    alexxismachine (Ulrich David)
    • Constructor Detail

      • LeafTask

        public LeafTask​(Task parent,
                        java.lang.String description)
        Create an instance with the given parameters.
        Parameters:
        parent - the parent task.
        description - the description.
    • Method Detail

      • addChild

        public void addChild​(Task task)
        Description copied from interface: Task
        Add a child to the task. (??? Sets the parent of the added task to this???).
        Specified by:
        addChild in interface Task
        Overrides:
        addChild in class AbstactTask
        Parameters:
        task - the task to add.