ResourceOverallocation#
The overallocated periods of one resource. You get it in ScheduleResult::overallocations, including the one in LevelingResult::schedule.
The list holds one entry per overallocated resource. A resource whose load never exceeds its capacity has no entry, so windows is never empty.
Declaration#
With the serde feature, ResourceOverallocation implements Serialize and Deserialize. See Serialize results to JSON.
Fields#
| Field | Type | Description |
|---|---|---|
resource |
Id |
Id of the resource, as given in ResourceData::id. |
windows |
Vec<OverallocationWindow> |
The resource's overallocated periods: the edges, capacity, peak load, overload and contending tasks of each. |
Example#
Two one-day tasks on the same day, each booking the full capacity of one resource:
use ;
Related#
ScheduleResult- holds the list of overallocated resourcesOverallocationWindow- one overallocated period of the resourceLevelingResult- its schedule lists what leveling left unresolved- Resources and assignments - finds overallocated resources after scheduling
- Leveling Resources - resolves the overallocation by leveling