Class ResourceAssignment

Class ResourceAssignment

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

Represents a resource assignment in a project.

public class ResourceAssignment : IEquatable<resourceassignment>

Inheritance

objectResourceAssignment

Implements

IEquatable<resourceassignment>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

ACWP

Gets or sets a value of ACWP.

[EntityField]
public double ACWP { get; set; }

Property Value

double

ActualCost

Gets or sets a value of ActualCost.

[EntityField]
public decimal ActualCost { get; set; }

Property Value

decimal

ActualFinish

Gets or sets a value of ActualFinish.

[EntityField]
public DateTime ActualFinish { get; set; }

Property Value

DateTime

ActualOvertimeCost

Gets or sets a value of ActualOvertimeCost.

[EntityField]
public decimal ActualOvertimeCost { get; set; }

Property Value

decimal

ActualOvertimeWork

Gets or sets a value of ActualOvertimeWork.

[EntityField]
public Duration ActualOvertimeWork { get; set; }

Property Value

Duration

ActualOvertimeWorkProtected

Gets or sets a value of ActualOvertimeWorkProtected.

[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }

Property Value

Duration

ActualStart

Gets or sets a value of ActualStart.

[EntityField]
public DateTime ActualStart { get; set; }

Property Value

DateTime

ActualWork

Gets or sets a value of ActualWork.

[EntityField]
public Duration ActualWork { get; set; }

Property Value

Duration

ActualWorkProtected

Gets or sets a value of ActualWorkProtected.

[EntityField]
public Duration ActualWorkProtected { get; set; }

Property Value

Duration

AssignmentOwner

Gets or sets a value of AssignmentOwner.

[EntityField]
public string AssignmentOwner { get; set; }

Property Value

string

AssignmentOwnerGuid

Gets or sets a value of AssignmentOwnerGuid.

[EntityField]
public string AssignmentOwnerGuid { get; set; }

Property Value

string

BCWP

Gets or sets a value of BCWP.

[EntityField]
public double BCWP { get; set; }

Property Value

double

BCWS

Gets or sets a value of BCWS.

[EntityField]
public double BCWS { get; set; }

Property Value

double

Baselines

Gets AssignmentBaselineCollection object. The collection of baseline values associated with an assignment.

public AssignmentBaselineCollection Baselines { get; }

Property Value

AssignmentBaselineCollection

BookingType

Gets or sets a value of BookingType.

[EntityField]
public BookingType BookingType { get; set; }

Property Value

BookingType

BudgetCost

Gets or sets a value of BudgetCost.

[EntityField]
public decimal BudgetCost { get; set; }

Property Value

decimal

BudgetWork

Gets or sets a value of BudgetWork.

[EntityField]
public Duration BudgetWork { get; set; }

Property Value

Duration

CV

Gets or sets a value of CV.

[EntityField]
public double CV { get; set; }

Property Value

double

Confirmed

Gets or sets a value indicating whether Confirmed is set or not.

[EntityField]
public bool Confirmed { get; set; }

Property Value

bool

Cost

Gets or sets a value of Cost.

[EntityField]
public decimal Cost { get; set; }

Property Value

decimal

CostRateTableType

Gets or sets a value of CostRateTableType.

[EntityField]
public RateType CostRateTableType { get; set; }

Property Value

RateType

CostVariance

Gets or sets a value of CostVariance.

[EntityField]
public double CostVariance { get; set; }

Property Value

double

Created

Gets or sets a value of Created.

[EntityField]
public DateTime Created { get; set; }

Property Value

DateTime

Delay

Gets or sets a value of Delay.

[EntityField]
public Duration Delay { get; set; }

Property Value

Duration

ExtendedAttributes

Gets or sets an instance of the ExtendedAttributeCollection class for this object.

public ExtendedAttributeCollection ExtendedAttributes { get; set; }

Property Value

ExtendedAttributeCollection

Remarks

Reading supported for XML format only.

Finish

