Class TimephasedData
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a time phased data.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class TimephasedData
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TimephasedData()
Initializes a new instance of the Aspose.Tasks.TimephasedData class.
public TimephasedData()
Properties
Finish
Gets or sets the finish date of a time phased data period.
public DateTime Finish { get; set; }
Property Value
Start
Gets or sets the start date of a time phased data period.
public DateTime Start { get; set; }
Property Value
TimephasedDataType
Gets or sets the type of a time phased data.
public TimephasedDataType TimephasedDataType { get; set; }
Property Value
Remarks
Aspose.Tasks.TimephasedData.Value property will be cleared, if it is not suitable for type, specified here.
Uid
Gets or sets the unique identifier of a time phased data
public int Uid { get; set; }
Property Value
Unit
Gets or sets the time unit of a time phased data period.
public TimeUnitType Unit { get; set; }
Property Value
Value
Gets or sets the value per unit of time for a time phased data period.
public string Value { get; set; }
Property Value
Exceptions
When value is incorrect for specified Aspose.Tasks.TimephasedData.TimephasedDataType or have negative value.
ValueToCost
Gets System.Double instance which represents string value of this object.
public double ValueToCost { get; set; }
Property Value
ValueToDuration
Gets System.TimeSpan instance which represents string value of this object.
public TimeSpan ValueToDuration { get; }
Property Value
ValueToUnits
Gets System.Double instance which represents string value of this object for unit-based time phased data.
public double ValueToUnits { get; }
Property Value
Methods
CreateCostTimephased(int, DateTime, DateTime, double, TimeUnitType, TimephasedDataType)
Creates and initializes a new instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.
public static TimephasedData CreateCostTimephased(int uid, DateTime start, DateTime finish, double value, TimeUnitType timeUnit, TimephasedDataType type)
Parameters
uid
int
UID of the task.
start
DateTime
start date-time.
finish
DateTime
Finish date-time.
value
double
Cost value.
timeUnit
TimeUnitType
Time unit type.
type
TimephasedDataType
Time-phased data type.
Returns
A instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.
Exceptions
If negative cost value was specified.
CreateCostTimephased(int, DateTime, DateTime, double, TimephasedDataType)
Creates and initializes a new instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.
public static TimephasedData CreateCostTimephased(int uid, DateTime start, DateTime finish, double value, TimephasedDataType type)
Parameters
uid
int
UID of the task.
start
DateTime
start date-time.
finish
DateTime
Finish date-time.
value
double
Cost value.
type
TimephasedDataType
Time-phased data type.
Returns
A instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.
Exceptions
If negative cost value was specified.
CreateUnitTimephased(int, DateTime, DateTime, double, TimephasedDataType)
Creates and initializes a new instance of the Aspose.Tasks.TimephasedData class for unit-based time phased data of an assignment of a material resource.
public static TimephasedData CreateUnitTimephased(int uid, DateTime start, DateTime finish, double units, TimephasedDataType type)
Parameters
uid
int
UID of the task.
start
DateTime
Start date-time.
finish
DateTime
Finish date-time.
units
double
Number of units.
type
TimephasedDataType
Time-phased data type.
Returns
A instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.
Exceptions
If negative amount of units was specified.
CreateWorkTimephased(int, DateTime, DateTime, TimeSpan, TimeUnitType, TimephasedDataType)
Creates and initializes a new instance of the Aspose.Tasks.TimephasedData class for work-based time phased data.
public static TimephasedData CreateWorkTimephased(int uid, DateTime start, DateTime finish, TimeSpan value, TimeUnitType timeUnit, TimephasedDataType type)
Parameters
uid
int
UID of the task.
start
DateTime
start date-time.
finish
DateTime
Finish date-time.
value
TimeSpan
Timespan value.
timeUnit
TimeUnitType
Time unit type.
type
TimephasedDataType
Time-phased data type.
Returns
A instance of the Aspose.Tasks.TimephasedData class for work-based time phased data.
Exceptions
If negative work value was specified.