Modifier and Type | Method and Description |
---|---|
TaskLink |
add(Task pred,
Task succ)
Returns an instance of Finish-Start
TaskLink which has been added to the TaskLinkCollection object. |
TaskLink |
add(Task pred,
Task succ,
int linkType)
Returns an instance of
TaskLink which has been added to the TaskLinkCollection object. |
TaskLink |
add(Task pred,
Task succ,
int linkType,
Duration lag)
Returns an instance of
TaskLink which has been added to the TaskLinkCollection object. |
int |
getCount()
Returns the number of objects contained in this
TaskLinkCollection object. |
Project |
getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
|
Iterator<TaskLink> |
iterator() |
TaskLink |
remove(TaskLink link)
Removes task link from a project.
|
List<TaskLink> |
toList()
Converts the TaskLinkCollection object to a list of
TaskLink objects. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Project getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
Project
for this object.public int getCount()
Returns the number of objects contained in this TaskLinkCollection
object.
Read only int
.
public TaskLink add(Task pred, Task succ)
Returns an instance of Finish-Start TaskLink
which has been added to the TaskLinkCollection object.
pred
- Predecessor task.succ
- Successor task.TaskLink
instance which has been added to this object.com.aspose.ms.System.ArgumentNullException
- is thrown when predecessor or successor task is null.public TaskLink add(Task pred, Task succ, int linkType)
Returns an instance of TaskLink
which has been added to the TaskLinkCollection object.
pred
- Predecessor task.succ
- Successor task.linkType
- Link type TaskLinkType
TaskLink
instance which has been added to this object.com.aspose.ms.System.ArgumentNullException
- is thrown when predecessor or successor task is null.public TaskLink add(Task pred, Task succ, int linkType, Duration lag)
Returns an instance of TaskLink
which has been added to the TaskLinkCollection object.
pred
- Predecessor task.succ
- Successor task.linkType
- Link type TaskLinkType
lag
- Link lag Duration
.TaskLink
instance which has been added to this object.com.aspose.ms.System.ArgumentNullException
- is thrown when predecessor or successor task is null.public TaskLink remove(TaskLink link)
Removes task link from a project.
link
- the specified instance of TaskLink
class to remove.TaskLink
class which was removed from this collection.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.