pub struct ConsciousnessModule {
pub intuitive_planner: IntuitiveQueryPlanner,
pub quantum_consciousness: QuantumConsciousnessState,
pub emotional_learning: EmotionalLearningNetwork,
pub dream_processor: DreamProcessor,
pub consciousness_level: f64,
pub emotional_state: EmotionalState,
pub integration_level: f64,
/* private fields */
}Expand description
Consciousness-inspired processing capabilities with performance optimizations
Fields§
§intuitive_planner: IntuitiveQueryPlannerIntuitive query planner
quantum_consciousness: QuantumConsciousnessStateQuantum consciousness state processor
emotional_learning: EmotionalLearningNetworkEmotional learning network
dream_processor: DreamProcessorDream state processor
consciousness_level: f64Overall consciousness level (0.0 to 1.0)
emotional_state: EmotionalStateEmotional state of the system
integration_level: f64Consciousness integration level
Implementations§
Source§impl ConsciousnessModule
impl ConsciousnessModule
Sourcepub fn new(traditional_stats: Arc<IndexStats>) -> Self
pub fn new(traditional_stats: Arc<IndexStats>) -> Self
Create a new consciousness module with performance optimizations
Sourcepub fn adjust_consciousness(&mut self, performance_feedback: f64)
pub fn adjust_consciousness(&mut self, performance_feedback: f64)
Adjust consciousness level based on system performance
Sourcepub fn emotional_influence(&self) -> f64
pub fn emotional_influence(&self) -> f64
Get the current emotional influence on processing with caching optimization
Sourcepub fn get_performance_metrics(&self) -> ConsciousnessPerformanceMetrics
pub fn get_performance_metrics(&self) -> ConsciousnessPerformanceMetrics
Get performance metrics and optimization suggestions
Sourcepub fn optimize_performance(&mut self)
pub fn optimize_performance(&mut self)
Optimize consciousness module performance
Sourcepub fn enter_creative_mode(&mut self)
pub fn enter_creative_mode(&mut self)
Enter creative mode for exploration
Sourcepub fn return_to_calm(&mut self)
pub fn return_to_calm(&mut self)
Return to calm state
Sourcepub fn quantum_consciousness_measurement(
&mut self,
) -> Result<QuantumMeasurement, OxirsError>
pub fn quantum_consciousness_measurement( &mut self, ) -> Result<QuantumMeasurement, OxirsError>
Perform quantum-enhanced consciousness measurement
Sourcepub fn enter_dream_state(
&mut self,
dream_state: DreamState,
) -> Result<(), OxirsError>
pub fn enter_dream_state( &mut self, dream_state: DreamState, ) -> Result<(), OxirsError>
Enter dream state for memory consolidation and creative insights
Sourcepub fn process_dream_step(&mut self) -> Result<StepResult, OxirsError>
pub fn process_dream_step(&mut self) -> Result<StepResult, OxirsError>
Process dream step and integrate insights
Sourcepub fn wake_up_from_dream(&mut self) -> Result<WakeupReport, OxirsError>
pub fn wake_up_from_dream(&mut self) -> Result<WakeupReport, OxirsError>
Wake up from dream state and process insights
Sourcepub fn get_consciousness_insights(
&self,
patterns: &[AlgebraTriplePattern],
) -> Result<ConsciousnessInsights, OxirsError>
pub fn get_consciousness_insights( &self, patterns: &[AlgebraTriplePattern], ) -> Result<ConsciousnessInsights, OxirsError>
Get integrated consciousness insights for query processing with caching optimization
Sourcepub fn evolve_consciousness(
&mut self,
experience_feedback: &ExperienceFeedback,
) -> Result<(), OxirsError>
pub fn evolve_consciousness( &mut self, experience_feedback: &ExperienceFeedback, ) -> Result<(), OxirsError>
Evolve consciousness through experience
Source§impl ConsciousnessModule
impl ConsciousnessModule
Sourcepub fn integrate_with_meta_consciousness(
&mut self,
meta_consciousness: &mut MetaConsciousness,
) -> Result<(), OxirsError>
pub fn integrate_with_meta_consciousness( &mut self, meta_consciousness: &mut MetaConsciousness, ) -> Result<(), OxirsError>
Enhanced integration method with meta-consciousness
Sourcepub fn adapt_to_query_patterns(
&mut self,
query_patterns: &[AlgebraTriplePattern],
execution_metrics: &QueryExecutionMetrics,
) -> Result<(), OxirsError>
pub fn adapt_to_query_patterns( &mut self, query_patterns: &[AlgebraTriplePattern], execution_metrics: &QueryExecutionMetrics, ) -> Result<(), OxirsError>
Advanced pattern-based consciousness adaptation
Sourcepub fn optimize_query_with_consciousness(
&self,
original_plan: &ExecutionPlan,
) -> Result<OptimizedConsciousPlan, OxirsError>
pub fn optimize_query_with_consciousness( &self, original_plan: &ExecutionPlan, ) -> Result<OptimizedConsciousPlan, OxirsError>
Integration with query optimization pipeline
Auto Trait Implementations§
impl Freeze for ConsciousnessModule
impl RefUnwindSafe for ConsciousnessModule
impl Send for ConsciousnessModule
impl Sync for ConsciousnessModule
impl Unpin for ConsciousnessModule
impl UnsafeUnpin for ConsciousnessModule
impl UnwindSafe for ConsciousnessModule
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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