Class TaskDependency

java.lang.Object
com.codename1.scheduling.TaskDependency

public final class TaskDependency extends Object

A link between two tasks: the successor waits for the predecessor.

lag is working time added to the wait, and a negative lag is a lead: a finish-to-start link with a lag of minus one day lets the successor start a day before the predecessor finishes.

  • Method Details

    • getPredecessor

      public GanttTask getPredecessor()
    • getSuccessor

      public GanttTask getSuccessor()
    • getType

      public TaskDependency.Type getType()
    • setType

      public TaskDependency setType(TaskDependency.Type v)
    • getLag

      public long getLag()
      Working time in milliseconds; negative for a lead.
    • setLag

      public TaskDependency setLag(long millis)
    • constrainsStart

      public boolean constrainsStart()
      Whether the link holds the successor's start (and not its finish).
    • fromFinish

      public boolean fromFinish()
      Whether the link is measured from the predecessor's finish.