Gets or sets a value of Finish.

[EntityField]
public DateTime Finish { get; set; }

Property Value

DateTime

FinishVariance

Gets or sets a value of FinishVariance.

[EntityField]
public Duration FinishVariance { get; set; }

Property Value

Duration

FixedMaterial

Gets or sets a value indicating whether FixedMaterial is set or not.

[EntityField]
public bool FixedMaterial { get; set; }

Property Value

bool

Guid

Gets or sets unique identifier for this assignment.

public Guid? Guid { get; set; }

Property Value

Guid?

HasFixedRateUnits

Gets or sets a value indicating whether HasFixedRateUnits is set or not.

[EntityField]
public bool HasFixedRateUnits { get; set; }

Property Value

bool

Hyperlink

Gets or sets a value of Hyperlink.

[EntityField]
public string Hyperlink { get; set; }

Property Value

string

HyperlinkAddress

Gets or sets a value of HyperlinkAddress.

[EntityField]
public string HyperlinkAddress { get; set; }

Property Value

string

HyperlinkSubAddress

Gets or sets a value of HyperlinkSubAddress.

[EntityField]
public string HyperlinkSubAddress { get; set; }

Property Value

string

LevelingDelay

Gets or sets a value of LevelingDelay.

[EntityField]
public Duration LevelingDelay { get; set; }

Property Value

Duration

LinkedFields

Gets or sets a value indicating whether LinkedFields is set or not.

[EntityField]
public bool LinkedFields { get; set; }

Property Value

bool

Milestone

Gets or sets a value indicating whether Milestone is set or not.

[EntityField]
public bool Milestone { get; set; }

Property Value

bool

NotesRTF

Gets or sets the text notes in RTF format. Supported for MPP formats only.

[EntityField]
public string NotesRTF { get; set; }

Property Value

string

NotesText

Gets or sets notes’ plain text extracted from RTF data.

[EntityField]
public string NotesText { get; set; }

Property Value

string

Overallocated

Gets or sets a value indicating whether Overallocated is set or not.

[EntityField]
public bool Overallocated { get; set; }

Property Value

bool

OvertimeCost

Gets or sets a value of OvertimeCost.

[EntityField]
public decimal OvertimeCost { get; set; }

Property Value

decimal

OvertimeWork

Gets or sets a value of OvertimeWork.

[EntityField]
public Duration OvertimeWork { get; set; }

Property Value

Duration

ParentProject

Gets parent project for this assignment.

public Project ParentProject { get; }

Property Value

Project

PeakUnits

Gets or sets a value of PeakUnits.

[EntityField]
public double PeakUnits { get; set; }

Property Value

double

PercentWorkComplete

Gets or sets a value of PercentWorkComplete.

[EntityField]
public int PercentWorkComplete { get; set; }

Property Value

int

RateScale

Gets or sets a value of RateScale.

[EntityField]
public RateScaleType RateScale { get; set; }

Property Value

RateScaleType

RegularWork

Gets or sets a value of RegularWork.

[EntityField]
public Duration RegularWork { get; set; }

Property Value

Duration

RemainingCost

Gets or sets a value of RemainingCost.

[EntityField]
public decimal RemainingCost { get; set; }

Property Value

decimal

RemainingOvertimeCost

Gets or sets a value of RemainingOvertimeCost.

[EntityField]
public decimal RemainingOvertimeCost { get; set; }

Property Value

decimal

RemainingOvertimeWork

Gets or sets a value of RemainingOvertimeWork.

[EntityField]
public Duration RemainingOvertimeWork { get; set; }

Property Value

Duration

RemainingWork

Gets or sets a value of RemainingWork.

[EntityField]
public Duration RemainingWork { get; set; }

Property Value

Duration

Resource

The resource assigned to a task.

public Resource Resource { get; set; }

Property Value

Resource

ResponsePending

Gets or sets a value indicating whether ResponsePending is set or not.

