com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ResourceAssignmentCollection

    • Method Detail

      • getParentProject

        public Project getParentProject()

        Gets the parent project of the ResourceAssignmentCollection object.

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

        public boolean isReadOnly()

        Determines whether this collection is read only.

        Returns:
        returns true if this collection is read only; otherwise, false.
      • getCount

        public int getCount()

        Returns the number of objects contained in the ResourceAssignmentCollection.

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

        public List<ResourceAssignment> toList()

        Converts the ResourceAssignmentCollection object to a list of ResourceAssignment objects.

        Returns:
        returns a list of ResourceAssignment objects.
      • add

        public 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:
        returns added assignment.
      • add

        public 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:
        returns added assignment.
      • getByUid

        public 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.