Skip to main content

solverforge_core/domain/
mod.rs

1//! Domain model traits for defining planning problems
2//!
3//! These traits define the structure of a planning problem:
4//! - `PlanningSolution`: The container for the complete problem and solution
5//! - `PlanningEntity`: Things that can be planned/optimized
6//! - `ProblemFact`: Immutable input data
7//! - `PlanningId`: Unique identification for entities
8
9mod descriptor;
10mod entity_ref;
11pub mod listener;
12pub mod supply;
13mod traits;
14mod value_range;
15mod variable;
16
17#[cfg(test)]
18mod tests;
19
20pub use descriptor::{
21    EntityDescriptor, ProblemFactDescriptor, SolutionDescriptor, VariableDescriptor,
22};
23pub use entity_ref::{EntityExtractor, EntityRef, TypedEntityExtractor};
24pub use listener::{
25    ListVariableListener, ListVariableNotification, VariableListener, VariableNotification,
26};
27pub use supply::{AnchorSupply, ElementPosition, InverseSupply, ListStateSupply};
28pub use traits::{ListVariableSolution, PlanningEntity, PlanningId, PlanningSolution, ProblemFact};
29pub use value_range::{
30    ComputedValueRangeProvider, FieldValueRangeProvider, IntegerRange, StaticValueRange,
31    ValueRangeProvider,
32};
33pub use variable::{ChainedVariableInfo, ShadowVariableKind, ValueRangeType, VariableType};