public class TimephasedData extends Object
Represents a time phased data.
Constructor and Description |
---|
TimephasedData()
Initializes a new instance of the
TimephasedData class. |
Modifier and Type | Method and Description |
---|---|
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. |
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. |
Date |
getFinish()
Returns the finish date of a timephased data period.
|
Date |
getStart()
Returns the start date of a timephased data period.
|
int |
getTimephasedDataType()
Returns the type of a time phased data.
|
int |
getUid()
Returns the unique identifier of a time phased data
|
int |
getUnit()
The time unit of a time phased data period.
|
String |
getValue()
Returns the value per unit of time for a time phased data period.
|
double |
getValueToCost()
Returns
double instance which represents string value of this object. |
double |
getValueToDuration()
Returns duration which represents string value of this object.
|
void |
setFinish(Date value)
Sets the finish date of a timephased data period.
|
void |
setStart(Date value)
Sets the start date of a timephased data period.
|
void |
setTimephasedDataType(int value)
Sets the type of a timephased data.
|
void |
setUid(int value)
Sets the unique identifier of a timephased data.
|
void |
setUnit(int value)
The time unit of a timephased data period.
|
void |
setValue(String value)
Sets the value per unit of time for a timephased data period.
|
public TimephasedData()
Initializes a new instance of the TimephasedData
class.
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.
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.TimephasedData
class for cost-based time phased data.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.
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.TimephasedData
instance created.public final Date getFinish()
Date
).public final void setFinish(Date value)
value
- the finish date of a timephased data period (Date
).public final Date getStart()
Date
).public final void setStart(Date value)
value
- the start date of a timephased data period (Date
).public final int getTimephasedDataType()
TimephasedDataType
).public final void setTimephasedDataType(int value)
value
- The type of a time phased data (TimephasedDataType
).public final int getUid()
public final void setUid(int value)
value
- The unique identifier.public final int getUnit()
The time unit of a time phased data period.
Read/write TimeUnitType
.
TimeUnitType
).public final void setUnit(int value)
The time unit of a timephased data period.
value
- the time unit of a timephased data period (TimeUnitType
).public final String getValue()
public final void setValue(String value)
value
- The value per unit of time.public final double getValueToCost()
double
instance which represents string value of this object.double
representation of this object.public final double getValueToDuration()
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.