Aspose.Tasks for C++
Aspose::Tasks::ResourceAssignment Class Reference

Represents a resource assignment in a project. More...

#include <ResourceAssignment.h>

Inherits Aspose::Tasks::IContainer< K >, IEquatable< System::SharedPtr< Aspose::Tasks::ResourceAssignment > >, Aspose::Tasks::IExtendedAttributeParent, Aspose::Tasks::IEntityWithNotes, and Aspose::Tasks::IEntityWithHyperlink.

Public Member Functions

const System::SharedPtr
< Aspose::Tasks::Task > & 
get_Task () const
 The task to which a resource is assigned. More...
 
void set_Task (const System::SharedPtr< Aspose::Tasks::Task > &value)
 The task to which a resource is assigned. More...
 
const System::SharedPtr
< Aspose::Tasks::Resource > & 
get_Resource () const
 The resource assigned to a task. More...
 
void set_Resource (const System::SharedPtr< Aspose::Tasks::Resource > &value)
 The resource assigned to a task. More...
 
System::Nullable< System::Guid > get_Guid () const
 Gets unique identifier for this assignment. More...
 
void set_Guid (System::Nullable< System::Guid > value)
 Sets unique identifier for this assignment. More...
 
const System::SharedPtr
< Project > & 
get_ParentProject () const override
 Gets parent project for this assignment. More...
 
System::SharedPtr
< AssignmentBaselineCollection
get_Baselines ()
 Gets AssignmentBaselineCollection object. The collection of baseline values associated with an assignment. More...
 
System::SharedPtr
< ExtendedAttributeCollection
get_ExtendedAttributes () override
 Gets an instance of the ExtendedAttributeCollection class for this object. More...
 
void set_ExtendedAttributes (const System::SharedPtr< ExtendedAttributeCollection > &value)
 Sets an instance of the ExtendedAttributeCollection class for this object. More...
 
System::SharedPtr
< TimephasedDataCollection
get_TimephasedData ()
 Gets the instance of TimephasedDataCollection class containing elements of TimephasedData class. More...
 
void set_TimephasedData (const System::SharedPtr< TimephasedDataCollection > &value)
 Sets the instance of TimephasedDataCollection class containing elements of TimephasedData class. More...
 
int32_t get_Uid ()
 Gets a value of Uid. More...
 
void set_Uid (int32_t value)
 Sets a value of Uid. More...
 
int32_t get_PercentWorkComplete ()
 Gets a value of PercentWorkComplete. More...
 
void set_PercentWorkComplete (int32_t value)
 Sets a value of PercentWorkComplete. More...
 
System::Decimal get_ActualCost ()
 Gets a value of ActualCost. More...
 
void set_ActualCost (System::Decimal value)
 Sets a value of ActualCost. More...
 
System::DateTime get_ActualFinish ()
 Gets a value of ActualFinish. More...
 
void set_ActualFinish (System::DateTime value)
 Sets a value of ActualFinish. More...
 
System::Decimal get_ActualOvertimeCost ()
 Gets a value of ActualOvertimeCost. More...
 
void set_ActualOvertimeCost (System::Decimal value)
 Sets a value of ActualOvertimeCost. More...
 
System::DateTime get_ActualStart ()
 Gets a value of ActualStart. More...
 
void set_ActualStart (System::DateTime value)
 Sets a value of ActualStart. More...
 
Duration get_ActualWork ()
 Gets a value of ActualWork. More...
 
void set_ActualWork (Duration value)
 Sets a value of ActualWork. More...
 
double get_ACWP ()
 Gets a value of ACWP. More...
 
void set_ACWP (double value)
 Sets a value of ACWP. More...
 
bool get_Confirmed ()
 Gets a value indicating whether Confirmed is set or not. More...
 
void set_Confirmed (bool value)
 Sets a value indicating whether Confirmed is set or not. More...
 
System::Decimal get_Cost ()
 Gets a value of Cost. More...
 
void set_Cost (System::Decimal value)
 Sets a value of Cost. More...
 
RateType get_CostRateTableType ()
 Gets a value of CostRateTableType. More...
 
void set_CostRateTableType (RateType value)
 Sets a value of CostRateTableType. More...
 
double get_CostVariance ()
 Gets a value of CostVariance. More...
 
void set_CostVariance (double value)
 Sets a value of CostVariance. More...
 
double get_CV ()
 Gets a value of CV. More...
 
void set_CV (double value)
 Sets a value of CV. More...
 
Duration get_Delay ()
 Gets a value of Delay. More...
 
void set_Delay (Duration value)
 Sets a value of Delay. More...
 
System::DateTime get_Finish ()
 Gets a value of Finish. More...
 
