Trait kurobako_core::solver::SolverFactory
source · [−]pub trait SolverFactory: Send {
type Solver: Solver;
fn specification(&self) -> Result<SolverSpec>;
fn create_solver(
&self,
rng: ArcRng,
problem: &ProblemSpec
) -> Result<Self::Solver>;
}
Expand description
This trait allows creating instances of a solver.
Required Associated Types
Required Methods
fn specification(&self) -> Result<SolverSpec>
fn specification(&self) -> Result<SolverSpec>
Returns the specification of the solver created by this factory.
fn create_solver(
&self,
rng: ArcRng,
problem: &ProblemSpec
) -> Result<Self::Solver>
fn create_solver(
&self,
rng: ArcRng,
problem: &ProblemSpec
) -> Result<Self::Solver>
Creates a solver instance.