Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class TaskDependency
- Object
- TaskDependency
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.
Nested types
enum TaskDependency.Type | Which end of the predecessor holds which end of the successor. |
Methods
public GanttTask getPredecessor() | |
public GanttTask getSuccessor() | |
public TaskDependency.Type getType() | |
public TaskDependency setType(TaskDependency.Type v) | |
public long getLag() | Working time in milliseconds; negative for a lead. |
public TaskDependency setLag(long millis) | |
public boolean constrainsStart() | Whether the link holds the successor’s start (and not its finish). |
public boolean fromFinish() | Whether the link is measured from the predecessor’s finish. |
Inherited methods
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.