void set_Finish (System::DateTime value)
 Sets a value of Finish. More...
 
Duration get_FinishVariance ()
 Gets a value of FinishVariance. More...
 
void set_FinishVariance (Duration value)
 Sets a value of FinishVariance. More...
 
System::String get_Hyperlink () override
 Gets a value of Hyperlink. More...
 
void set_Hyperlink (System::String value) override
 Sets a value of Hyperlink. More...
 
System::String get_HyperlinkAddress () override
 Gets a value of HyperlinkAddress. More...
 
void set_HyperlinkAddress (System::String value) override
 Sets a value of HyperlinkAddress. More...
 
System::String get_HyperlinkSubAddress () override
 Gets a value of HyperlinkSubAddress. More...
 
void set_HyperlinkSubAddress (System::String value) override
 Sets a value of HyperlinkSubAddress. More...
 
Duration get_WorkVariance ()
 Gets a value of WorkVariance. More...
 
void set_WorkVariance (Duration value)
 Sets a value of WorkVariance. More...
 
bool get_HasFixedRateUnits ()
 Gets a value indicating whether HasFixedRateUnits is set or not. More...
 
void set_HasFixedRateUnits (bool value)
 Sets a value indicating whether HasFixedRateUnits is set or not. More...
 
bool get_FixedMaterial ()
 Gets a value indicating whether FixedMaterial is set or not. More...
 
void set_FixedMaterial (bool value)
 Sets a value indicating whether FixedMaterial is set or not. More...
 
Duration get_LevelingDelay ()
 Gets a value of LevelingDelay. More...
 
void set_LevelingDelay (Duration value)
 Sets a value of LevelingDelay. More...
 
bool get_LinkedFields ()
 Gets a value indicating whether LinkedFields is set or not. More...
 
void set_LinkedFields (bool value)
 Sets a value indicating whether LinkedFields is set or not. More...
 
bool get_Milestone ()
 Gets a value indicating whether Milestone is set or not. More...
 
void set_Milestone (bool value)
 Sets a value indicating whether Milestone is set or not. More...
 
System::String get_NotesText () override
 Gets notes' plain text extracted from RTF data. More...
 
void set_NotesText (System::String value) override
 Sets notes' plain text extracted from RTF data. More...
 
System::String get_NotesRTF () override
 Gets the text notes in RTF format. More...
 
void set_NotesRTF (System::String value) override
 Sets the text notes in RTF format. More...
 
bool get_Overallocated ()
 Gets a value indicating whether Overallocated is set or not. More...
 
void set_Overallocated (bool value)
 Sets a value indicating whether Overallocated is set or not. More...
 
System::Decimal get_OvertimeCost ()
 Gets a value of OvertimeCost. More...
 
void set_OvertimeCost (System::Decimal value)
 Sets a value of OvertimeCost. More...
 
Duration get_OvertimeWork ()
 Gets a value of OvertimeWork. More...
 
void set_OvertimeWork (Duration value)
 Sets a value of OvertimeWork. More...
 
double get_PeakUnits ()
 Gets a value of PeakUnits. More...
 
void set_PeakUnits (double value)
 Sets a value of PeakUnits. More...
 
Duration get_RegularWork ()
 Gets a value of RegularWork. More...
 
void set_RegularWork (Duration value)
 Sets a value of RegularWork. More...
 
System::Decimal get_RemainingCost ()
 Gets a value of RemainingCost. More...
 
void set_RemainingCost (System::Decimal value)
 Sets a value of RemainingCost. More...
 
System::Decimal get_RemainingOvertimeCost ()
 Gets a value of RemainingOvertimeCost. More...
 
void set_RemainingOvertimeCost (System::Decimal value)
 Sets a value of RemainingOvertimeCost. More...
 
Duration get_RemainingOvertimeWork ()
 Gets a value of RemainingOvertimeWork. More...
 
void set_RemainingOvertimeWork (Duration value)
 Sets a value of RemainingOvertimeWork. More...
 
Duration get_RemainingWork ()
 Gets a value of RemainingWork. More...
 
void set_RemainingWork (Duration value)
 Sets a value of RemainingWork. More...
 
bool get_ResponsePending ()
 Gets a value indicating whether ResponsePending is set or not. More...
 
void set_ResponsePending (bool value)
 Sets a value indicating whether ResponsePending is set or not. More...
 
System::DateTime get_Start ()
 Gets a value of Start. More...
 
void set_Start (System::DateTime value)
 Sets a value of Start. More...
 
System::DateTime get_Stop ()
 Gets a value of Stop. More...
 
void set_Stop (System::DateTime value)
 Sets a value of Stop. More...
 
System::DateTime get_Resume ()
 Gets a value of Resume. More...
 
