com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ResourceAssignment

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<ResourceAssignment>


    public class ResourceAssignment
    extends Object
    implements com.aspose.ms.System.IEquatable<ResourceAssignment>

    Represents a resource assignment in a project.

    • Method Detail

      • getBaselines

        public AssignmentBaselineCollection getBaselines()

        Returns AssignmentBaselineCollection object. The collection of baseline values associated with an assignment. Read only AssignmentBaselineCollection instance.

        Returns:
        returns a collection of AssignmentBaseline values for this object.
      • getExtendedAttributes

        public ExtendedAttributeCollection getExtendedAttributes()

        Returns instance of the ExtendedAttributeCollection class for this object. Read only instance of the ExtendedAttributeCollection class. Reading supported for XML format only.

        Returns:
        returns a collection of ExtendedAttribute values for this object.
      • setExtendedAttributes

        public void setExtendedAttributes(ExtendedAttributeCollection value)
        Sets a collection of ExtendedAttribute values for this ResourceAssignment.
        Parameters:
        value - a collection of ExtendedAttribute values for this ResourceAssignment ExtendedAttributeCollection.
      • getParentProject

        public Project getParentProject()

        Returns parent project for this assignment.

        Returns:
        returns a parent project for this object.
      • getTimephasedData

        public TimephasedDataCollection getTimephasedData()

        Returns the instance of TimephasedDataCollection class containing elements of TimephasedData class.

        Returns:
        a collection of TimephasedData valued for this object.
      • setTimephasedData

        public void setTimephasedData(TimephasedDataCollection value)
        Sets TimephasedDataCollection for this resource assignment.
        Parameters:
        value - the specified collection of timephased data values.
      • delete

        public void delete()

        Deletes resource assignment from project assignments collection.

      • equals

        public boolean equals(ResourceAssignment other)

        Returns a value indicating whether this instance is equal to a specified ResourceAssignment object.

        Parameters:
        other - the specified object to compare with this instance.
        Returns:
        <b>True</b> if the specified ResourceAssignment object has the same resource and task as this instance; otherwise, <b>false</b>.
      • get

        public <T> T get(Key<T,Integer> key)

        Returns the value to which the property is mapped in this container.

        Parameters:
        key - the specified property key. Asn for getting the property key.
        Returns:
        the value to which the property is mapped in this container.
      • getTimephasedData

        public TimephasedDataCollection getTimephasedData(Date start,
                                                          Date end,
                                                          int timephasedType)

        Returns TimephasedDataCollection object with time phased data instances within given start and end dates of specified TimephasedDataType.

        Parameters:
        start - The start date for the timephased data.
        end - The end date for the timephased data.
        timephasedType - The type of timephased data (Aspose.Tasks.TimephasedDataType).
        Returns:
        returns a collection of TimephasedData values within the specified start and end dates of the specified type.
      • getTimephasedData

        public TimephasedDataCollection getTimephasedData(Date start,
                                                          Date end)

        Returns TimephasedDataCollection object with TimephasedData values within given start and end dates of TimephasedDataType.AssignmentWork.

        Parameters:
        start - The specified start date for the timephased data.
        end - The specified end date for the timephased data.
        Returns:
        List of Aspose.Tasks.TimephasedData to be filled in.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • makeTPs

        public Date makeTPs(Date start,
                            double time,
                            Calendar calendar,
                            List<TimephasedData> outTP,
                            boolean isWorking,
                            int type)

        Generates a list of time phased data.

        Parameters:
        start - the specified start date.
        time - the specified working time.
        calendar - the specified working calendar.
        outTP - result.
        isWorking - specifies whether timephased data values are for working days.
        type - the specified TimephasedData type.
        Returns:
        finish date time.
      • set

        public <T> void set(Key<T,Integer> key,
                            T val)

        Maps the specified property to the specified value in this container.

        Type Parameters:
        T - the type of the mapped value.
        Parameters:
        key - the specified property key. Asn for getting the property key.
        val - the value.
      • splitTask

        public void splitTask(Date start,
                              Date finish,
                              Calendar calendar)

        Splits task into two parts.

        Parameters:
        start - the beginning of work interruption.
        finish - the end of work interruption.
        calendar - the specified calendar.
      • timephasedDataFromTaskDuration

        public void timephasedDataFromTaskDuration(Calendar calendar)

        Generates a list of TimephasedData values based on the task duration and the scheduled start date.

        Parameters:
        calendar - the specified calendar to generate a list of TimephasedData values from.