get_critical_activity

Check whether an activity lies on the critical path.

An activity is critical when its slack is equal to zero (see P2Schedule:get_slack function)

Parameters: 
I/O Type Name Description
input integer ID activity ID
output integer critical 0 (not critical) or 1 (critical)
Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Schedule