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

      • delete

        public final void delete()

        Deletes resource assignment from project assignments collection.

      • equals

        public final boolean equals(ResourceAssignment other)

        Returns a value indicating whether this instance is equal to a specified instance of the ResourceAssignment class.

        Parameters:
        other - The specified instance of the ResourceAssignment class to compare with this instance.
        Returns:
        <b>True</b> if the specified instance of the ResourceAssignment class has the same Uid value as this instance; otherwise, <b>false</b>.
      • equals

        public boolean equals(Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<ResourceAssignment>
        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with this instance.
        Returns:
        <b>True</b> if o is a ResourceAssignment that assign the same resource and task as this instance; otherwise, <b>false</b>.
      • get

        public final <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. AsnInternal for getting the property key.

        T: the type of the mapped value.

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

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getChildren_IExtendedAttributeParent()
        Gets child resources.
        Returns:
        child resources.
      • getExtendedAttributes

        public final ExtendedAttributeCollection getExtendedAttributes()

        Gets an instance of the ExtendedAttributeCollection class for this object. Read only instance of the ExtendedAttributeCollection class.


        Reading supported for XML format only.

        Returns:
        an instance of the ExtendedAttributeCollection class for this object.
      • setExtendedAttributes

        public final void setExtendedAttributes(ExtendedAttributeCollection value)

        Sets an instance of the ExtendedAttributeCollection class for this object. Read only instance of the ExtendedAttributeCollection class.


        Reading supported for XML format only.

        Parameters:
        value - an instance of the ExtendedAttributeCollection class for this object.
      • getParentProject

        public final Project getParentProject()

        Gets parent project for this assignment.

        Returns:
        parent project for this assignment.
      • hasChildren

        public final boolean hasChildren()
        Gets a value indicating that this resource assignment has children.
        Returns:
        Always false.
      • hashCode

        public int hashCode()

        Returns a hash code value for the instance of the ResourceAssignment class.

        Overrides:
        hashCode in class Object
        Returns:
        returns a hash code value for this object.
      • makeTPs

        public final 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 - The list of time phased data.
        isWorking - The specified flag which specifies whether time-phased data is working or not.
        type - The specified time-phased data type.
        Returns:
        A maximum date from list or start date if list is empty.
      • set

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

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

        Parameters:
        key - the specified property key. AsnInternal for getting the property key.
        val - the value.

        T: the type of the mapped value.

      • set

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

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

        Parameters:
        key - the specified property key. AsnInternal for getting the property key.
        val - the value.
      • splitTask

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

        Splits task into two parts.

        Parameters:
        start - The beginning of work interruption to split based on.
        finish - The end of work interruption to split based on.
        calendar - The calendar to split based on.
      • timephasedDataFromTaskDuration

        public final void timephasedDataFromTaskDuration(Calendar calendar)

        Generates list of time phased data based on the task duration and the scheduled start date.

        Parameters:
        calendar - The calendar to generate time phased data from.
      • toString

        public String toString()

        Returns short string representation of the instance of the ResourceAssignment class. The exact details of the representation are unspecified and subject to change.

        Overrides:
        toString in class Object
        Returns:
        short string which represents assignment object.