[][src]Trait kurobako_core::solver::SolverFactory

pub trait SolverFactory: Send {
    type Solver: Solver;
    fn specification(&self) -> Result<SolverSpec>;
fn create_solver(
        &self,
        rng: ArcRng,
        problem: &ProblemSpec
    ) -> Result<Self::Solver>; }

This trait allows creating instances of a solver.

Associated Types

type Solver: Solver

The type of the solver instance created by this factory.

Loading content...

Required methods

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>

Creates a solver instance.

Loading content...

Implementors

impl SolverFactory for EmbeddedScriptSolverFactory[src]

type Solver = EmbeddedScriptSolver

impl SolverFactory for ExternalProgramSolverFactory[src]

type Solver = ExternalProgramSolver

impl SolverFactory for BoxSolverFactory[src]

type Solver = BoxSolver

Loading content...