com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TaskLinkCollection

    • Method Detail

      • add

        public final TaskLink add(Task pred,
                                  Task succ)

        Returns an instance of Finish-Start TaskLink which has been added to the TaskLinkCollection object.

        Parameters:
        pred - Predecessor task.
        succ - Successor task.
        Returns:
        TaskLink instance which has been added to this object.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If any of input tasks is equal to null then ArgumentNullException will be thrown.
      • add

        public final TaskLink add(Task pred,
                                  Task succ,
                                  int linkType)

        Returns an instance of TaskLink which has been added to the TaskLinkCollection object.

        Parameters:
        pred - Predecessor task.
        succ - Successor task.
        linkType - Link type TaskLinkType
        Returns:
        TaskLink instance which has been added to this object.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If any of input tasks is equal to null then ArgumentNullException will be thrown.
      • add

        public final TaskLink add(Task pred,
                                  Task succ,
                                  int linkType,
                                  Duration lag)

        Returns an instance of TaskLink which has been added to the TaskLinkCollection object.

        Parameters:
        pred - Predecessor task.
        succ - Successor task.
        linkType - Link type TaskLinkType
        lag - Link lag Duration.
        Returns:
        TaskLink instance which has been added to this object.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If any of input tasks is equal to null then ArgumentNullException will be thrown.
      • getParentProject

        public final Project getParentProject()
        Gets the parent project of the ResourceAssignmentCollection object.
        Returns:
        parent Project for this object.
      • remove

        public final boolean remove(Object link)
        Removes task link from a project.
        Specified by:
        remove in interface Collection<TaskLink>
        Specified by:
        remove in interface List<TaskLink>
        Overrides:
        remove in class AbstractCollection<TaskLink>
        Parameters:
        link - the specified instance of TaskLink class to remove.
        Returns:
        returns the instance of TaskLink class which was removed from this collection.
      • remove

        public final TaskLink remove(int index)
        Removes the element at the specified position in this collection and returns the element that was removed from the collection.
        Specified by:
        remove in interface List<TaskLink>
        Overrides:
        remove in class AbstractList<TaskLink>
        Parameters:
        index - the specified position to remove the element at.
        Returns:
        the element that was removed from the collection.
      • size

        public final int size()

        Returns the number of objects contained in this TaskLinkCollection object. Read only int.

        Specified by:
        size in interface Collection<TaskLink>
        Specified by:
        size in interface List<TaskLink>
        Specified by:
        size in class AbstractCollection<TaskLink>
        Returns:
        returns the number of objects contained in this collection.
      • toList

        public final List<TaskLink> toList()

        Converts the TaskLinkCollection object to a list of TaskLink objects.

        Returns:
        List of TaskLink objects.