Class TimephasedData

Class TimephasedData

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

Represents a time phased data.

[ClassInterface(ClassInterfaceType.AutoDual)]
public class TimephasedData

Inheritance

objectTimephasedData

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

DateTime

Start

Gets or sets the start date of a time phased data period.

public DateTime Start { get; set; }

Property Value

DateTime

TimephasedDataType

Gets or sets the type of a time phased data.

public TimephasedDataType TimephasedDataType { get; set; }

Property Value

TimephasedDataType

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

int

Unit

Gets or sets the time unit of a time phased data period.

public TimeUnitType Unit { get; set; }

Property Value

TimeUnitType

Value

Gets or sets the value per unit of time for a time phased data period.

public string Value { get; set; }

Property Value

string

Exceptions

TasksException

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

double

ValueToDuration

Gets System.TimeSpan instance which represents string value of this object.

public TimeSpan ValueToDuration { get; }

Property Value

TimeSpan

ValueToUnits

Gets System.Double instance which represents string value of this object for unit-based time phased data.

public double ValueToUnits { get; }

Property Value

double

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

TimephasedData

A instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.

Exceptions

ArgumentException

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

TimephasedData

A instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.

Exceptions

ArgumentException

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

TimephasedData

A instance of the Aspose.Tasks.TimephasedData class for cost-based time phased data.

Exceptions

ArgumentException

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

TimephasedData

A instance of the Aspose.Tasks.TimephasedData class for work-based time phased data.

Exceptions

ArgumentException

If negative work value was specified.