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 com.aspose.tasks.TimephasedData class.

    • Method Detail

      • getUid

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

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

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

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

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

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

        public 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 void setUnit(int value)

        The time unit of a timephased data period.

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

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

        public void setTimephasedDataType(int value)
        Sets the type of a timephased data.
        Parameters:
        value - The type of a time phased data (TimephasedDataType).
      • getValue

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

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

        public double getValueToDuration()
        Returns duration which represents string value of this object.
        Returns:
        duration of this object.
      • 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 Aspose.Tasks.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.
      • 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:
        TimephasedData instance created.