com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TaskLinkCollection

    • Method Detail

      • getParentProject

        public Project getParentProject()

        Gets the parent project of the ResourceAssignmentCollection object.

        Returns:
        parent Project for this object.
      • getCount

        public int getCount()

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

        Returns:
        returns the number of objects contained in this collection.
      • add

        public 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 - is thrown when predecessor or successor task is null.
      • add

        public 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 - is thrown when predecessor or successor task is null.
      • add

        public 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 - is thrown when predecessor or successor task is null.
      • remove

        public TaskLink remove(TaskLink link)

        Removes task link from a project.

        Parameters:
        link - the specified instance of TaskLink class to remove.
        Returns:
        returns the instance of TaskLink class which was removed from this collection.
      • toList

        public List<TaskLink> toList()

        Converts the TaskLinkCollection object to a list of TaskLink objects.

        Returns:
        returns a list of TaskLink objects.