get_relation

Get the data of the precedence relation between two activities.

Precedence relations between activities can be added using the P2Schedule: add_relation function.

Parameters: 
I/O Type Name Description
input integer ID1 ID of the first activity
input integer ID2 ID of the second activity
output integer lagtype 1 (SS), 2 (SF), 3 (FS), 4 (FF) or --99999999 (no relation)
output integer lagvalue lag value (in time units) or -99999999 (no relation)

 

Learn More: 

Step inside PMKC.

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