Struct asi_core0::Sequential
[−]
[src]
pub struct Sequential<D> { pub inner: D, // some fields omitted }
Wraps another decision maker by performing one read from sensor or one write to actuator at a time.
This is used for testing or developing new decision makers. The inner decision maker can be written using the assumption that there are no concurrent reads or writes.
Fields
inner: D
The inner decison maker.
Methods
impl<D> Sequential<D>
[src]
Trait Implementations
impl<D, T> DecisionMaker<T> for Sequential<D> where
D: DecisionMaker<T>,
[src]
D: DecisionMaker<T>,
fn next_action(&mut self, memory: &[T], dt: f64) -> Action
[src]
Outputs the next action to take from the memory states and time step.
fn feedback(&mut self, feedback: Result<Feedback, Error>)
[src]
Receiving feedback when something new happens.
fn shut_down(&mut self, dt: f64) -> f64
[src]
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. Read more
Auto Trait Implementations
impl<D> Send for Sequential<D> where
D: Send,
D: Send,
impl<D> Sync for Sequential<D> where
D: Sync,
D: Sync,