[EntityField]
public bool ResponsePending { get; set; }

Property Value

bool

Resume

Gets or sets a value of Resume.

[EntityField]
public DateTime Resume { get; set; }

Property Value

DateTime

SV

Gets or sets a value of SV.

[EntityField]
public double SV { get; set; }

Property Value

double

Start

Gets or sets a value of Start.

[EntityField]
public DateTime Start { get; set; }

Property Value

DateTime

StartVariance

Gets or sets a value of StartVariance.

[EntityField]
public Duration StartVariance { get; set; }

Property Value

Duration

Stop

Gets or sets a value of Stop.

[EntityField]
public DateTime Stop { get; set; }

Property Value

DateTime

Summary

Gets or sets a value indicating whether Summary is set or not.

[EntityField]
public bool Summary { get; set; }

Property Value

bool

Task

The task to which a resource is assigned.

public Task Task { get; set; }

Property Value

Task

TimephasedData

Gets or sets the instance of Aspose.Tasks.TimephasedDataCollection class containing elements of Aspose.Tasks.ResourceAssignment.TimephasedData class.

public TimephasedDataCollection TimephasedData { get; set; }

Property Value

TimephasedDataCollection

Uid

Gets or sets a value of Uid.

[EntityField]
public int Uid { get; set; }

Property Value

int

Units

Gets or sets a value of Units.

[EntityField]
public double Units { get; set; }

Property Value

double

UpdateNeeded

Gets or sets a value indicating whether UpdateNeeded is set or not.

[EntityField]
public bool UpdateNeeded { get; set; }

Property Value

bool

VAC

Gets or sets a value of VAC.

[EntityField]
public double VAC { get; set; }

Property Value

double

Work

Gets or sets a value of Work.

[EntityField]
public Duration Work { get; set; }

Property Value

Duration

WorkContour

Gets or sets a value of WorkContour.

[EntityField]
public WorkContourType WorkContour { get; set; }

Property Value

WorkContourType

WorkVariance

Gets or sets a value of WorkVariance.

[EntityField]
public Duration WorkVariance { get; set; }

Property Value

Duration

Methods

Delete()

Deletes resource assignment from project assignments collection.

public void Delete()

Equals(ResourceAssignment)

Returns a value indicating whether this instance is equal to a specified instance of the Aspose.Tasks.ResourceAssignment class.

public bool Equals(ResourceAssignment other)

Parameters

other ResourceAssignment

The specified instance of the Aspose.Tasks.ResourceAssignment class to compare with this instance.

Returns

bool

True if the specified instance of the Aspose.Tasks.ResourceAssignment class has the same UID value as this instance; otherwise, false.

Equals(object)

Returns a value indicating whether this instance is equal to a specified object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

True if o is a ResourceAssignment that assign the same resource and task as this instance; otherwise, false.

Get<t>(Key<t, asnkey="">)

Returns the value to which the property is mapped in this container.

public T Get<t>(Key<t, asnkey=""> key)

Parameters

key Key<t, asnkey="">

the specified property key. Aspose.Tasks.Asn for getting the property key.

Returns

T

the value to which the property is mapped in this container.

Type Parameters

T

the type of the mapped value.

GetHashCode()

Returns a hash code value for the instance of the Aspose.Tasks.ResourceAssignment class.

public override int GetHashCode()

Returns

int

returns a hash code value for this object.

GetTimephasedData(DateTime, DateTime, TimephasedDataType)

Returns the instance Aspose.Tasks.TimephasedDataCollection class containing instances of Aspose.Tasks.ResourceAssignment.TimephasedData class within given start and end dates of specified Aspose.Tasks.TimephasedDataType.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end, TimephasedDataType timephasedType)

Parameters

start DateTime

The start date for the time phased data.

end DateTime

The end date for the time phased data.

timephasedType TimephasedDataType

The type of time phased data (Aspose.Tasks.TimephasedDataType).

Returns

TimephasedDataCollection

