com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TimephasedData



  • public class TimephasedData
    extends Object

    Represents a time phased data.

    • Constructor Detail

      • TimephasedData

        public TimephasedData()

        Initializes a new instance of the TimephasedData class.

    • Method Detail

      • createCostTimephased

        public static TimephasedData createCostTimephased(int uid,
                                                          Date start,
                                                          Date finish,
                                                          double value,
                                                          int timeUnit,
                                                          int type)

        Creates and initializes a new instance of the TimephasedData class for cost-based time phased data.

        Parameters:
        uid - UID of the task.
        start - start date-time.
        finish - Finish date-time.
        value - Cost value.
        timeUnit - Time unit type.
        type - Time-phased data type.
        Returns:
        A instance of the TimephasedData class for cost-based time phased data.
      • createUnitTimephased

        public static TimephasedData createUnitTimephased(int uid,
                                                          Date start,
                                                          Date finish,
                                                          double units,
                                                          int type)

        Creates and initializes a new instance of the TimephasedData class for unit-based time phased data of an assignment of a material resource.

        Parameters:
        uid - UID of the task.
        start - Start date-time.
        finish - Finish date-time.
        units - Number of units.
        type - Time-phased data type.
        Returns:
        A instance of the TimephasedData class for cost-based time phased data.
      • createWorkTimephased

        public static TimephasedData createWorkTimephased(int uid,
                                                          Date start,
                                                          Date finish,
                                                          double value,
                                                          int timeUnit,
                                                          int type)

        Creates and initializes a new instance of the TimephasedData class for work-based time phased data.

        Parameters:
        uid - UID of the task.
        start - start date-time.
        finish - Finish date-time.
        value - Duration value in milliseconds.
        timeUnit - Time unit type.
        type - Time-phased data type.
        Returns:
        TimephasedData instance created.
      • getFinish

        public final Date getFinish()
        Returns the finish date of a timephased data period.
        Returns:
        the finish date of a timephased data period (Date).
      • setFinish

        public final void setFinish(Date value)
        Sets the finish date of a timephased data period.
        Parameters:
        value - the finish date of a timephased data period (Date).
      • getStart

        public final Date getStart()
        Returns the start date of a timephased data period.
        Returns:
        the start date of a timephased data period (Date).
      • setStart

        public final void setStart(Date value)
        Sets the start date of a timephased data period.
        Parameters:
        value - the start date of a timephased data period (Date).
      • getTimephasedDataType

        public final int getTimephasedDataType()
        Returns the type of a time phased data.
        Returns:
        The type of a timephased data (TimephasedDataType).
      • setTimephasedDataType

        public final void setTimephasedDataType(int value)

        Sets the type of a timephased data. Read/write TimephasedDataType.


        Value(getValue()/setValue(String)) property will be cleared, if it is not suitable for type, specified here.
        Parameters:
        value - the type of a time phased data.
      • getUid

        public final int getUid()

        Gets the unique identifier of a time phased data Read/write int.

        Returns:
        the unique identifier of a time phased data Read/write int.
      • setUid

        public final void setUid(int value)

        Sets the unique identifier of a time phased data Read/write int.

        Parameters:
        value - the unique identifier of a time phased data Read/write int.
      • getUnit

        public final int getUnit()

        Gets the time unit of a time phased data period. Read/write TimeUnitType.

        Returns:
        the time unit of a time phased data period.
      • setUnit

        public final void setUnit(int value)

        Sets the time unit of a time phased data period. Read/write TimeUnitType.

        Parameters:
        value - the time unit of a time phased data period.
      • getValueToCost

        public final double getValueToCost()

        Gets double instance which represents string value of this object.

        Returns:
        double representation of this object.
      • getValueToDuration

        public final double getValueToDuration()

        Gets double instance which represents string value of this object.

        Returns:
        double representation of this object.
      • getValueToUnits

        public final double getValueToUnits()

        Gets double instance which represents string value of this object for unit-based time phased data.

        Returns:
        double representation of this object.