Trait asi_core0::DecisionMaker [] [src]

pub trait DecisionMaker<T> {
    fn next_action(&mut self, memory: &[T], dt: f64) -> Action;
fn feedback(&mut self, res: Result<Feedback, Error>);
fn shut_down(&mut self, dt: f64) -> f64; }

Implemented by decision making procedures.

Required Methods

Outputs the next action to take from the memory states and time step.

Receiving feedback when something new happens.

Return estimate of how it takes to shut down from now, given a deadline. This is 0 if the decison maker is ready to shut down. When this is called, the decision maker should start preparing for shutdown. It might be called multiple times to check how the decision maker is preparing.

Implementors