Top | ![]() |
![]() |
![]() |
![]() |
Resources are assigned to tasks. MrpAssignment implements the association between MrpTask and MrpResource. The association is pounded.
MrpAssignment *
mrp_assignment_new (void
);
Creates a new, empty, assignment. You most often don't want to create an
assignment explicitly like this, but using mrp_resource_assign()
instead.
MrpTask *
mrp_assignment_get_task (MrpAssignment *assignment
);
Retrieves the MrpTask associated with assignment
.
MrpResource *
mrp_assignment_get_resource (MrpAssignment *assignment
);
Retrieves the MrpResource associated with assignment
.
gint
mrp_assignment_get_units (MrpAssignment *assignment
);
Retrieves the number of units that the resource is assigned with to the task. 100 means 100%, etc.
“resource”
property“resource” MrpResource *
The resource that is assigned to the task.
Owner: MrpAssignment
Flags: Read / Write
“units”
property“units” gint
Number of units assignment.
Owner: MrpAssignment
Flags: Read / Write
Allowed values: >= -1
Default value: 0