com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ResourceAssignmentCollection

    • Method Detail

      • add

        public final ResourceAssignment add(Task task,
                                            Resource resource,
                                            double units)

        Adds new assignment to the ResourceAssignmentCollection.

        Parameters:
        task - A task to be assigned.
        resource - A resource to be assigned.
        units - The number of units for a new assignment.
        Returns:
        Added assignment.
      • add

        public final ResourceAssignment add(Task task,
                                            Resource resource)

        Adds new assignment to the ResourceAssignmentCollection.

        Parameters:
        task - A task to be assigned.
        resource - A resource to be assigned.
        Returns:
        Added assignment.
      • getByUid

        public final ResourceAssignment getByUid(int uid)

        Returns an assignment with the specified uid. O(1) complexity operation.

        Parameters:
        uid - The specified uid.
        Returns:
        ResourceAssignment with the specified uid if present; otherwise, null.
      • getParentProject

        public Project getParentProject()

        Gets the parent project of the ResourceAssignmentCollection object.

        Returns:
        returns the parent project for this collection.
      • isReadOnly

        public final boolean isReadOnly()

        Gets a value indicating whether this collection is read only.

        Returns:
        a value indicating whether this collection is read only.
      • sort

        public void sort(Comparator<? super T> c)
        Parameters:
        c -