pub struct Plan { /* private fields */ }Expand description
A sweep spec checked against a model, with every config listed.
Runs are numbered config by config, so run run_id is replicate run_id % replicates of config
run_id / replicates.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn config(&self, config_id: u64) -> Option<&Config>
pub fn config(&self, config_id: u64) -> Option<&Config>
Returns config config_id, or None past the last config.
Sourcepub fn blocks(&self) -> &[PlannedBlock]
pub fn blocks(&self) -> &[PlannedBlock]
Every block, in spec order.
Sourcepub fn run_settings(&self) -> &RunSettings
pub fn run_settings(&self) -> &RunSettings
Length and end of each run, and the number of runs per config.
Sourcepub fn measure_settings(&self) -> &MeasureSettings
pub fn measure_settings(&self) -> &MeasureSettings
Ticks each run samples, and the values it keeps from them.
Sourcepub fn seed_settings(&self) -> SeedSettings
pub fn seed_settings(&self) -> SeedSettings
Root seed and the scheme that derives each run’s seed from it.
Sourcepub fn actions(&self) -> &[ActionSpec]
pub fn actions(&self) -> &[ActionSpec]
Actions every run fires, in spec order, the order of Config::action_ticks.
Sourcepub fn warnings(&self) -> &[PlanWarning]
pub fn warnings(&self) -> &[PlanWarning]
Warnings about parts of the plan that run, though likely not as intended.
Sourcepub fn replicates(&self) -> u64
pub fn replicates(&self) -> u64
Number of runs per config.
Sourcepub fn run(&self, run_id: u64) -> Option<PlannedRun>
pub fn run(&self, run_id: u64) -> Option<PlannedRun>
Returns run run_id, or None past the last run.
Sourcepub fn runs(&self) -> impl Iterator<Item = PlannedRun> + '_
pub fn runs(&self) -> impl Iterator<Item = PlannedRun> + '_
Returns every run in order.
Sourcepub fn runs_in_shard(
&self,
shard: Shard,
) -> impl Iterator<Item = PlannedRun> + '_
pub fn runs_in_shard( &self, shard: Shard, ) -> impl Iterator<Item = PlannedRun> + '_
Returns the runs of shard in order.
Sourcepub fn schedule(&self, config: &Config) -> Schedule
pub fn schedule(&self, config: &Config) -> Schedule
Returns the actions of config in the order they fire, by tick and then in spec order.
§Panics
Panics when config does not hold one tick per action of the plan.
Sourcepub fn replay(&self, run_id: u64) -> Option<Replay>
pub fn replay(&self, run_id: u64) -> Option<Replay>
Returns the Replay of run run_id, or None past the last run.
Sourcepub fn run_key(&self, run: &PlannedRun) -> u64
pub fn run_key(&self, run: &PlannedRun) -> u64
Sourcepub fn schema_hash(&self) -> u64
pub fn schema_hash(&self) -> u64
Hash of the model’s declarations, from schema_hash.
Sourcepub fn results_fingerprint(&self) -> u64
pub fn results_fingerprint(&self) -> u64
Hash of every setting that shapes the results of one run, from results_fingerprint.