pub struct Timeline {
pub events: Vec<FactorEvent>,
pub environment: Vec<EnvironmentModulator>,
}Expand description
A person’s timeline of factor events + interventions + environment. Interventions are simply
FactorEvents carrying Effect::Supportive targets — no separate type, so they net against
adverse load through the same slice-1 accumulation.
Fields§
§events: Vec<FactorEvent>§environment: Vec<EnvironmentModulator>Implementations§
Source§impl Timeline
impl Timeline
Sourcepub fn with_event(self, e: FactorEvent) -> Self
pub fn with_event(self, e: FactorEvent) -> Self
Builder — sets the event.
Sourcepub fn with_environment(self, m: EnvironmentModulator) -> Self
pub fn with_environment(self, m: EnvironmentModulator) -> Self
Builder — sets the environment.
Sourcepub fn snapshot_at(&self, minute: i64) -> Vec<Factor>
pub fn snapshot_at(&self, minute: i64) -> Vec<Factor>
Reconstruct the slice-1 factor set as it stands at minute: each event contributes a Factor
whose target weights are its kinetic magnitude at that instant, scaled by any active environment.
Targets that have decayed (or not yet started) to zero are dropped; a fully-cleared event drops
out entirely — so it stops being a “converging factor” once it’s gone.
Sourcepub fn burden_at(&self, minute: i64) -> Vec<SystemBurden>
pub fn burden_at(&self, minute: i64) -> Vec<SystemBurden>
Per-system burden at minute (slice-1 accumulate over the snapshot).
Sourcepub fn system_trajectory(
&self,
system_id: &str,
samples: &[i64],
) -> Vec<TrajectoryPoint>
pub fn system_trajectory( &self, system_id: &str, samples: &[i64], ) -> Vec<TrajectoryPoint>
Trace one system’s net/adverse/supportive burden across the given sample minutes.