com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TaskLinkCollection

    • Method Detail

      • 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.
      • getParentProject

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

        public 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 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 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 List<TaskLink> toList()

        Converts the TaskLinkCollection object to a list of TaskLink objects.

        Returns:
        returns a list of TaskLink objects.