OutputHandler

Trait OutputHandler 

Source
pub trait OutputHandler: Send + Sync {
    // Required methods
    fn on_step(&mut self, step: usize, time: f64, state: &StateStore);
    fn on_complete(&mut self, state: &StateStore);
}
Expand description

Trait for output/observation handlers

Required Methods§

Source

fn on_step(&mut self, step: usize, time: f64, state: &StateStore)

Called after each simulation step

Source

fn on_complete(&mut self, state: &StateStore)

Called when simulation completes

Implementors§