[−][src]Trait agent_safety_layers::Agent
Implemented by agents.
Associated Types
type Model
The type of the model.
type Action
The type of actions.
type Delta
The type of delta changes (caused by mutation).
Required methods
fn update_model(&mut self, model: Self::Model)
Update internal model.
fn decide(&mut self) -> Decision<Self::Action>
Decide what to do next.
fn act(&mut self, action: Self::Action)
Perform an action on its internal model.
fn mutate(&mut self) -> Self::Delta
Mutates the agent.
fn undo(&mut self, delta: Self::Delta)
Undo mutation.
Implementors
impl<M, A, D> Agent for AgentN<M, A, D> where
A: PartialEq,
[src]
A: PartialEq,
type Model = M
type Action = A
type Delta = D
fn update_model(&mut self, model: M)
[src]
fn decide(&mut self) -> Decision<A>
[src]
fn act(&mut self, action: A)
[src]
fn mutate(&mut self) -> D
[src]
fn undo(&mut self, delta: D)
[src]
impl<M, A, D> Agent for AgentS<M, A, D> where
A: PartialEq,
[src]
A: PartialEq,