TActivityNetwork.GetCriticalActivities(TAOEEvent,TAOEEvent,TStrings,Integer) Method |
Scroll Prev Top Next More |
Returns a TStrings object containing all the critical activities in the network between the StartEvent and FinishEvent parameters.
A critical activity is an TAOETask object where the EarliestStartTime and LatestStartTime properties equal, in other words a task that can neither start early nor delay starting without affecting the entire project's completion time.
The TStrings object may be passed in using the Path parameter or, if this parameter is nil, the method will allocate a TStrings object for which you are responsible for freeing. The String property of the TStrings contains the TAOETask Name property and the Objects property contains the TAOETask itself. This function also returns the total project earliest completion time in the PathTime parameter.
Namespace: ActivityNetwork
Delphi |
public |
Parameters
StartEvent
Type: TAOEEvent
FinishEvent
Type: TAOEEvent
Path
Type: TStrings
PathTime
Type: Integer
Type: TStrings
The following example fills in a list box with the critical nodes in the activity network, the earliest project completion time, and finally the criticality for each task:
|