Trait splr::state::StateIF[][src]

pub trait StateIF {
    fn is_timeout(&self) -> bool;
fn elapsed(&self) -> Option<f64>;
fn progress_header(&mut self);
fn progress<A, C, E, R>(&mut self, asg: &A, cdb: &C, elim: &E, rst: &R)
    where
        A: PropertyDereference<Tusize, usize> + PropertyReference<TEma, Ema>,
        C: PropertyDereference<Tusize, usize> + PropertyDereference<Tf64, f64>,
        E: PropertyDereference<Tusize, usize>,
        R: PropertyDereference<Tusize, usize> + PropertyReference<TEma2, Ema2>
;
fn flush<S: AsRef<str>>(&self, mes: S);
fn log<S: AsRef<str>>(&mut self, tick: usize, mes: S); }

API for state/statistics management, providing progress.

Required methods

fn is_timeout(&self) -> bool[src]

return true if it is timed out.

fn elapsed(&self) -> Option<f64>[src]

return elapsed time as a fraction. return None if something is wrong.

fn progress_header(&mut self)[src]

write a header of stat data to stdio.

fn progress<A, C, E, R>(&mut self, asg: &A, cdb: &C, elim: &E, rst: &R) where
    A: PropertyDereference<Tusize, usize> + PropertyReference<TEma, Ema>,
    C: PropertyDereference<Tusize, usize> + PropertyDereference<Tf64, f64>,
    E: PropertyDereference<Tusize, usize>,
    R: PropertyDereference<Tusize, usize> + PropertyReference<TEma2, Ema2>, 
[src]

write stat data to stdio.

fn flush<S: AsRef<str>>(&self, mes: S)[src]

write a short message to stdout.

fn log<S: AsRef<str>>(&mut self, tick: usize, mes: S)[src]

write a one-line message as log.

Loading content...

Implementors

impl StateIF for State[src]

fn progress<A, C, E, R>(&mut self, asg: &A, cdb: &C, elim: &E, rst: &R) where
    A: PropertyDereference<Tusize, usize> + PropertyReference<TEma, Ema>,
    C: PropertyDereference<Tusize, usize> + PropertyDereference<Tf64, f64>,
    E: PropertyDereference<Tusize, usize>,
    R: PropertyDereference<Tusize, usize> + PropertyReference<TEma2, Ema2>, 
[src]

mes should be shorter than or equal to 9, or 8 + a delimiter.

Loading content...