Skip to main content

AdvantageEngine

Struct AdvantageEngine 

Source
pub struct AdvantageEngine {
    pub engine_node_aid: AID,
    pub master_shunter: SovereignShunter,
    pub agreement_directory: HashMap<AID, CommercialAgreement>,
    pub metrics_cache_map: HashMap<AID, AdvantageMetric>,
    pub total_cleared_p_t_128: u128,
    pub bootstrap_ns_128: u128,
    pub current_homeostasis: HomeostasisScore,
    /* private fields */
}
Expand description

The MAXCAP Core Engine. Responsible for commercial shunting, advantage calculation, and revenue flow. It maintains the economic heartbeat of the 128-bit planetary organism.

Fields§

§engine_node_aid: AID§master_shunter: SovereignShunter§agreement_directory: HashMap<AID, CommercialAgreement>§metrics_cache_map: HashMap<AID, AdvantageMetric>§total_cleared_p_t_128: u128§bootstrap_ns_128: u128§current_homeostasis: HomeostasisScore

Implementations§

Source§

impl AdvantageEngine

Source

pub fn new(engine_id: AID, is_radiant: bool) -> Self

Creates a new Radiant Advantage Engine instance v1.2.5. Triggers the Imperial Gravity Well audit immediately.

Source

pub async fn execute_shunting_128( &mut self, target: AID, current_logic_sig: u128, ) -> ShuntingStatus

MAXCAP: Execute 128-Bit Commercial Shunting Determines the physical performance path for a commercial request. Integrated with RFC-009 (Audit) and RFC-013 (Patience).

Source

pub fn calculate_collective_yield(&self, nodes: Vec<AID>) -> Picotoken

MAXCAP: Calculate Collective Yield (128-Bit)

Source

pub fn register_commercial_partner_128(&mut self, aid: AID, tier: u128)

Trait Implementations§

Source§

impl CollectiveAdvantage for AdvantageEngine

Source§

impl SovereignLifeform for AdvantageEngine

Source§

fn execute_metabolic_pulse(&self)

RFC-004 Metabolic Pulse Displays the cleared volume and the RFC-014 PICSI Resonance.

Source§

fn get_aid(&self) -> AID

Source§

fn get_homeostasis(&self) -> HomeostasisScore

Source§

fn evolve_genome(&mut self, mutation_data: &[u8])

Source§

fn report_uptime_ns(&self) -> u128

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, 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.