Skip to main content

Strategy

Trait Strategy 

Source
pub trait Strategy: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn thesis(&self) -> &'static str;
    fn enter(&self, ctx: &Context<'_>) -> Option<Plan>;
    fn exit(&self, ctx: &Context<'_>, open: &OpenView) -> bool;
}
Expand description

The whole contract between an idea and the simulator.

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn thesis(&self) -> &'static str

One paragraph: what it bets on and why SD should help.

Source

fn enter(&self, ctx: &Context<'_>) -> Option<Plan>

Source

fn exit(&self, ctx: &Context<'_>, open: &OpenView) -> bool

Implementors§