public class RelationContainer extends ProjectEntityContainer<Relation>
m_sequenceProvider
modCount
Constructor and Description |
---|
RelationContainer(ProjectFile projectFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
added(Relation element)
Called to notify subclasses of item addition.
|
Relation |
addPredecessor(Relation.Builder builder)
Add a predecessor relationship using the Relation instance created by the
supplied relation.Builder.
|
List<Relation> |
getPredecessors(Task task)
Retrieve the predecessors for a given task.
|
List<Relation> |
getRawSuccessors(Task task)
Retrieve the successors for a task in their "raw" form where each
Relation instance lists the successor as the source task attribute and
the predecessor as the target task attribute.
|
List<Relation> |
getSuccessors(Task task)
Retrieve the successors of a given task.
|
protected void |
removed(Relation element)
Called to notify subclasses of item removal.
|
boolean |
removePredecessor(Task successorTask,
Task predecessorTask,
RelationType type,
Duration lag)
Remove a matching predecessor relationship from a task.
|
protected void |
replaced(Relation oldElement,
Relation newElement)
Called to notify subclasses of item replacement.
|
firstUniqueID, fixUniqueIdClashes, getByUniqueID, updateUniqueID
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public RelationContainer(ProjectFile projectFile)
projectFile
- parent projectpublic List<Relation> getPredecessors(Task task)
task
- taskprotected void added(Relation element)
ListWithCallbacks
added
in class ProjectEntityContainer<Relation>
element
- added itemprotected void removed(Relation element)
ProjectEntityContainer
removed
in class ProjectEntityContainer<Relation>
element
- removed itemprotected void replaced(Relation oldElement, Relation newElement)
ListWithCallbacks
replaced
in class ListWithCallbacks<Relation>
oldElement
- old elementnewElement
- new elementpublic List<Relation> getSuccessors(Task task)
task
- taskpublic List<Relation> getRawSuccessors(Task task)
task
- taskpublic Relation addPredecessor(Relation.Builder builder)
builder
- Relation.Builder instancepublic boolean removePredecessor(Task successorTask, Task predecessorTask, RelationType type, Duration lag)
successorTask
- successor taskpredecessorTask
- predecessor task to removetype
- relationship typelag
- relationship lagCopyright © 2000–2024 Packwood Software. All rights reserved.