[][src]Trait kurobako_core::problem::ProblemFactory

pub trait ProblemFactory: Send {
    type Problem: Problem;
    fn specification(&self) -> Result<ProblemSpec>;
fn create_problem(&self, rng: ArcRng) -> Result<Self::Problem>; }

This trait allows creating instances of a problem.

Associated Types

type Problem: Problem

The type of the problem instance created by this factory.

Loading content...

Required methods

fn specification(&self) -> Result<ProblemSpec>

Returns the specification of the problem created by this factory.

fn create_problem(&self, rng: ArcRng) -> Result<Self::Problem>

Creates a problem instance.

Loading content...

Implementors

Loading content...