TimephasedData
Inheritance: java.lang.Object
public class TimephasedData
Represents a time phased data.
Constructors
Constructor | Description |
---|---|
TimephasedData() | Initializes a new instance of the TimephasedData class. |
Methods
Method | Description |
---|---|
createCostTimephased(int uid, Date start, Date finish, double value, byte type) | Creates and initializes a new instance of the TimephasedData class for cost-based time phased data. |
createCostTimephased(int uid, Date start, Date finish, double value, byte timeUnit, byte type) | Creates and initializes a new instance of the TimephasedData class for cost-based time phased data. |
createUnitTimephased(int uid, Date start, Date finish, double units, byte type) | Creates and initializes a new instance of the TimephasedData class for unit-based time phased data of an assignment of a material resource. |
createWorkTimephased(int uid, Date start, Date finish, double value, byte timeUnit, byte type) | Creates and initializes a new instance of the TimephasedData class for work-based time phased data. |
getFinish() | Gets the finish date of a time phased data period. |
getStart() | Gets the start date of a time phased data period. |
getTimephasedDataType() | Gets the type of a time phased data. |
getUid() | Gets the unique identifier of a time phased data |
getUnit() | Gets the time unit of a time phased data period. |
getValue() | Gets the value per unit of time for a time phased data period. |
getValueToCost() | Gets double instance which represents string value of this object. |
getValueToDuration() | Gets double instance which represents string value of this object. |
getValueToUnits() | Gets double instance which represents string value of this object for unit-based time phased data. |
setFinish(Date value) | Sets the finish date of a time phased data period. |
setStart(Date value) | Sets the start date of a time phased data period. |
setTimephasedDataType(byte value) | Sets the type of a time phased data. |
setUid(int value) | Sets the unique identifier of a time phased data |
setUnit(byte value) | Sets the time unit of a time phased data period. |
setValue(String value) | Sets the value per unit of time for a time phased data period. |
setValueToCost(double value) | double instance which represents string value of this object. |
TimephasedData()
public TimephasedData()
Initializes a new instance of the TimephasedData class.
createCostTimephased(int uid, Date start, Date finish, double value, byte type)
public static TimephasedData createCostTimephased(int uid, Date start, Date finish, double value, byte type)
Creates and initializes a new instance of the TimephasedData class for cost-based time phased data.
Parameters:
Parameter | Type | Description |
---|---|---|
uid | int | UID of the task. |
start | java.util.Date | start date-time. |
finish | java.util.Date | Finish date-time. |
value | double | Cost value. |
type | byte | Time-phased data type. |
Returns: TimephasedData - A instance of the TimephasedData class for cost-based time phased data.
createCostTimephased(int uid, Date start, Date finish, double value, byte timeUnit, byte type)
public static TimephasedData createCostTimephased(int uid, Date start, Date finish, double value, byte timeUnit, byte type)
Creates and initializes a new instance of the TimephasedData class for cost-based time phased data.
Parameters:
Parameter | Type | Description |
---|---|---|
uid | int | UID of the task. |
start | java.util.Date | start date-time. |
finish | java.util.Date | Finish date-time. |
value | double | Cost value. |
timeUnit | byte | Time unit type. |
type | byte | Time-phased data type. |
Returns: TimephasedData - A instance of the TimephasedData class for cost-based time phased data.
createUnitTimephased(int uid, Date start, Date finish, double units, byte type)
public static TimephasedData createUnitTimephased(int uid, Date start, Date finish, double units, byte 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:
Parameter | Type | Description |
---|---|---|
uid | int | UID of the task. |
start | java.util.Date | Start date-time. |
finish | java.util.Date | Finish date-time. |
units | double | Number of units. |
type | byte | Time-phased data type. |
Returns: TimephasedData - A instance of the TimephasedData class for cost-based time phased data.
createWorkTimephased(int uid, Date start, Date finish, double value, byte timeUnit, byte type)
public static TimephasedData createWorkTimephased(int uid, Date start, Date finish, double value, byte timeUnit, byte type)
Creates and initializes a new instance of the TimephasedData class for work-based time phased data.
Parameters:
Parameter | Type | Description |
---|---|---|
uid | int | UID of the task. |
start | java.util.Date | start date-time. |
finish | java.util.Date | Finish date-time. |
value | double | Timespan value. |
timeUnit | byte | Time unit type. |
type | byte | Time-phased data type. |
Returns: TimephasedData - A instance of the TimephasedData class for work-based time phased data.
getFinish()
public final Date getFinish()
Gets the finish date of a time phased data period.
Returns: java.util.Date - 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: java.util.Date - the start date of a time phased data period.
getTimephasedDataType()
public final byte 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: byte - the type of a time phased data.
getUid()
public final int getUid()
Gets the unique identifier of a time phased data
Returns: int - the unique identifier of a time phased data
getUnit()
public final byte getUnit()
Gets the time unit of a time phased data period.
Returns: byte - 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: java.lang.String - the value per unit of time for a time phased data period.
getValueToCost()
public final double getValueToCost()
Gets double
instance which represents string value of this object.
Returns: double - a floating point representation of the object.
getValueToDuration()
public final double getValueToDuration()
Gets double instance which represents string value of this object.
Returns: double - a time span representation of the object.
getValueToUnits()
public final double getValueToUnits()
Gets double
instance which represents string value of this object for unit-based time phased data.
Returns: double - a floating point representation of this object.
setFinish(Date value)
public final void setFinish(Date value)
Sets the finish date of a time phased data period.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | the finish date of a time phased data period. |
setStart(Date value)
public final void setStart(Date value)
Sets the start date of a time phased data period.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | the start date of a time phased data period. |
setTimephasedDataType(byte value)
public final void setTimephasedDataType(byte 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:
Parameter | Type | Description |
---|---|---|
value | byte | the type of a time phased data. |
setUid(int value)
public final void setUid(int value)
Sets the unique identifier of a time phased data
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the unique identifier of a time phased data |
setUnit(byte value)
public final void setUnit(byte value)
Sets the time unit of a time phased data period.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte | the time unit of a time phased data period. |
setValue(String value)
public final void setValue(String value)
Sets the value per unit of time for a time phased data period.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | the value per unit of time for a time phased data period. |
setValueToCost(double value)
public final void setValueToCost(double value)
double
instance which represents string value of this object.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double instance which represents string value of this object. |