Project#roster#
Reads the accepted state of a Project without skills: scheduled leaf tasks, resources and active assignments, in model order. Source data for a custom Slot list for suggestAssignments. Needs a solved project with no unsolved edits.
Signature#
public Roster
Synchronous and CPU-only. Doesn't change the project. Not synchronized: serialize calls on one instance.
Returns#
A new Roster.
Errors#
All exceptions are unchecked.
| Error | When |
|---|---|
ProjectException with code == ProjectError.NO_BASELINE |
The project is unsolved or has unsolved edits, for example after apply |
Example#
Build one slot per scheduled task that has no assignment yet, open to every resource.
;
;
;
Related#
Roster- the tasks, resources and assignments it returnsSlot- slots built from a rosterProject#suggestAssignments- fills the slotsSkillLayer.slots- builds slots from skills on top of the roster- Skills and requirements - the skill layer that reads the roster