void set_Resume (System::DateTime value)
 Sets a value of Resume. More...
 
Duration get_StartVariance ()
 Gets a value of StartVariance. More...
 
void set_StartVariance (Duration value)
 Sets a value of StartVariance. More...
 
bool get_Summary ()
 Gets a value indicating whether Summary is set or not. More...
 
void set_Summary (bool value)
 Sets a value indicating whether Summary is set or not. More...
 
double get_SV ()
 Gets a value of SV. More...
 
void set_SV (double value)
 Sets a value of SV. More...
 
double get_Units ()
 Gets a value of Units. More...
 
void set_Units (double value)
 Sets a value of Units. More...
 
bool get_UpdateNeeded ()
 Gets a value indicating whether UpdateNeeded is set or not. More...
 
void set_UpdateNeeded (bool value)
 Sets a value indicating whether UpdateNeeded is set or not. More...
 
double get_VAC ()
 Gets a value of VAC. More...
 
void set_VAC (double value)
 Sets a value of VAC. More...
 
Duration get_Work ()
 Gets a value of Work. More...
 
void set_Work (Duration value)
 Sets a value of Work. More...
 
WorkContourType get_WorkContour ()
 Gets a value of WorkContour. More...
 
void set_WorkContour (WorkContourType value)
 Sets a value of WorkContour. More...
 
double get_BCWS ()
 Gets a value of BCWS. More...
 
void set_BCWS (double value)
 Sets a value of BCWS. More...
 
double get_BCWP ()
 Gets a value of BCWP. More...
 
void set_BCWP (double value)
 Sets a value of BCWP. More...
 
Aspose::Tasks::BookingType get_BookingType ()
 Gets a value of BookingType. More...
 
void set_BookingType (Aspose::Tasks::BookingType value)
 Sets a value of BookingType. More...
 
Duration get_ActualWorkProtected ()
 Gets a value of ActualWorkProtected. More...
 
void set_ActualWorkProtected (Duration value)
 Sets a value of ActualWorkProtected. More...
 
Duration get_ActualOvertimeWorkProtected ()
 Gets a value of ActualOvertimeWorkProtected. More...
 
void set_ActualOvertimeWorkProtected (Duration value)
 Sets a value of ActualOvertimeWorkProtected. More...
 
Duration get_ActualOvertimeWork ()
 Gets a value of ActualOvertimeWork. More...
 
void set_ActualOvertimeWork (Duration value)
 Sets a value of ActualOvertimeWork. More...
 
System::DateTime get_Created ()
 Gets a value of Created. More...
 
void set_Created (System::DateTime value)
 Sets a value of Created. More...
 
System::String get_AssignmentOwner ()
 Gets a value of AssignmentOwner. More...
 
void set_AssignmentOwner (const System::String &value)
 Sets a value of AssignmentOwner. More...
 
System::String get_AssignmentOwnerGuid ()
 Gets a value of AssignmentOwnerGuid. More...
 
void set_AssignmentOwnerGuid (const System::String &value)
 Sets a value of AssignmentOwnerGuid. More...
 
System::Decimal get_BudgetCost ()
 Gets a value of BudgetCost. More...
 
void set_BudgetCost (System::Decimal value)
 Sets a value of BudgetCost. More...
 
Duration get_BudgetWork ()
 Gets a value of BudgetWork. More...
 
void set_BudgetWork (Duration value)
 Sets a value of BudgetWork. More...
 
RateScaleType get_RateScale ()
 Gets a value of RateScale. More...
 
void set_RateScale (RateScaleType value)
 Sets a value of RateScale. More...
 
template<typename T >
Get (const Key< T, AsnKey > &key) const
 Returns the value to which the property is mapped in this container. More...
 
template<typename T >
void Set (const Key< T, AsnKey > &key, const T &val)
 Maps the specified property to the specified value in this container. More...
 
void Delete ()
 Deletes resource assignment from project assignments collection. More...
 
bool Equals (System::SharedPtr< ResourceAssignment > other) override
 Returns a value indicating whether this instance is equal to a specified instance of the ResourceAssignment class. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Returns a value indicating whether this instance is equal to a specified object. More...
 
System::String ToString () const override
 Returns short string representation of the instance of the ResourceAssignment class. The exact details of the representation are unspecified and subject to change. More...
 
int32_t GetHashCode () const override
 Returns a hash code value for the instance of the ResourceAssignment class. More...
 
void TimephasedDataFromTaskDuration (const System::SharedPtr< Calendar > &calendar)
 Generates list of time phased data based on the task duration and the scheduled start date. More...
 
System::DateTime MakeTPs (System::DateTime start, System::TimeSpan time, const System::SharedPtr< Calendar > &calendar, const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Tasks::TimephasedData >>> &list, bool isWorking, int32_t type)
 Generates a list of time phased data. More...
 
