pub struct SolverFactory<S: PlanningSolution> { /* private fields */ }Expand description
Factory for creating Solver instances.
Implementations§
Source§impl<S: PlanningSolution> SolverFactory<S>
impl<S: PlanningSolution> SolverFactory<S>
Sourcepub fn create(config: SolverConfig) -> Result<Self, SolverForgeError>
pub fn create(config: SolverConfig) -> Result<Self, SolverForgeError>
Creates a new SolverFactory from configuration.
Sourcepub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, SolverForgeError>
pub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, SolverForgeError>
Creates a SolverFactory from a TOML configuration file.
Sourcepub fn from_yaml_file(path: impl AsRef<Path>) -> Result<Self, SolverForgeError>
pub fn from_yaml_file(path: impl AsRef<Path>) -> Result<Self, SolverForgeError>
Creates a SolverFactory from a YAML configuration file.
Sourcepub fn build_solver(&self) -> Solver<S>
pub fn build_solver(&self) -> Solver<S>
Builds a new Solver instance.
Sourcepub fn config(&self) -> &SolverConfig
pub fn config(&self) -> &SolverConfig
Returns a reference to the configuration.
Auto Trait Implementations§
impl<S> Freeze for SolverFactory<S>
impl<S> RefUnwindSafe for SolverFactory<S>where
S: RefUnwindSafe,
impl<S> Send for SolverFactory<S>
impl<S> Sync for SolverFactory<S>
impl<S> Unpin for SolverFactory<S>where
S: Unpin,
impl<S> UnwindSafe for SolverFactory<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more