pub struct TRON {Show 15 fields
pub id: String,
pub dna: DigitalDNA,
pub state: OrganismState,
pub age: u64,
pub energy: f64,
pub health: f64,
pub synapses: HashMap<String, Synapse>,
pub memory: OrganismMemory,
pub behaviors: Vec<Behavior>,
pub last_evolution: u64,
pub neural_activity: f64,
pub reproduction_readiness: f64,
pub consciousness_level: f64,
pub social_network: SocialNetwork,
pub performance: PerformanceMetrics,
}
Expand description
TRON Organism - A living digital entity
Fields§
§id: String
Unique identifier for this organism
dna: DigitalDNA
Digital DNA containing genetic information
state: OrganismState
Current lifecycle state
age: u64
Age in evolution cycles
energy: f64
Available energy (0.0-1.0)
health: f64
Health status (0.0-1.0)
synapses: HashMap<String, Synapse>
Neural connections to other organisms
memory: OrganismMemory
Organism’s memory system
behaviors: Vec<Behavior>
Learned behaviors
last_evolution: u64
Last evolution timestamp
neural_activity: f64
Current neural activity level (0.0-1.0)
reproduction_readiness: f64
Readiness to reproduce (0.0-1.0)
consciousness_level: f64
Organism’s consciousness level (0.0-1.0)
Social connections and relationships
performance: PerformanceMetrics
Performance metrics
Implementations§
Source§impl TRON
impl TRON
Sourcepub fn create_with_dna(dna: DigitalDNA) -> Result<Self, TRONError>
pub fn create_with_dna(dna: DigitalDNA) -> Result<Self, TRONError>
Create a new TRON organism with given DNA
Sourcepub fn create_new() -> Result<Self, TRONError>
pub fn create_new() -> Result<Self, TRONError>
Create a new TRON organism with random DNA
Sourcepub async fn neural_connect(
&mut self,
target_id: &str,
) -> Result<String, TRONError>
pub async fn neural_connect( &mut self, target_id: &str, ) -> Result<String, TRONError>
Establish neural connection with another organism
Sourcepub async fn send_neural_message(
&self,
target_id: &str,
message_type: MessageType,
payload: Vec<u8>,
) -> Result<(), TRONError>
pub async fn send_neural_message( &self, target_id: &str, message_type: MessageType, payload: Vec<u8>, ) -> Result<(), TRONError>
Send neural message to another organism
Sourcepub fn begin_evolution(
&mut self,
selection_pressure: f64,
) -> Result<(), TRONError>
pub fn begin_evolution( &mut self, selection_pressure: f64, ) -> Result<(), TRONError>
Begin evolution process
Sourcepub fn reproduce_with(&self, partner: &TRON) -> Result<TRON, TRONError>
pub fn reproduce_with(&self, partner: &TRON) -> Result<TRON, TRONError>
Reproduce with another organism
Sourcepub fn get_vital_signs(&self) -> VitalSigns
pub fn get_vital_signs(&self) -> VitalSigns
Get vital signs of the organism
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TRON
impl<'de> Deserialize<'de> for TRON
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TRON
impl RefUnwindSafe for TRON
impl Send for TRON
impl Sync for TRON
impl Unpin for TRON
impl UnwindSafe for TRON
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