[][src]Trait asi_core0::DecisionMaker

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

Implemented by decision making procedures.

Required methods

pub fn next_action(&mut self, memory: &[T], dt: f64) -> Action[src]

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

pub fn feedback(&mut self, res: Result<Feedback, Error>)[src]

Receiving feedback when something new happens.

pub fn shut_down(&mut self, dt: f64) -> f64[src]

Return estimate of how long 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.

Loading content...

Implementors

impl<D, T> DecisionMaker<T> for Sequential<D> where
    D: DecisionMaker<T>, 
[src]

Loading content...