Class TimephasedData
- java.lang.Object
-
- com.aspose.tasks.TimephasedData
-
public class TimephasedData extends Object
Represents a time phased data.
-
-
Constructor Summary
Constructors Constructor Description TimephasedData()Initializes a new instance of theTimephasedDataclass.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimephasedDatacreateCostTimephased(int uid, Date start, Date finish, double value, int timeUnit, int type)Creates and initializes a new instance of theTimephasedDataclass for cost-based time phased data.static TimephasedDatacreateUnitTimephased(int uid, Date start, Date finish, double units, int type)Creates and initializes a new instance of theTimephasedDataclass for unit-based time phased data of an assignment of a material resource.static TimephasedDatacreateWorkTimephased(int uid, Date start, Date finish, double value, int timeUnit, int type)Creates and initializes a new instance of theTimephasedDataclass for work-based time phased data.DategetFinish()Gets the finish date of a time phased data period.DategetStart()Gets the start date of a time phased data period.intgetTimephasedDataType()Gets the type of a time phased data.intgetUid()Gets the unique identifier of a time phased dataintgetUnit()Gets the time unit of a time phased data period.StringgetValue()Gets the value per unit of time for a time phased data period.doublegetValueToCost()Getsdoubleinstance which represents string value of this object.doublegetValueToDuration()Getsdoubleinstance which represents string value of this object.doublegetValueToUnits()Getsdoubleinstance which represents string value of this object for unit-based time phased data.voidsetFinish(Date value)Sets the finish date of a time phased data period.voidsetStart(Date value)Sets the start date of a time phased data period.voidsetTimephasedDataType(int value)Sets the type of a time phased data.voidsetUid(int value)Sets the unique identifier of a time phased datavoidsetUnit(int value)Sets the time unit of a time phased data period.voidsetValue(String value)Sets the value per unit of time for a time phased data period.
-
-
-
Constructor Detail
-
TimephasedData
public TimephasedData()
Initializes a new instance of the
TimephasedDataclass.
-
-
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
TimephasedDataclass 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
TimephasedDataclass 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
TimephasedDataclass 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
TimephasedDataclass 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
TimephasedDataclass 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
TimephasedDataclass for work-based time phased data.
-
getFinish
public final Date getFinish()
Gets the finish date of a time phased data period.
- Returns:
- the finish date of a time phased data period.
-
setFinish
public final void setFinish(Date value)
Sets the finish date of a time phased data period.
- Parameters:
value- the finish date of a time phased data period.
-
getStart
public final Date getStart()
Gets the start date of a time phased data period.
- Returns:
- the start date of a time phased data period.
-
setStart
public final void setStart(Date value)
Sets the start date of a time phased data period.
- Parameters:
value- the start date of a time phased data period.
-
getTimephasedDataType
public final int getTimephasedDataType()
Gets the type of a time phased data.
Value(getValue()/setValue(String)) property will be cleared, if it is not suitable for type, specified here.- Returns:
- the type of a time phased data.
-
setTimephasedDataType
public final void setTimephasedDataType(int value)
Sets the type of a time phased data.
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
- Returns:
- the unique identifier of a time phased data
-
setUid
public final void setUid(int value)
Sets the unique identifier of a time phased data
- Parameters:
value- the unique identifier of a time phased data
-
getUnit
public final int getUnit()
Gets the time unit of a time phased data period.
- 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.
- Parameters:
value- the time unit of a time phased data period.
-
getValue
public final String getValue()
Gets the value per unit of time for a time phased data period.
- Returns:
- the value per unit of time for a time phased data period.
- Throws:
TasksException- When value is incorrect for specifiedTimephasedDataType(getTimephasedDataType()/setTimephasedDataType(int)).
-
setValue
public final void setValue(String value)
Sets the value per unit of time for a time phased data period.
- Parameters:
value- the value per unit of time for a time phased data period.- Throws:
TasksException- When value is incorrect for specifiedTimephasedDataType(getTimephasedDataType()/setTimephasedDataType(int)).
-
getValueToCost
public final double getValueToCost()
Gets
doubleinstance which represents string value of this object.- Returns:
- a floating point representation of the object.
-
getValueToDuration
public final double getValueToDuration()
Gets
doubleinstance which represents string value of this object.- Returns:
- a time span representation of the object.
-
getValueToUnits
public final double getValueToUnits()
Gets
doubleinstance which represents string value of this object for unit-based time phased data.- Returns:
- a floating point representation of this object.
-
-