void SplitTask (System::DateTime start, System::DateTime finish, const System::SharedPtr< Calendar > &calendar)
 Splits task into two parts. More...
 
System::SharedPtr
< TimephasedDataCollection
GetTimephasedData (System::DateTime start, System::DateTime end, TimephasedDataType timephasedType)
 Returns the instance TimephasedDataCollection class containing instances of TimephasedData class within given start and end dates of specified TimephasedDataType. More...
 
System::SharedPtr
< TimephasedDataCollection
GetTimephasedData (System::DateTime start, System::DateTime end)
 Returns TimephasedDataCollection object with the instances of TimephasedData class within given start and end dates of TimephasedDataType::AssignmentWork. More...
 
System::TimeSpan GetTimephasedWork (System::DateTime start, System::DateTime end, TimephasedDataType timephasedDataType)
 Gets amount of timephased work for the specified date time interval. More...
 
System::TimeSpan GetTimephasedWork (System::DateTime start, System::DateTime end)
 Gets amount of timephased work for the specified date time interval. More...
 
void SetMaterialResourceUnits (double units, RateScaleType 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. More...
 

Detailed Description

Represents a resource assignment in a project.

Member Function Documentation

void Aspose::Tasks::ResourceAssignment::Delete ( )

Deletes resource assignment from project assignments collection.

bool Aspose::Tasks::ResourceAssignment::Equals ( System::SharedPtr< ResourceAssignment other)
override

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

Parameters
otherThe specified instance of the ResourceAssignment class to compare with this instance.
Returns
True if the specified instance of the ResourceAssignment class has the same UID value as this instance; otherwise, false.
bool Aspose::Tasks::ResourceAssignment::Equals ( System::SharedPtr< System::Object >  obj)
override

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

Parameters
objThe object to compare with this instance.
Returns
True if o is a ResourceAssignment that assign the same resource and task as this instance; otherwise, false.
template<typename T >
T Aspose::Tasks::ResourceAssignment::Get ( const Key< T, AsnKey > &  key) const
inline

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

Parameters
keythe specified property key. Asn for getting the property key.
Template Parameters
Tthe type of the mapped value.
Returns
the value to which the property is mapped in this container.
System::Decimal Aspose::Tasks::ResourceAssignment::get_ActualCost ( )

Gets a value of ActualCost.

System::DateTime Aspose::Tasks::ResourceAssignment::get_ActualFinish ( )

Gets a value of ActualFinish.

System::Decimal Aspose::Tasks::ResourceAssignment::get_ActualOvertimeCost ( )

Gets a value of ActualOvertimeCost.

Duration Aspose::Tasks::ResourceAssignment::get_ActualOvertimeWork ( )

Gets a value of ActualOvertimeWork.

Duration Aspose::Tasks::ResourceAssignment::get_ActualOvertimeWorkProtected ( )

Gets a value of ActualOvertimeWorkProtected.

System::DateTime Aspose::Tasks::ResourceAssignment::get_ActualStart ( )

Gets a value of ActualStart.

Duration Aspose::Tasks::ResourceAssignment::get_ActualWork ( )

Gets a value of ActualWork.

Duration Aspose::Tasks::ResourceAssignment::get_ActualWorkProtected ( )

Gets a value of ActualWorkProtected.

double Aspose::Tasks::ResourceAssignment::get_ACWP ( )

Gets a value of ACWP.

System::String Aspose::Tasks::ResourceAssignment::get_AssignmentOwner ( )

Gets a value of AssignmentOwner.

System::String Aspose::Tasks::ResourceAssignment::get_AssignmentOwnerGuid ( )

Gets a value of AssignmentOwnerGuid.

System::SharedPtr<AssignmentBaselineCollection> Aspose::Tasks::ResourceAssignment::get_Baselines ( )

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

double Aspose::Tasks::ResourceAssignment::get_BCWP ( )

Gets a value of BCWP.

double Aspose::Tasks::ResourceAssignment::get_BCWS ( )

Gets a value of BCWS.

Aspose::Tasks::BookingType Aspose::Tasks::ResourceAssignment::get_BookingType ( )

Gets a value of BookingType.

System::Decimal Aspose::Tasks::ResourceAssignment::get_BudgetCost ( )

Gets a value of BudgetCost.

Duration Aspose::Tasks::ResourceAssignment::get_BudgetWork ( )

Gets a value of BudgetWork.

bool Aspose::Tasks::ResourceAssignment::get_Confirmed ( )

Gets a value indicating whether Confirmed is set or not.

System::Decimal Aspose::Tasks::ResourceAssignment::get_Cost ( )

Gets a value of Cost.

RateType Aspose::Tasks::ResourceAssignment::get_CostRateTableType ( )

Gets a value of CostRateTableType.

double Aspose::Tasks::ResourceAssignment::get_CostVariance ( )

Gets a value of CostVariance.

System::DateTime Aspose::Tasks::ResourceAssignment::get_Created ( )

Gets a value of Created.

double Aspose::Tasks::ResourceAssignment::get_CV ( )

Gets a value of CV.

Duration Aspose::Tasks::ResourceAssignment::get_Delay ( )

Gets a value of Delay.

System::SharedPtr<ExtendedAttributeCollection> Aspose::Tasks::ResourceAssignment::get_ExtendedAttributes ( )
override

Gets an instance of the ExtendedAttributeCollection class for this object.

Reading supported for XML format only.

System::DateTime Aspose::Tasks::ResourceAssignment::get_Finish ( )

Gets a value of Finish.

Duration Aspose::Tasks::ResourceAssignment::get_FinishVariance ( )

Gets a value of FinishVariance.

bool Aspose::Tasks::ResourceAssignment::get_FixedMaterial ( )

Gets a value indicating whether FixedMaterial is set or not.

System::Nullable<System::Guid> Aspose::Tasks::ResourceAssignment::get_Guid ( ) const

Gets unique identifier for this assignment.

bool Aspose::Tasks::ResourceAssignment::get_HasFixedRateUnits ( )

Gets a value indicating whether HasFixedRateUnits is set or not.

System::String Aspose::Tasks::ResourceAssignment::get_Hyperlink ( )
override

Gets a value of Hyperlink.

System::String Aspose::Tasks::ResourceAssignment::get_HyperlinkAddress ( )
override

Gets a value of HyperlinkAddress.

System::String Aspose::Tasks::ResourceAssignment::get_HyperlinkSubAddress ( )
override

Gets a value of HyperlinkSubAddress.

Duration Aspose::Tasks::ResourceAssignment::get_LevelingDelay ( )

Gets a value of LevelingDelay.

bool Aspose::Tasks::ResourceAssignment::get_LinkedFields ( )

Gets a value indicating whether LinkedFields is set or not.

bool Aspose::Tasks::ResourceAssignment::get_Milestone ( )

Gets a value indicating whether Milestone is set or not.

System::String Aspose::Tasks::ResourceAssignment::get_NotesRTF ( )
override

Gets the text notes in RTF format.

Supported for MPP formats only.

System::String Aspose::Tasks::ResourceAssignment::get_NotesText ( )
override

Gets notes' plain text extracted from RTF data.

bool Aspose::Tasks::ResourceAssignment::get_Overallocated ( )

Gets a value indicating whether Overallocated is set or not.

System::Decimal Aspose::Tasks::ResourceAssignment::get_OvertimeCost ( )

Gets a value of OvertimeCost.

Duration Aspose::Tasks::ResourceAssignment::get_OvertimeWork ( )

Gets a value of OvertimeWork.

const System::SharedPtr<Project>& Aspose::Tasks::ResourceAssignment::get_ParentProject ( ) const
override

Gets parent project for this assignment.

double Aspose::Tasks::ResourceAssignment::get_PeakUnits ( )

Gets a value of PeakUnits.

int32_t Aspose::Tasks::ResourceAssignment::get_PercentWorkComplete ( )

Gets a value of PercentWorkComplete.

RateScaleType Aspose::Tasks::ResourceAssignment::get_RateScale ( )

Gets a value of RateScale.

Duration Aspose::Tasks::ResourceAssignment::get_RegularWork ( )

Gets a value of RegularWork.

System::Decimal Aspose::Tasks::ResourceAssignment::get_RemainingCost ( )

Gets a value of RemainingCost.

System::Decimal Aspose::Tasks::ResourceAssignment::get_RemainingOvertimeCost ( )

Gets a value of RemainingOvertimeCost.

Duration Aspose::Tasks::ResourceAssignment::get_RemainingOvertimeWork ( )

Gets a value of RemainingOvertimeWork.

Duration Aspose::Tasks::ResourceAssignment::get_RemainingWork ( )

Gets a value of RemainingWork.

const System::SharedPtr<Aspose::Tasks::Resource>& Aspose::Tasks::ResourceAssignment::get_Resource ( ) const

The resource assigned to a task.

bool Aspose::Tasks::ResourceAssignment::get_ResponsePending ( )

Gets a value indicating whether ResponsePending is set or not.

System::DateTime Aspose::Tasks::ResourceAssignment::get_Resume ( )

Gets a value of Resume.

System::DateTime Aspose::Tasks::ResourceAssignment::get_Start ( )

Gets a value of Start.

Duration Aspose::Tasks::ResourceAssignment::get_StartVariance ( )

Gets a value of StartVariance.

System::DateTime Aspose::Tasks::ResourceAssignment::get_Stop ( )

Gets a value of Stop.

bool Aspose::Tasks::ResourceAssignment::get_Summary ( )

Gets a value indicating whether Summary is set or not.

double Aspose::Tasks::ResourceAssignment::get_SV ( )

Gets a value of SV.

const System::SharedPtr<Aspose::Tasks::Task>& Aspose::Tasks::ResourceAssignment::get_Task ( ) const

The task to which a resource is assigned.

System::SharedPtr<TimephasedDataCollection> Aspose::Tasks::ResourceAssignment::get_TimephasedData ( )

Gets the instance of TimephasedDataCollection class containing elements of TimephasedData class.

int32_t Aspose::Tasks::ResourceAssignment::get_Uid ( )

Gets a value of Uid.

double Aspose::Tasks::ResourceAssignment::get_Units ( )

Gets a value of Units.

bool Aspose::Tasks::ResourceAssignment::get_UpdateNeeded ( )

Gets a value indicating whether UpdateNeeded is set or not.

double Aspose::Tasks::ResourceAssignment::get_VAC ( )

Gets a value of VAC.

Duration Aspose::Tasks::ResourceAssignment::get_Work ( )

Gets a value of Work.

WorkContourType Aspose::Tasks::ResourceAssignment::get_WorkContour ( )

Gets a value of WorkContour.

Duration Aspose::Tasks::ResourceAssignment::get_WorkVariance ( )

Gets a value of WorkVariance.

int32_t Aspose::Tasks::ResourceAssignment::GetHashCode ( ) const
override

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

Returns
returns a hash code value for this object.
System::SharedPtr<TimephasedDataCollection> Aspose::Tasks::ResourceAssignment::GetTimephasedData ( System::DateTime  start,
System::DateTime  end,
TimephasedDataType  timephasedType 
)

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

Parameters
startThe start date for the time phased data.
endThe end date for the time phased data.
timephasedTypeThe type of time phased data (Aspose::Tasks::TimephasedDataType).
Returns
returns a list which contains instances of Aspose::Tasks::TimephasedData class.
System::SharedPtr<TimephasedDataCollection> Aspose::Tasks::ResourceAssignment::GetTimephasedData ( System::DateTime  start,
System::DateTime  end 
)

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

Parameters
startThe start date for the time phased data.
endThe end date for the time phased data.
Returns
returns a list containing instances of Aspose::Tasks::TimephasedData class.
System::TimeSpan Aspose::Tasks::ResourceAssignment::GetTimephasedWork ( System::DateTime  start,
System::DateTime  end,
TimephasedDataType  timephasedDataType 
)

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

Parameters
startStart of the date time interval.
endEnd of the date time interval.
timephasedDataTypeType of the timephased data to use.
Returns
System::TimeSpan Aspose::Tasks::ResourceAssignment::GetTimephasedWork ( System::DateTime  start,
System::DateTime  end 
)

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

Parameters
startStart of the date time interval.
endEnd of the date time interval.
Returns
System::DateTime Aspose::Tasks::ResourceAssignment::MakeTPs ( System::DateTime  start,
System::TimeSpan  time,
const System::SharedPtr< Calendar > &  calendar,
const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Tasks::TimephasedData >>> &  list,
bool  isWorking,
int32_t  type 
)

Generates a list of time phased data.

Parameters
startThe specified start date.
timeThe specified working time.
calendarThe specified working calendar.
listThe list of time phased data.
isWorkingThe specified flag which specifies whether time-phased data is working or not.
typeThe specified time-phased data type.
Returns
A maximum date from list or start date if list is empty.
template<typename T >
void Aspose::Tasks::ResourceAssignment::Set ( const Key< T, AsnKey > &  key,
const T &  val 
)
inline

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

Parameters
keythe specified property key. Asn for getting the property key.
valthe value.
Template Parameters
Tthe type of the mapped value.
void Aspose::Tasks::ResourceAssignment::set_ActualCost ( System::Decimal  value)

Sets a value of ActualCost.

void Aspose::Tasks::ResourceAssignment::set_ActualFinish ( System::DateTime  value)

Sets a value of ActualFinish.

void Aspose::Tasks::ResourceAssignment::set_ActualOvertimeCost ( System::Decimal  value)

Sets a value of ActualOvertimeCost.

void Aspose::Tasks::ResourceAssignment::set_ActualOvertimeWork ( Duration  value)

Sets a value of ActualOvertimeWork.

void Aspose::Tasks::ResourceAssignment::set_ActualOvertimeWorkProtected ( Duration  value)

Sets a value of ActualOvertimeWorkProtected.

void Aspose::Tasks::ResourceAssignment::set_ActualStart ( System::DateTime  value)

Sets a value of ActualStart.

void Aspose::Tasks::ResourceAssignment::set_ActualWork ( Duration  value)

Sets a value of ActualWork.

void Aspose::Tasks::ResourceAssignment::set_ActualWorkProtected ( Duration  value)

Sets a value of ActualWorkProtected.

void Aspose::Tasks::ResourceAssignment::set_ACWP ( double  value)

Sets a value of ACWP.

void Aspose::Tasks::ResourceAssignment::set_AssignmentOwner ( const System::String &  value)

Sets a value of AssignmentOwner.

void Aspose::Tasks::ResourceAssignment::set_AssignmentOwnerGuid ( const System::String &  value)

Sets a value of AssignmentOwnerGuid.

void Aspose::Tasks::ResourceAssignment::set_BCWP ( double  value)

Sets a value of BCWP.

void Aspose::Tasks::ResourceAssignment::set_BCWS ( double  value)

Sets a value of BCWS.

void Aspose::Tasks::ResourceAssignment::set_BookingType ( Aspose::Tasks::BookingType  value)

Sets a value of BookingType.

void Aspose::Tasks::ResourceAssignment::set_BudgetCost ( System::Decimal  value)

Sets a value of BudgetCost.

void Aspose::Tasks::ResourceAssignment::set_BudgetWork ( Duration  value)

Sets a value of BudgetWork.

void Aspose::Tasks::ResourceAssignment::set_Confirmed ( bool  value)

Sets a value indicating whether Confirmed is set or not.

void Aspose::Tasks::ResourceAssignment::set_Cost ( System::Decimal  value)

Sets a value of Cost.

void Aspose::Tasks::ResourceAssignment::set_CostRateTableType ( RateType  value)

Sets a value of CostRateTableType.

void Aspose::Tasks::ResourceAssignment::set_CostVariance ( double  value)

Sets a value of CostVariance.

void Aspose::Tasks::ResourceAssignment::set_Created ( System::DateTime  value)

Sets a value of Created.

void Aspose::Tasks::ResourceAssignment::set_CV ( double  value)

Sets a value of CV.

void Aspose::Tasks::ResourceAssignment::set_Delay ( Duration  value)

Sets a value of Delay.

void Aspose::Tasks::ResourceAssignment::set_ExtendedAttributes ( const System::SharedPtr< ExtendedAttributeCollection > &  value)

Sets an instance of the ExtendedAttributeCollection class for this object.

Reading supported for XML format only.

void Aspose::Tasks::ResourceAssignment::set_Finish ( System::DateTime  value)

Sets a value of Finish.

void Aspose::Tasks::ResourceAssignment::set_FinishVariance ( Duration  value)

Sets a value of FinishVariance.

void Aspose::Tasks::ResourceAssignment::set_FixedMaterial ( bool  value)

Sets a value indicating whether FixedMaterial is set or not.

void Aspose::Tasks::ResourceAssignment::set_Guid ( System::Nullable< System::Guid >  value)

Sets unique identifier for this assignment.

void Aspose::Tasks::ResourceAssignment::set_HasFixedRateUnits ( bool  value)

Sets a value indicating whether HasFixedRateUnits is set or not.

void Aspose::Tasks::ResourceAssignment::set_Hyperlink ( System::String  value)
override

Sets a value of Hyperlink.

void Aspose::Tasks::ResourceAssignment::set_HyperlinkAddress ( System::String  value)
override

Sets a value of HyperlinkAddress.

void Aspose::Tasks::ResourceAssignment::set_HyperlinkSubAddress ( System::String  value)
override

Sets a value of HyperlinkSubAddress.

void Aspose::Tasks::ResourceAssignment::set_LevelingDelay ( Duration  value)

Sets a value of LevelingDelay.

void Aspose::Tasks::ResourceAssignment::set_LinkedFields ( bool  value)

Sets a value indicating whether LinkedFields is set or not.

void Aspose::Tasks::ResourceAssignment::set_Milestone ( bool  value)

Sets a value indicating whether Milestone is set or not.

void Aspose::Tasks::ResourceAssignment::set_NotesRTF ( System::String  value)
override

Sets the text notes in RTF format.

Supported for MPP formats only.

void Aspose::Tasks::ResourceAssignment::set_NotesText ( System::String  value)
override

Sets notes' plain text extracted from RTF data.

void Aspose::Tasks::ResourceAssignment::set_Overallocated ( bool  value)

Sets a value indicating whether Overallocated is set or not.

void Aspose::Tasks::ResourceAssignment::set_OvertimeCost ( System::Decimal  value)

Sets a value of OvertimeCost.

void Aspose::Tasks::ResourceAssignment::set_OvertimeWork ( Duration  value)

Sets a value of OvertimeWork.

void Aspose::Tasks::ResourceAssignment::set_PeakUnits ( double  value)

Sets a value of PeakUnits.

void Aspose::Tasks::ResourceAssignment::set_PercentWorkComplete ( int32_t  value)

Sets a value of PercentWorkComplete.

void Aspose::Tasks::ResourceAssignment::set_RateScale ( RateScaleType  value)

Sets a value of RateScale.

void Aspose::Tasks::ResourceAssignment::set_RegularWork ( Duration  value)

Sets a value of RegularWork.

void Aspose::Tasks::ResourceAssignment::set_RemainingCost ( System::Decimal  value)

Sets a value of RemainingCost.

void Aspose::Tasks::ResourceAssignment::set_RemainingOvertimeCost ( System::Decimal  value)

Sets a value of RemainingOvertimeCost.

void Aspose::Tasks::ResourceAssignment::set_RemainingOvertimeWork ( Duration  value)

Sets a value of RemainingOvertimeWork.

void Aspose::Tasks::ResourceAssignment::set_RemainingWork ( Duration  value)

Sets a value of RemainingWork.

void Aspose::Tasks::ResourceAssignment::set_Resource ( const System::SharedPtr< Aspose::Tasks::Resource > &  value)

The resource assigned to a task.

void Aspose::Tasks::ResourceAssignment::set_ResponsePending ( bool  value)

Sets a value indicating whether ResponsePending is set or not.

void Aspose::Tasks::ResourceAssignment::set_Resume ( System::DateTime  value)

Sets a value of Resume.

void Aspose::Tasks::ResourceAssignment::set_Start ( System::DateTime  value)

Sets a value of Start.

void Aspose::Tasks::ResourceAssignment::set_StartVariance ( Duration  value)

Sets a value of StartVariance.

void Aspose::Tasks::ResourceAssignment::set_Stop ( System::DateTime  value)

Sets a value of Stop.

void Aspose::Tasks::ResourceAssignment::set_Summary ( bool  value)

Sets a value indicating whether Summary is set or not.

void Aspose::Tasks::ResourceAssignment::set_SV ( double  value)

Sets a value of SV.

void Aspose::Tasks::ResourceAssignment::set_Task ( const System::SharedPtr< Aspose::Tasks::Task > &  value)

The task to which a resource is assigned.

void Aspose::Tasks::ResourceAssignment::set_TimephasedData ( const System::SharedPtr< TimephasedDataCollection > &  value)

Sets the instance of TimephasedDataCollection class containing elements of TimephasedData class.

void Aspose::Tasks::ResourceAssignment::set_Uid ( int32_t  value)

Sets a value of Uid.

void Aspose::Tasks::ResourceAssignment::set_Units ( double  value)

Sets a value of Units.

void Aspose::Tasks::ResourceAssignment::set_UpdateNeeded ( bool  value)

Sets a value indicating whether UpdateNeeded is set or not.

void Aspose::Tasks::ResourceAssignment::set_VAC ( double  value)

Sets a value of VAC.

void Aspose::Tasks::ResourceAssignment::set_Work ( Duration  value)

Sets a value of Work.

void Aspose::Tasks::ResourceAssignment::set_WorkContour ( WorkContourType  value)

Sets a value of WorkContour.

void Aspose::Tasks::ResourceAssignment::set_WorkVariance ( Duration  value)

Sets a value of WorkVariance.

void Aspose::Tasks::ResourceAssignment::SetMaterialResourceUnits ( double  units,
RateScaleType  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.

Parameters
unitsNumber of units accrued at the time period.
rateScaleTypeTime period at which the unit value is accrued.

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

Exceptions
InvalidOperationExceptionIf the method is called for assignment of non-material resource.
void Aspose::Tasks::ResourceAssignment::SplitTask ( System::DateTime  start,
System::DateTime  finish,
const System::SharedPtr< Calendar > &  calendar 
)

Splits task into two parts.

Parameters
startThe beginning of work interruption to split based on.
finishThe end of work interruption to split based on.
calendarThe calendar to split based on.
Exceptions
ArgumentOutOfRangeExceptionThrows when start date is less than the assignment start date.
ArgumentOutOfRangeExceptionThrows when finish date is greater than the assignment finish date.
void Aspose::Tasks::ResourceAssignment::TimephasedDataFromTaskDuration ( const System::SharedPtr< Calendar > &  calendar)

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

Parameters
calendarThe calendar to generate time phased data from.
System::String Aspose::Tasks::ResourceAssignment::ToString ( ) const
override

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

Returns
short string which represents assignment object.