Trait genetic_planner::genetic_planner::State
[−]
[src]
pub trait State where Self: Sized + Clone + Send + Sync + 'static {
fn get_initial_state() -> Self;
fn get_random_action() -> Action<Self>;
fn is_goal(&self) -> bool;
fn get_heuristic(&self) -> i32;
}
Required Methods
fn get_initial_state() -> Self
Get the initial state
fn get_random_action() -> Action<Self>
Get a random action
fn is_goal(&self) -> bool
Verify if the current state is the goal
fn get_heuristic(&self) -> i32
Get an aproximated distance to the goal state