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.
      • 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.
        Parameters:
        value - The type of a time phased data (TimephasedDataType).
      • getUid

        public final int getUid()
        Returns the unique identifier of a time phased data
        Returns:
        The unique identifier.
      • setUid

        public final void setUid(int value)
        Sets the unique identifier of a timephased data.
        Parameters:
        value - The unique identifier.
      • getUnit

        public final int getUnit()

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

        Returns:
        The time unit of a timephased data period (TimeUnitType).
      • setUnit

        public final void setUnit(int value)

        The time unit of a timephased data period.

        Parameters:
        value - the time unit of a timephased data period (TimeUnitType).
      • getValue

        public final String getValue()
        Returns the value per unit of time for a time phased data period.
        Returns:
        The value per unit of time.
      • setValue

        public final void setValue(String value)
        Sets the value per unit of time for a timephased data period.
        Parameters:
        value - The value per unit of time.
      • getValueToCost

        public final double getValueToCost()
        Returns double instance which represents string value of this object.
        Returns:
        double representation of this object.
      • getValueToDuration

        public final double getValueToDuration()
        Returns duration which represents string value of this object.
        Returns:
        duration of this object.