Shift#
A finish date in an evaluated stage and its working-time distance from the same finish in the baseline. It appears as Finish::project and as TaskFinish::finish inside Metrics. It isn't built by hand.
Declaration#
With the serde feature (cargo add plen-core --features serde), Shift also implements Serialize and Deserialize, with field names in camelCase.
Fields#
| Field | Type | Description |
|---|---|---|
date |
DateTime |
Finish date in this stage. |
delta |
f64 |
Working time from the baseline finish to date, in SchedulingConfig::duration_unit. Positive when the finish is later than the baseline, negative when earlier, 0 in the baseline itself. |
delta#
- For a task finish, working time is counted on the task's calendar.
- For the project finish, working time is counted on the global calendar. The project
deltais0when the baseline has no tasks.
Example#
Evaluate a candidate that makes task 2 longer, then print the project finish and the finish of task 2.
use ;
Related#
Finish- holds the project finish as aShiftTaskFinish- holds a focus task's finish as aShiftAmount- the counterpart for counts and overload- Evaluating Alternatives - how finish shifts are read when comparing candidates