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: HashMap<AID, AdvantageMetric>,
    pub total_cleared_p_t: u128,
    pub bootstrap_ns: u128,
}
Expand description

The MAXCAP Core Engine. Responsible for commercial shunting, advantage calculation, and revenue flow.

Fields§

§engine_node_aid: AID§master_shunter: SovereignShunter§agreement_directory: HashMap<AID, CommercialAgreement>§metrics_cache: HashMap<AID, AdvantageMetric>§total_cleared_p_t: u128§bootstrap_ns: u128

Implementations§

Source§

impl AdvantageEngine

Source

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

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

Source

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

MAXCAP: Execute Shunting Determines the physical performance path for a commercial request. Non-verified nodes pay the 10ms “Commercial Tax” (Shunting Penalty).

Source

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

MAXCAP: Calculate Collective Yield

Source

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

Trait Implementations§

Source§

impl CollectiveAdvantage for AdvantageEngine

Source§

fn upgrade_participant_tier_128(&mut self, aid: AID, volume_p_t: u128)

REPAIRED: Corrected variable name to volume_p_t

Source§

fn report_commercial_homeostasis(&self) -> HomeostasisScore

REPAIRED: Corrected field name to entropy_tax_rate to match RFC-000.

Source§

fn audit_commercial_compliance(&self, aid: AID) -> bool

Source§

fn calculate_advantage_multiplier(&self, aid: AID) -> f64

Source§

impl SovereignLifeform for AdvantageEngine

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.