Skip to main content

StandardEvolutionPipeline

Struct StandardEvolutionPipeline 

Source
pub struct StandardEvolutionPipeline { /* private fields */ }
Expand description

Standard evolution pipeline implementation

Implementations§

Source§

impl StandardEvolutionPipeline

Source

pub fn new(config: EvolutionPipelineConfig, selector: Arc<dyn Selector>) -> Self

Create a pipeline with a mandatory selector and no injected ports. Detect will pass through pre-populated signals; Execute will use a no-op stub that records a synthetic success result.

Source

pub fn with_signal_extractor( self, extractor: Arc<dyn SignalExtractorPort>, ) -> Self

Attach a SignalExtractorPort for the Detect stage.

Source

pub fn with_task_class_inferencer(self, inferencer: TaskClassInferencer) -> Self

Attach a TaskClassInferencer for the Detect stage.

When attached the Detect stage automatically infers the task class from collected signals and stores the result in PipelineResult::inferred_task_class_id. If not attached, inference is skipped and the field is None.

Source

pub fn with_default_task_class_inferencer(self) -> Self

Attach a TaskClassInferencer pre-loaded with the current load_task_classes() registry (builtin + optional TOML override).

Source

pub fn with_sandbox(self, sandbox: Arc<dyn SandboxPort>) -> Self

Attach a SandboxPort for the Execute stage.

Source

pub fn with_gene_store(self, gene_store: Arc<dyn GeneStorePersistPort>) -> Self

Attach a GeneStorePersistPort for the Solidify/Reuse stages.

Source

pub fn with_validate_port(self, validator: Arc<dyn ValidatePort>) -> Self

Attach a ValidatePort for the Validate stage.

Source

pub fn with_evaluate_port(self, evaluator: Arc<dyn EvaluatePort>) -> Self

Attach an EvaluatePort for the Evaluate stage.

Trait Implementations§

Source§

impl EvolutionPipeline for StandardEvolutionPipeline

Source§

fn name(&self) -> &str

Get pipeline name
Source§

fn config(&self) -> &EvolutionPipelineConfig

Get pipeline configuration
Source§

fn execute( &self, context: PipelineContext, ) -> Result<PipelineResult, PipelineError>

Execute the full pipeline
Source§

fn execute_stage( &self, stage: PipelineStage, context: &mut PipelineContext, ) -> Result<PipelineStageState, PipelineError>

👎Deprecated:

Use execute() instead

Execute a specific stage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.