Module domain

Module domain 

Source
Expand description

Domain model traits for defining planning problems

These traits define the structure of a planning problem:

  • PlanningSolution: The container for the complete problem and solution
  • PlanningEntity: Things that can be planned/optimized
  • ProblemFact: Immutable input data
  • PlanningId: Unique identification for entities

Re-exports§

pub use listener::ListVariableListener;
pub use listener::ListVariableNotification;
pub use listener::VariableListener;
pub use listener::VariableNotification;
pub use supply::AnchorVariableSupply;
pub use supply::DemandKey;
pub use supply::ElementPosition;
pub use supply::ExternalizedAnchorVariableSupply;
pub use supply::ExternalizedSingletonInverseVariableSupply;
pub use supply::IndexVariableSupply;
pub use supply::InverseVariableSupply;
pub use supply::ListVariableStateDemand;
pub use supply::ListVariableStateSupply;
pub use supply::SingletonInverseVariableSupply;
pub use supply::Supply;
pub use supply::SupplyDemand;
pub use supply::SupplyManager;

Modules§

listener
Variable listener infrastructure for shadow variable updates.
supply
Supply infrastructure for variable relationship tracking.

Structs§

ChainedVariableInfo
Information about a chained variable’s configuration.
ComputedValueRangeProvider
A value range provider that computes values dynamically.
EntityDescriptor
Describes a planning entity type at runtime.
EntityRef
A reference to a planning entity with its index in the solution.
FieldValueRangeProvider
A value range provider backed by a field in the solution.
IntegerRange
An integer range value provider.
ProblemFactDescriptor
Describes a problem fact type at runtime.
SolutionDescriptor
Describes a planning solution at runtime.
StaticValueRange
A static value range with a fixed set of values.
TypedEntityExtractor
A concrete entity extractor for a specific solution and entity type.
VariableDescriptor
Describes a planning variable at runtime.

Enums§

ShadowVariableKind
The kind of shadow variable.
ValueRangeType
The type of value range for a planning variable.
VariableType
The type of a planning variable.

Traits§

EntityExtractor
Trait for extracting entities from a planning solution.
PlanningEntity
Marker trait for planning entities.
PlanningId
Trait for unique identification of entities and facts.
PlanningSolution
Marker trait for planning solutions.
ProblemFact
Marker trait for problem facts.
ValueRangeProvider
Provides values for a planning variable.