reset_schedule_object

Reset all schedule memory of the P2Schedule object that is linked to a P2Project object.

This function clears all the memory that was used at the current P2Schedule object and makes the object ready for use again. It deletes all activities and relations between activities and creates an empty schedule. The pointer to the P2Project object is not deleted. An alternative to this method is to delete the schedule object and create a new one using the P2Schedule:new function.
 
Note: When resources are assigned to a project, the resource availability is not deleted. However, the resource demand is set to zero since all activities are deleted from the schedule. In order to delete all resources from the project (availability) and schedule (demand), the function P2Resource:reset_resource_object should be used.
 
Parameters: 

None

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