Trait vrp_core::algorithms::mdp::Agent[][src]

pub trait Agent<S: State> {
    fn get_state(&self) -> &S;
fn get_actions(&self, state: &S) -> ActionEstimates<S>;
fn take_action(&mut self, action: &S::Action); }
Expand description

Represents an agent in MDP.

Required methods

Returns the current state of the agent.

Returns agent’s actions for given state with their estimates. If no actions are associated, then the state is considered as terminal.

Takes the action in the current agent’s state. Potentially, changes agent state.

Implementors