pub struct MultipleSelvesSystem { /* private fields */ }Expand description
System managing multiple sub-personalities
Implementations§
Source§impl MultipleSelvesSystem
impl MultipleSelvesSystem
Sourcepub fn add_self(&mut self, name: &str, emotional_tone: EmotionalTone) -> Uuid
pub fn add_self(&mut self, name: &str, emotional_tone: EmotionalTone) -> Uuid
Add a new sub-personality
Sourcepub fn measure_coherence(&mut self) -> f64
pub fn measure_coherence(&mut self) -> f64
Measure overall coherence
Sourcepub fn create_conflict(&mut self, self1: Uuid, self2: Uuid)
pub fn create_conflict(&mut self, self1: Uuid, self2: Uuid)
Create conflict between selves
Sourcepub fn resolve_conflict(&mut self, self1: Uuid, self2: Uuid) -> Option<Uuid>
pub fn resolve_conflict(&mut self, self1: Uuid, self2: Uuid) -> Option<Uuid>
Resolve conflict through executive function
Sourcepub fn get_dominant(&self) -> Option<&SubPersonality>
pub fn get_dominant(&self) -> Option<&SubPersonality>
Get dominant self
Sourcepub fn all_selves(&self) -> &[SubPersonality]
pub fn all_selves(&self) -> &[SubPersonality]
Get all selves
Sourcepub fn self_count(&self) -> usize
pub fn self_count(&self) -> usize
Get self count
Sourcepub fn coherence(&self) -> &SelfCoherence
pub fn coherence(&self) -> &SelfCoherence
Get coherence
Trait Implementations§
Source§impl Debug for MultipleSelvesSystem
impl Debug for MultipleSelvesSystem
Auto Trait Implementations§
impl Freeze for MultipleSelvesSystem
impl RefUnwindSafe for MultipleSelvesSystem
impl Send for MultipleSelvesSystem
impl Sync for MultipleSelvesSystem
impl Unpin for MultipleSelvesSystem
impl UnwindSafe for MultipleSelvesSystem
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