TaskLink
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public final class TaskLink implements System.IEquatable<TaskLink>
Represents a predecessor link.
Methods
| Method | Description | 
|---|---|
| equals(TaskLink other) | Returns a value indicating whether this instance is equal to a specified object. | 
| equals(Object obj) | Returns a value indicating whether this instance is equal to a specified object. | 
| getCrossProjectName() | Gets the external predecessor project. | 
| getLagFormat() | Gets the format for expressing the lag format. | 
| getLinkLag() | Gets the lag in tenths of a minute or percentage. | 
| getLinkLagTimeSpan() | Gets lag duration, depending on LagFormat. | 
| getLinkType() | Gets the type of a link. | 
| getPredTask() | Gets the predecessor task. | 
| getSuccTask() | Gets the successor task. | 
| hashCode() | Returns a hash code value for the instance of the TaskLink class. | 
| isCrossProject() | Gets a value indicating whether a predecessor is part of another project. | 
| setCrossProject(boolean value) | Sets a value indicating whether a predecessor is part of another project. | 
| setCrossProjectName(String value) | Sets the external predecessor project. | 
| setLagFormat(byte value) | Sets the format for expressing the lag format. | 
| setLinkLag(int value) | Sets the lag in tenths of a minute or percentage. | 
| setLinkLagTimeSpan(double value) | Sets lag duration, depending on LagFormat. | 
| setLinkType(int value) | Sets the type of a link. | 
| setPredTask(Task value) | Sets the predecessor task. | 
| setSuccTask(Task value) | Sets the successor task. | 
| toString() | Returns string representation of a TaskLink. | 
equals(TaskLink other)
public final boolean equals(TaskLink other)
Returns a value indicating whether this instance is equal to a specified object.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| other | TaskLink | The specified instance of the TaskLink class to compare with this instance. | 
Returns: boolean - True if the specified instance of the TaskLink class has the same predecessor and successor tasks as this instance; otherwise, false.
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| obj | java.lang.Object | The object to compare with this instance. | 
Returns: boolean - True if the specified object is a TaskLink that has the same predecessor and successor as this instance; otherwise, false.
getCrossProjectName()
public final String getCrossProjectName()
Gets the external predecessor project.
Returns: java.lang.String - the external predecessor project.
getLagFormat()
public final byte getLagFormat()
Gets the format for expressing the lag format.
Returns: byte - the format for expressing the lag format.
getLinkLag()
public final int getLinkLag()
Gets the lag in tenths of a minute or percentage.
Returns: int - the lag in tenths of a minute or percentage.
getLinkLagTimeSpan()
public final double getLinkLagTimeSpan()
Gets lag duration, depending on LagFormat.
Returns: double - lag duration, depending on LagFormat.
getLinkType()
public final int getLinkType()
Gets the type of a link.
Returns: int - the type of a link.
getPredTask()
public final Task getPredTask()
Gets the predecessor task.
Returns: Task - the predecessor task.
getSuccTask()
public final Task getSuccTask()
Gets the successor task.
Returns: Task - the successor task.
hashCode()
public int hashCode()
Returns a hash code value for the instance of the TaskLink class.
Returns: int - returns a hash code value for this object.
isCrossProject()
public final boolean isCrossProject()
Gets a value indicating whether a predecessor is part of another project.
Returns: boolean - a value indicating whether a predecessor is part of another project.
setCrossProject(boolean value)
public final void setCrossProject(boolean value)
Sets a value indicating whether a predecessor is part of another project.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | boolean | a value indicating whether a predecessor is part of another project. | 
setCrossProjectName(String value)
public final void setCrossProjectName(String value)
Sets the external predecessor project.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String | the external predecessor project. | 
setLagFormat(byte value)
public final void setLagFormat(byte value)
Sets the format for expressing the lag format.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | byte | the format for expressing the lag format. | 
setLinkLag(int value)
public final void setLinkLag(int value)
Sets the lag in tenths of a minute or percentage.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | int | the lag in tenths of a minute or percentage. | 
setLinkLagTimeSpan(double value)
public final void setLinkLagTimeSpan(double value)
Sets lag duration, depending on LagFormat.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | double | lag duration, depending on LagFormat. | 
setLinkType(int value)
public final void setLinkType(int value)
Sets the type of a link.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | int | the type of a link. | 
setPredTask(Task value)
public final void setPredTask(Task value)
Sets the predecessor task.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | Task | the predecessor task. | 
setSuccTask(Task value)
public final void setSuccTask(Task value)
Sets the successor task.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | Task | the successor task. | 
toString()
public String toString()
Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change.
Returns: java.lang.String - string which represents TaskLink object.