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