returns a list which contains instances of Aspose.Tasks.TimephasedData class.

GetTimephasedData(DateTime, DateTime)

Returns Aspose.Tasks.TimephasedDataCollection object with the instances of Aspose.Tasks.ResourceAssignment.TimephasedData class within given start and end dates of Aspose.Tasks.TimephasedDataType.AssignmentWork.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)

Parameters

start DateTime

The start date for the time phased data.

end DateTime

The end date for the time phased data.

Returns

TimephasedDataCollection

returns a list containing instances of Aspose.Tasks.TimephasedData class.

GetTimephasedWork(DateTime, DateTime, TimephasedDataType)

Gets amount of timephased work for the specified date time interval.

public TimeSpan GetTimephasedWork(DateTime start, DateTime end, TimephasedDataType timephasedDataType)

Parameters

start DateTime

Start of the date time interval.

end DateTime

End of the date time interval.

timephasedDataType TimephasedDataType

Type of the timephased data to use.

Returns

TimeSpan

GetTimephasedWork(DateTime, DateTime)

Gets amount of timephased work for the specified date time interval.

public TimeSpan GetTimephasedWork(DateTime start, DateTime end)

Parameters

start DateTime

Start of the date time interval.

end DateTime

End of the date time interval.

Returns

TimeSpan

MakeTPs(DateTime, TimeSpan, Calendar, List<timephaseddata>, bool, int)

Generates a list of time phased data.

public DateTime MakeTPs(DateTime start, TimeSpan time, Calendar calendar, List<timephaseddata> list, bool isWorking, int type)

Parameters

start DateTime

The specified start date.

time TimeSpan

The specified working time.

calendar Calendar

The specified working calendar.

list List<TimephasedData&gt;

The list of time phased data.

isWorking bool

The specified flag which specifies whether time-phased data is working or not.

type int

The specified time-phased data type.

Returns

DateTime

A maximum date from list or start date if list is empty.

Set<t>(Key<t, asnkey="">, T)

Maps the specified property to the specified value in this container.

public void Set<t>(Key<t, asnkey=""> key, T val)

Parameters

key Key<t, asnkey="">

the specified property key. Aspose.Tasks.Asn for getting the property key.

val T

the value.

Type Parameters

T

the type of the mapped value.

SetMaterialResourceUnits(double, RateScaleType)

Sets units for assignment of a material resource with variable material consumption. The variable material consumption means that as the assignment duration changes, the quantity of materials used changes proportionally.

public void SetMaterialResourceUnits(double units, RateScaleType rateScaleType)

Parameters

units double

Number of units accrued at the time period.

rateScaleType RateScaleType

Time period at which the unit value is accrued.

Remarks

For example, to set ‘123/month’, SetUnitsScaled(123D, RateScaleType.Month) should be called.

Exceptions

InvalidOperationException

If the method is called for assignment of non-material resource.

SplitTask(DateTime, DateTime, Calendar)

Splits task into two parts.

public void SplitTask(DateTime start, DateTime finish, Calendar calendar)

Parameters

start DateTime

The beginning of work interruption to split based on.

finish DateTime

The end of work interruption to split based on.

calendar Calendar

The calendar to split based on.

Exceptions

ArgumentOutOfRangeException

Throws when start date is less than the assignment start date.

ArgumentOutOfRangeException

Throws when finish date is greater than the assignment finish date.

TimephasedDataFromTaskDuration(Calendar)

Generates list of time phased data based on the task duration and the scheduled start date.

public void TimephasedDataFromTaskDuration(Calendar calendar)

Parameters

calendar Calendar

The calendar to generate time phased data from.

ToString()

Returns short string representation of the instance of the Aspose.Tasks.ResourceAssignment class. The exact details of the representation are unspecified and subject to change.

public override string ToString()

Returns

string

short string which represents assignment object. </t,></t,></t,></t></timephaseddata></t,></t,></t,></t></resourceassignment>