copy_constructor

Copy all schedule information from the source P2Schedule object to a sink P2Schedule object.

This function should be called in conjunction with P2Project:copy_constructor and P2Resource:copy_constructor to copy all the data from one project, including schedule and resource information, into another one.

Below you find the approach to copy all project, schedule and resource data into new objects.

Step 1. Create new objects:

Step 2. Copy the information from the old objects to the new objects using the constructor functions. The copy constructors should be called in the correct sequence, i.e. first the P2Project function, then the P2Schedule function and finally the P2Resource function.

Parameters: 
I/O Type Name Description
input schedule source schedule source P2Schedule object containing the data
input schedule sink schedule sink P2Schedule receiving the data

 

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