pub struct ComponentFramework { /* private fields */ }Expand description
High-level facade for the modular framework
Provides a simplified interface for creating and managing modular systems with sensible defaults and common usage patterns.
Implementations§
Source§impl ComponentFramework
impl ComponentFramework
Sourcepub fn register_component_factory(
&self,
component_type: &str,
factory: Arc<dyn ComponentFactory>,
) -> SklResult<()>
pub fn register_component_factory( &self, component_type: &str, factory: Arc<dyn ComponentFactory>, ) -> SklResult<()>
Register a component factory
Sourcepub fn pipeline_builder(&self) -> PipelineBuilder
pub fn pipeline_builder(&self) -> PipelineBuilder
Create a pipeline builder
Sourcepub async fn execute_pipeline(
&self,
pipeline: Pipeline,
input_data: PipelineData,
) -> SklResult<ExecutionResult>
pub async fn execute_pipeline( &self, pipeline: Pipeline, input_data: PipelineData, ) -> SklResult<ExecutionResult>
Execute a pipeline within the framework
Sourcepub fn type_safe_composer<I, O>(&self) -> TypeSafeComposer<I, O>
pub fn type_safe_composer<I, O>(&self) -> TypeSafeComposer<I, O>
Create a type-safe composer
Sourcepub fn functional_composer(&self) -> FunctionalComposer
pub fn functional_composer(&self) -> FunctionalComposer
Create a functional composer
Sourcepub fn algebraic_composer(&self) -> AlgebraicComposer
pub fn algebraic_composer(&self) -> AlgebraicComposer
Create an algebraic composer
Sourcepub fn higher_order_composer(&self) -> HigherOrderComposer
pub fn higher_order_composer(&self) -> HigherOrderComposer
Create a higher-order composer
Sourcepub fn get_statistics(&self) -> FrameworkStatistics
pub fn get_statistics(&self) -> FrameworkStatistics
Get framework statistics
Sourcepub fn registry(&self) -> &Arc<GlobalComponentRegistry>
pub fn registry(&self) -> &Arc<GlobalComponentRegistry>
Get the component registry
Sourcepub fn dependency_resolver(&self) -> &Arc<DependencyResolver>
pub fn dependency_resolver(&self) -> &Arc<DependencyResolver>
Get the dependency resolver
Sourcepub fn lifecycle_manager(&self) -> &Arc<LifecycleManager>
pub fn lifecycle_manager(&self) -> &Arc<LifecycleManager>
Get the lifecycle manager
Sourcepub fn execution_engine(&self) -> &Arc<CompositionExecutionEngine>
pub fn execution_engine(&self) -> &Arc<CompositionExecutionEngine>
Get the execution engine
Source§impl ComponentFramework
Convenience functions for common framework operations
impl ComponentFramework
Convenience functions for common framework operations
Sourcepub fn create_sequential_pipeline(
&self,
stages: Vec<(&str, ComponentConfig)>,
) -> SklResult<Pipeline>
pub fn create_sequential_pipeline( &self, stages: Vec<(&str, ComponentConfig)>, ) -> SklResult<Pipeline>
Create a simple sequential pipeline
Sourcepub fn create_parallel_pipeline(
&self,
branches: Vec<ParallelBranch>,
) -> SklResult<Pipeline>
pub fn create_parallel_pipeline( &self, branches: Vec<ParallelBranch>, ) -> SklResult<Pipeline>
Create a parallel pipeline with branches
Sourcepub fn register_factories(
&self,
factories: Vec<(&str, Arc<dyn ComponentFactory>)>,
) -> SklResult<()>
pub fn register_factories( &self, factories: Vec<(&str, Arc<dyn ComponentFactory>)>, ) -> SklResult<()>
Register multiple component factories at once
Sourcepub fn discover_components(&self) -> Vec<ComponentTypeInfo>
pub fn discover_components(&self) -> Vec<ComponentTypeInfo>
Discover available component types
Sourcepub fn query_by_capability(&self, capability: &str) -> Vec<ComponentQuery>
pub fn query_by_capability(&self, capability: &str) -> Vec<ComponentQuery>
Query components by capability
Trait Implementations§
Source§impl Debug for ComponentFramework
impl Debug for ComponentFramework
Auto Trait Implementations§
impl Freeze for ComponentFramework
impl !RefUnwindSafe for ComponentFramework
impl Send for ComponentFramework
impl Sync for ComponentFramework
impl Unpin for ComponentFramework
impl !UnwindSafe for ComponentFramework
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more