-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method |
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 |
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.
|
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() |
Gets the finish date of a time phased data period.
|
Date |
getStart() |
Gets the start date of a time phased data period.
|
int |
getTimephasedDataType() |
Gets the type of a time phased data.
|
int |
getUid() |
Gets the unique identifier of a time phased data
|
int |
getUnit() |
Gets the time unit of a time phased data period.
|
String |
getValue() |
Gets the value per unit of time for a time phased data period.
|
double |
getValueToCost() |
Gets double instance which represents string value of this object.
|
double |
getValueToDuration() |
Gets double instance which represents string value of this object.
|
double |
getValueToUnits() |
Gets double instance which represents string value of this object for unit-based time phased data.
|
void |
setFinish(Date value) |
Sets the finish date of a time phased data period.
|
void |
setStart(Date value) |
Sets the start date of a time phased data period.
|
void |
setTimephasedDataType(int value) |
Sets the type of a time phased data.
|
void |
setUid(int value) |
Sets the unique identifier of a time phased data
|
void |
setUnit(int value) |
Sets the time unit of a time phased data period.
|
void |
setValue(String value) |
Sets the value per unit of time for a time phased data period.
|
-
-
Constructor Detail
-
TimephasedData
public TimephasedData()
-
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.
- Throws:
com.aspose.ms.System.ArgumentException
- If negative cost value was specified.
-
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.
- Throws:
com.aspose.ms.System.ArgumentException
- If negative amount of units was specified.
-
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
- Timespan value.
timeUnit
- Time unit type.
type
- Time-phased data type.
- Returns:
- A instance of the
TimephasedData
class for work-based time phased data.
- Throws:
com.aspose.ms.System.ArgumentException
- If negative work value was specified.