TActivityNetwork.GetCriticalGraph(TAOEEvent,TAOEEvent,TActivityNetwork) Method |
Scroll Prev Top Next More |
Returns a graph containing all the critical activities in the network between the StartEvent and FinishEvent parameters.
A critical activity is an ActivityNetwork.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. You may pass in the TActivityNetwork component to be filled by this method with the CGraph parameter. Otherwise, the method will allocate a new TActivityNetwork component.
Namespace: ActivityNetwork
Delphi |
public |
Parameters
StartEvent
Type: TAOEEvent
FinishEvent
Type: TAOEEvent
CGraph
Type: TActivityNetwork
Type: TActivityNetwork
The following example modifies the activity network to only include the critical graph: Delphi |
begin |