qualia_core_db/bundle/stream/plan/
mod.rs1mod inventory;
5mod readiness;
6mod schedule;
7pub use inventory::{
8 DependencyEdge, DependencyReason, EntryFamily, EntryRef, Inventory, Obligation, PlanEntry,
9 PlanEntrySpec, RationalInterval, RepresentationClass, ResourceEstimate, TimebaseId,
10 MAX_PLAN_EDGES, MAX_PLAN_ENTRIES,
11};
12pub use readiness::{evaluate, Readiness};
13pub use schedule::{
14 PrincipalSelection, RecordUnit, Region, Schedule, ScheduledUnit, SelectionIntent,
15 SelectionRequest, WorkClass, MAX_PRINCIPALS, MAX_SCHEDULE_ITEMS,
16};
17#[derive(Clone, Copy, Debug, PartialEq, Eq)]
18pub enum PlanError {
19 Capacity,
20 Limit,
21 DuplicateId,
22 Identity,
23 Cycle,
24 Graph,
25 Field,
26 Unsupported,
27 Refused,
28}
29impl core::fmt::Display for PlanError {
30 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
31 write!(f, "plan {:?}", self)
32 }
33}
34impl core::error::Error for PlanError {}
35#[cfg(test)]
36mod tests;