Skip to main content

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

Structs§

CascadePropagation
Reusable propagation state for one solution’s cascading shadow.
DynamicListAccessCapabilities
Object-safe dynamic list variable access.
DynamicListMetadataCapabilities
Immutable capabilities bound to one dynamic planning-list slot.
DynamicListVariableSlot
Public dynamic list variable slot.
DynamicScalarAssignmentMetadataCapabilities
Structural capabilities supplied by a dynamic scalar-assignment group.
DynamicScalarVariableSlot
Public dynamic scalar variable slot.
EntityClassId
Logical planning-entity class identifier.
EntityCollectionExtractor
A concrete entity extractor for a specific solution and entity type.
EntityDescriptor
Describes a planning entity type at runtime.
EntityRef
A reference to a planning entity with its index in the solution.
ProblemFactClassId
Logical problem-fact class identifier.
ProblemFactDescriptor
Describes a problem fact type at runtime.
SolutionDescriptor
Describes a planning solution at runtime.
VariableDescriptor
Describes a planning variable at runtime.
VariableId
Logical planning-variable identifier.

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§

DynamicListAccess
Object-safe dynamic list variable access.
DynamicListMetadata
Slot-bound immutable metadata used by canonical dynamic-list phases.
DynamicModelBackend
Rust-owned dynamic planning model backend.
DynamicScalarAccess
Object-safe dynamic scalar variable access.
DynamicScalarAssignmentMetadata
Object-safe metadata access for one dynamic scalar-assignment group.
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.

Type Aliases§

UsizeCandidateValues
Returns bounded candidate indexes for (solution, entity_index, variable_index).
UsizeConstructionEntityOrderKey
Construction ranking key for an entity: (solution, entity_index) -> key.
UsizeConstructionValueOrderKey
Construction ranking key for a candidate value: (solution, entity_index, value) -> key.
UsizeEntityValueProvider
Returns the legal value indexes declared on a type-erased entity.
UsizeGetter
Reads a scalar variable’s value index from a type-erased entity; None means unassigned.
UsizeNearbyEntityDistanceMeter
Distance between two entities: (solution, left_entity_index, right_entity_index) -> distance.
UsizeNearbyValueDistanceMeter
Distance between an entity and a candidate value: (solution, entity_index, value) -> distance.
UsizeSearchEntityOrderKey
Local-search ranking key for an entity: (solution, entity_index) -> key; lower keys are tried first.
UsizeSearchValueOrderKey
Local-search ranking key for a candidate value: (solution, entity_index, value) -> key; lower keys are tried first.
UsizeSetter
Writes a scalar variable’s value index on a type-erased entity; None unassigns it.