[][src]Struct asi_core0::StandardRuntime

pub struct StandardRuntime<I, O, T, D> {
    pub agent: Option<Agent<I, O, T, D>>,
    pub wait: f64,
    pub actions: VecDeque<(Action, bool)>,
    pub memory_limit: Option<usize>,
    // some fields omitted
}

Standard runtime for running an agent.

This runtime permits setting a memory limit. A sleeping agent can also be interrupted.

The runtime keeps track of actions that are waiting for confirmation.

Fields

agent: Option<Agent<I, O, T, D>>

Stores agent data.

This is set to None before the runtime is loaded.

wait: f64

The number of seconds to wait before performing the next action.

actions: VecDeque<(Action, bool)>

Actions of sending or retrieving inputs and outputs. The flag tells whether this is done or not.

memory_limit: Option<usize>

A limit to the amount of memory states.

Implementations

impl<I, O, T, D> StandardRuntime<I, O, T, D>[src]

pub fn new() -> StandardRuntime<I, O, T, D>[src]

Creates a new standard runtime with an agent with no sensors, actuators or memory.

Trait Implementations

impl<I, O, T, D> Runtime for StandardRuntime<I, O, T, D> where
    D: DecisionMaker<T>,
    I: Sensor<T>,
    O: Actuator<T>,
    T: Default
[src]

type Agent = Agent<I, O, T, D>

The type of agent.

Auto Trait Implementations

impl<I, O, T, D> RefUnwindSafe for StandardRuntime<I, O, T, D> where
    D: RefUnwindSafe,
    I: RefUnwindSafe,
    O: RefUnwindSafe,
    T: RefUnwindSafe

impl<I, O, T, D> Send for StandardRuntime<I, O, T, D> where
    D: Send,
    I: Send,
    O: Send,
    T: Send

impl<I, O, T, D> Sync for StandardRuntime<I, O, T, D> where
    D: Sync,
    I: Sync,
    O: Sync,
    T: Sync

impl<I, O, T, D> Unpin for StandardRuntime<I, O, T, D> where
    D: Unpin,
    I: Unpin,
    O: Unpin,
    T: Unpin

impl<I, O, T, D> UnwindSafe for StandardRuntime<I, O, T, D> where
    D: UnwindSafe,
    I: UnwindSafe,
    O: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.