TaskLink
A dependency between two tasks: the successor waits for the predecessor.
public class TaskLink : INotifyPropertyChanged
Inherits from / implements: INotifyPropertyChanged
Remarks
A link into a summary task holds back every subtask in it, and a link out of one waits for all of them. Because a summary's dates belong to its subtasks, only FinishToStart and StartToStart can lead into a summary, and only FinishToStart and FinishToFinish can lead out of one; any other is reported as a problem and left out.
Members at a glance
TaskLink | Creates an empty link. Give it at least FromId and ToId. |
TaskLink | Creates a link from one task to another. |
FromId | The predecessor's id. |
Id | Identifies the link in events and problems. Optional: when empty the link is known by its ends, as from->to . |
Lag | Working days of delay after the predecessor lets go; negative for a lead (an overlap). |
ToId | The successor's id. |
Type | How the successor waits for the predecessor. |
Clone | A copy of the link. |
IsNullOrEmpty | The id the link is known by: Id, or its ends when that is empty. |
OnPropertyChanged | Raises PropertyChanged. |
ToString | The link as its ends and type, for the debugger. |
PropertyChanged | Raised when any property changes. |
Constructors
TaskLink
Creates an empty link. Give it at least FromId and ToId.
TaskLink
Creates a link from one task to another.
- fromId
- The predecessor's id.
- toId
- The successor's id.
- type
- How the successor waits.
- lag
- Working days of delay; negative for a lead.
Properties
FromId
The predecessor's id.
Id
Identifies the link in events and problems. Optional: when empty the link is known by its ends, as from->to .
Lag
Working days of delay after the predecessor lets go; negative for a lead (an overlap).
ToId
The successor's id.
Type
How the successor waits for the predecessor.
Methods
Clone
A copy of the link.
Returns. The copy.
IsNullOrEmpty
The id the link is known by: Id, or its ends when that is empty.
OnPropertyChanged
Raises PropertyChanged.
- propertyName
- The property that changed.
ToString
The link as its ends and type, for the debugger.
Returns. Text such as a -> b (FinishToStart, +2) .
Events
PropertyChanged
Raised when any property changes.