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: u128Implementations§
Source§impl AdvantageEngine
impl AdvantageEngine
Sourcepub fn new(engine_id: AID, is_radiant: bool) -> Self
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.
Sourcepub async fn execute_shunting_128(&mut self, target: AID) -> ShuntingStatus
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).
Sourcepub fn calculate_collective_yield(&self, nodes: Vec<AID>) -> Picotoken
pub fn calculate_collective_yield(&self, nodes: Vec<AID>) -> Picotoken
MAXCAP: Calculate Collective Yield
pub fn register_commercial_partner(&mut self, aid: AID, tier: u128)
Trait Implementations§
Source§impl CollectiveAdvantage for AdvantageEngine
impl CollectiveAdvantage for AdvantageEngine
Source§fn upgrade_participant_tier_128(&mut self, aid: AID, volume_p_t: u128)
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
fn report_commercial_homeostasis(&self) -> HomeostasisScore
REPAIRED: Corrected field name to entropy_tax_rate to match RFC-000.
fn audit_commercial_compliance(&self, aid: AID) -> bool
fn calculate_advantage_multiplier(&self, aid: AID) -> f64
Source§impl SovereignLifeform for AdvantageEngine
impl SovereignLifeform for AdvantageEngine
fn get_aid(&self) -> AID
fn get_homeostasis(&self) -> HomeostasisScore
fn execute_metabolic_pulse(&self)
fn evolve_genome(&mut self, _mutation: &[u8])
fn report_uptime_ns(&self) -> u128
Auto Trait Implementations§
impl Freeze for AdvantageEngine
impl RefUnwindSafe for AdvantageEngine
impl Send for AdvantageEngine
impl Sync for AdvantageEngine
impl Unpin for AdvantageEngine
impl UnsafeUnpin for AdvantageEngine
impl UnwindSafe for AdvantageEngine
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