set_task_attributes
| set_task_attributes | 
  Purpose
 
 Sets some attributes for a task.
 
A cptask is represented by three cpvar:
  
 
A cptask is represented by three cpvar:
- start representing the start time of the task
- end representing the completion time of the task
- duration representing the duration of the task.
 
 
  Synopsis
 
procedure set_task_attributes(task:cptask, duration:integer, resource:cpresource, precedences:set of cptask)
 procedure set_task_attributes(task:cptask, duration:integer, resource:cpresource)
 procedure set_task_attributes(task:cptask, duration:integer)
 procedure set_task_attributes(task:cptask, duration:integer, precedences:set of cptask)
 procedure set_task_attributes(task:cptask, resource:cpresource, requirement:integer)
 
  Arguments
 
| 
     task 
     | 
     the task to set attributes
     | 
| 
     duration 
     | 
     the duration of the task
     | 
| 
     resource 
     | 
     a resource that is required during the execution of the task
     | 
| 
     precedences 
     | 
     the set of tasks that must precede t in the schedule
     | 
| 
     requirement 
     | 
     amount of the specified resource required per time unit
     | 
  Example
 
 The following example shows how to set some attributes of a task:
 
 
