new

Create a new P2Resource object and link it to a P2Project object and a P2Schedule object.

Both the P2Project object and the P2Schedule object should have been generated using the P2Project:new and P2Schedule:new functions.

Parameters: 
I/O Type Name Description
input project project a P2Project object
input schedule baseline a P2Schedule object
output resources resources newly generated P2Resource object
Example: 
function ()
        io.write('\n')
end
Class: 
P2Resource