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
fn get_actions(&self, state: &S) -> ActionEstimates<S>
fn get_actions(&self, state: &S) -> ActionEstimates<S>
Returns agent’s actions for given state with their estimates. If no actions are associated, then the state is considered as terminal.
fn take_action(&mut self, action: &S::Action)
fn take_action(&mut self, action: &S::Action)
Takes the action in the current agent’s state. Potentially, changes agent state.