pub struct FactorEvent {
pub factor: Factor,
pub at_minute: i64,
pub dose_scale_pct: u32,
pub default_kinetics: Kinetics,
pub system_kinetics: Vec<(String, Kinetics)>,
}Expand description
A Factor applied at a point in time, with a dose scaler and per-system kinetics.
The factor’s slice-1 targets supply the (system, effect, evidence, base weight); kinetics decide
how each target’s contribution evolves. A target’s kinetics come from system_kinetics if present,
else default_kinetics — this is what lets one event clear on different clocks per system.
Fields§
§factor: Factor§at_minute: i64Event time on the timeline, in minutes (may be negative for “before now”).
dose_scale_pct: u32Scales every target weight (percent; 100 = as authored). A “slab” of beer vs a single can.
default_kinetics: KineticsFallback kinetics for targets without a per-system override.
system_kinetics: Vec<(String, Kinetics)>Per-system kinetics overrides (system_id → kinetics).
Implementations§
Source§impl FactorEvent
impl FactorEvent
Sourcepub fn with_dose_pct(self, dose_scale_pct: u32) -> Self
pub fn with_dose_pct(self, dose_scale_pct: u32) -> Self
Set the dose scaler (percent; 100 = as authored).
Sourcepub fn with_default_kinetics(self, k: Kinetics) -> Self
pub fn with_default_kinetics(self, k: Kinetics) -> Self
Set the fallback kinetics used for targets without a per-system override.
Sourcepub fn with_system_kinetics(
self,
system_id: impl Into<String>,
k: Kinetics,
) -> Self
pub fn with_system_kinetics( self, system_id: impl Into<String>, k: Kinetics, ) -> Self
Override the kinetics for a specific system id (e.g. hepatic clears slower than renal).