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

Represents a predecessor link. More...

#include <TaskLink.h>

Inherits System::IEquatable< System::SharedPtr< Aspose::Tasks::TaskLink > >.

Public Member Functions

bool get_IsCrossProject () const
 Gets a value indicating whether a predecessor is part of another project. More...
 
void set_IsCrossProject (bool value)
 Sets a value indicating whether a predecessor is part of another project. More...
 
System::String get_CrossProjectName () const
 Gets the external predecessor project. More...
 
void set_CrossProjectName (const System::String &value)
 Sets the external predecessor project. More...
 
int32_t get_LinkLag () const
 Gets the lag in tenths of a minute or percentage. More...
 
void set_LinkLag (int32_t value)
 Sets the lag in tenths of a minute or percentage. More...
 
System::TimeSpan get_LinkLagTimeSpan ()
 Gets lag duration, depending on LagFormat. More...
 
void set_LinkLagTimeSpan (System::TimeSpan value)
 Sets lag duration, depending on LagFormat. More...
 
TimeUnitType get_LagFormat () const
 Gets the format for expressing the lag format. More...
 
void set_LagFormat (TimeUnitType value)
 Sets the format for expressing the lag format. More...
 
const System::SharedPtr< Task > & get_PredTask () const
 Gets the predecessor task. More...
 
void set_PredTask (const System::SharedPtr< Task > &value)
 Sets the predecessor task. More...
 
const System::SharedPtr< Task > & get_SuccTask () const
 Gets the successor task. More...
 
void set_SuccTask (const System::SharedPtr< Task > &value)
 Sets the successor task. More...
 
TaskLinkType get_LinkType () const
 Gets the type of a link. More...
 
void set_LinkType (TaskLinkType value)
 Sets the type of a link. More...
 
int32_t GetHashCode () const override
 Returns a hash code value for the instance of the TaskLink class. More...
 
bool Equals (System::SharedPtr< TaskLink > other) override
 Returns a value indicating whether this instance is equal to a specified object. More...
 
System::String ToString () const override
 Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Returns a value indicating whether this instance is equal to a specified object. More...
 

Detailed Description

Represents a predecessor link.

Member Function Documentation

◆ Equals() [1/2]

bool Aspose::Tasks::TaskLink::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 the specified object is a TaskLink that has the same predecessor and successor as this instance; otherwise, false.

◆ Equals() [2/2]

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

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

Parameters
otherThe specified instance of the TaskLink class to compare with this instance.
Returns
True if the specified instance of the TaskLink class has the same predecessor and successor tasks as this instance; otherwise, false.

◆ get_CrossProjectName()

System::String Aspose::Tasks::TaskLink::get_CrossProjectName ( ) const

Gets the external predecessor project.

◆ get_IsCrossProject()

bool Aspose::Tasks::TaskLink::get_IsCrossProject ( ) const

Gets a value indicating whether a predecessor is part of another project.

◆ get_LagFormat()

TimeUnitType Aspose::Tasks::TaskLink::get_LagFormat ( ) const

Gets the format for expressing the lag format.

◆ get_LinkLag()

int32_t Aspose::Tasks::TaskLink::get_LinkLag ( ) const

Gets the lag in tenths of a minute or percentage.

◆ get_LinkLagTimeSpan()

System::TimeSpan Aspose::Tasks::TaskLink::get_LinkLagTimeSpan ( )

Gets lag duration, depending on LagFormat.

Link lag can be a percentage value (LagFormat is TimeUnitType.Percent). In this case the duration is calculated as a percentage of PredTask's duration. Otherwise the method returns TimeSpan value representing TaskLink's lag.

Exceptions
ArgumentExceptionWhen trying to set the value for TaskLinks where LagFormat is TimeUnitType.Percent.

◆ get_LinkType()

TaskLinkType Aspose::Tasks::TaskLink::get_LinkType ( ) const

Gets the type of a link.

◆ get_PredTask()

const System::SharedPtr<Task>& Aspose::Tasks::TaskLink::get_PredTask ( ) const

Gets the predecessor task.

◆ get_SuccTask()

const System::SharedPtr<Task>& Aspose::Tasks::TaskLink::get_SuccTask ( ) const

Gets the successor task.

◆ GetHashCode()

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

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

Returns
returns a hash code value for this object.

◆ set_CrossProjectName()

void Aspose::Tasks::TaskLink::set_CrossProjectName ( const System::String &  value)

Sets the external predecessor project.

◆ set_IsCrossProject()

void Aspose::Tasks::TaskLink::set_IsCrossProject ( bool  value)

Sets a value indicating whether a predecessor is part of another project.

◆ set_LagFormat()

void Aspose::Tasks::TaskLink::set_LagFormat ( TimeUnitType  value)

Sets the format for expressing the lag format.

◆ set_LinkLag()

void Aspose::Tasks::TaskLink::set_LinkLag ( int32_t  value)

Sets the lag in tenths of a minute or percentage.

◆ set_LinkLagTimeSpan()

void Aspose::Tasks::TaskLink::set_LinkLagTimeSpan ( System::TimeSpan  value)

Sets lag duration, depending on LagFormat.

Link lag can be a percentage value (LagFormat is TimeUnitType.Percent). In this case the duration is calculated as a percentage of PredTask's duration. Otherwise the method returns TimeSpan value representing TaskLink's lag.

Exceptions
ArgumentExceptionWhen trying to set the value for TaskLinks where LagFormat is TimeUnitType.Percent.

◆ set_LinkType()

void Aspose::Tasks::TaskLink::set_LinkType ( TaskLinkType  value)

Sets the type of a link.

◆ set_PredTask()

void Aspose::Tasks::TaskLink::set_PredTask ( const System::SharedPtr< Task > &  value)

Sets the predecessor task.

◆ set_SuccTask()

void Aspose::Tasks::TaskLink::set_SuccTask ( const System::SharedPtr< Task > &  value)

Sets the successor task.

◆ ToString()

System::String Aspose::Tasks::TaskLink::ToString ( ) const
override

Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change.

Returns
string which represents TaskLink object.