E
- type of GANNT task used in the planningpublic class GanttPlanning<E extends GanttTask<E>>
extends java.lang.Object
Constructor and Description |
---|
GanttPlanning()
creates an empty GANTT planning
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String attribute)
adds the name of a valid attribute for the GANNT task
|
void |
addEndStartDependency(E predecessor,
E successor)
adds an end start dependency between two tasks
|
void |
addTask(E gantttask)
adds a task to the planning
|
void |
addTasks(java.util.List<E> gantttasks)
adds a list of tasks to the planning
|
java.lang.String[] |
getAllowedAttributeList() |
protected java.util.ArrayList<org.openlowcode.client.graphic.widget.schedule.GanttDependency<E>> |
getDependenciesByPredecessor(int index)
gets all the dependencies having the given task as predecessor
|
protected java.util.ArrayList<org.openlowcode.client.graphic.widget.schedule.GanttDependency<E>> |
getDependenciesBySuccessor(int index)
gets all the dependencies having the given task as successor
|
protected java.util.ArrayList<org.openlowcode.client.graphic.widget.schedule.GanttDependency<E>> |
getDependenciesInBetween(int index)
gets the tasks that are in between the predecessor and the successor of the
dependency
|
org.openlowcode.client.graphic.widget.schedule.GanttDependency<E> |
getDependency(int index)
get dependency at the given index
|
int |
getDependencyNumber() |
E |
getTaskAt(int index)
gets the task at the given index
|
int |
getTaskNr() |
boolean |
isAttributeValid(java.lang.String attribute)
checks if an attribute name is valid for a task
|
protected java.util.ArrayList<org.openlowcode.client.graphic.widget.schedule.GanttDependency<E>> getDependenciesInBetween(int index)
index
- index of the dependencypublic java.lang.String[] getAllowedAttributeList()
protected java.util.ArrayList<org.openlowcode.client.graphic.widget.schedule.GanttDependency<E>> getDependenciesBySuccessor(int index)
index
- index of a taskprotected java.util.ArrayList<org.openlowcode.client.graphic.widget.schedule.GanttDependency<E>> getDependenciesByPredecessor(int index)
index
- index of a taskpublic int getTaskNr()
public E getTaskAt(int index)
index
- a number between 0 (included) and getTaskNr() (excluded)public boolean isAttributeValid(java.lang.String attribute)
attribute
- attribute namepublic void addAttribute(java.lang.String attribute)
attribute
- name of the attributespublic void addTasks(java.util.List<E> gantttasks)
gantttasks
- tasks to addpublic void addTask(E gantttask)
gantttask
- task to addpublic int getDependencyNumber()
public org.openlowcode.client.graphic.widget.schedule.GanttDependency<E> getDependency(int index)
index
- a number between 0 (included) and getDependencyNumber (excluded)