Trait ew::tools::logging::Logger[][src]

pub trait Logger<T> {
    fn start(&mut self, _state: &dyn AlgorithmState<T>) { ... }
fn resume(&mut self, _state: &dyn AlgorithmState<T>) { ... }
fn next_iteration(&mut self, _state: &dyn AlgorithmState<T>) { ... }
fn finish(&mut self, _state: &dyn AlgorithmState<T>) { ... } }

The logging trait for algorithm with the agents.

T - type of a point in the search space for goal function.

Provided methods

fn start(&mut self, _state: &dyn AlgorithmState<T>)[src]

Will be called after algorithm initializing.

fn resume(&mut self, _state: &dyn AlgorithmState<T>)[src]

Will be called before run algorithm (possibly after result algorithm after pause).

fn next_iteration(&mut self, _state: &dyn AlgorithmState<T>)[src]

Will be called in the end of iteration.

fn finish(&mut self, _state: &dyn AlgorithmState<T>)[src]

Will be called when algorithm will be stopped.

Loading content...

Implementors

impl<'a, T: Clone> Logger<T> for StatisticsLogger<'a, T>[src]

fn start(&mut self, _state: &dyn AlgorithmState<T>)[src]

Will be called after algorithm initializing.

fn resume(&mut self, _state: &dyn AlgorithmState<T>)[src]

Will be called before run algorithm (possibly after result algorithm after pause).

fn next_iteration(&mut self, state: &dyn AlgorithmState<T>)[src]

Will be called in the end of iteration.

fn finish(&mut self, state: &dyn AlgorithmState<T>)[src]

Will be called when algorithm will be stopped.

impl<'a, T: Display> Logger<Vec<T, Global>> for ResultOnlyLogger<'a>[src]

impl<'a, T: Display> Logger<Vec<T, Global>> for TimeLogger<'a>[src]

impl<'a, T: Display> Logger<Vec<T, Global>> for VerboseLogger<'a>[src]

Loading content...