ProfileTasks#
Selects which buckets of a load profile list the tasks booked in them. Set it through ProfileQuery.Tasks; the lists land in LoadBucket.Tasks. The default is None.
Declaration#
namespace Plen;
public enum ProfileTasks
{
None,
Over,
All,
}
Variants#
| Variant | Description |
|---|---|
None |
Default. No bucket lists tasks: LoadBucket.Tasks is null in every bucket. |
Over |
Buckets where Load > Capacity list their booked tasks. Every other bucket gets an empty list. |
All |
Every bucket lists the tasks booked in it. A bucket with no load gets an empty list. |
Task ids appear in input order.
ProfileTasks is a plain enum with no parse or spelling helpers. The Plen.Wire package handles the JSON spellings "none", "overallocated" (for Over) and "all".
Example#
using Plen;
var from = Moment.FromYmdHm(2026, 8, 10, 0, 0) ?? throw new InvalidOperationException("invalid date");
var to = Moment.FromYmdHm(2026, 8, 14, 0, 0) ?? throw new InvalidOperationException("invalid date");
// List the contending tasks only in overloaded buckets.
var query = new ProfileQuery(from, to) { Tasks = ProfileTasks.Over };
Related#
ProfileQuery- the query that carries itLoadProfile- the buckets that hold the task lists- Resource load - task lists per bucket