pub struct Planner { /* private fields */ }
Implementations§
Source§impl Planner
impl Planner
Sourcepub fn new(
algorithm: Algorithm,
solution: Solution,
max_depth: usize,
actions: HashMap<String, Action>,
) -> Self
pub fn new( algorithm: Algorithm, solution: Solution, max_depth: usize, actions: HashMap<String, Action>, ) -> Self
Construct a new planner instance.
pub fn plan(&self, model: &Model) -> Plan
Sourcepub fn fast_total_plan(&self, start_model: &Model) -> Plan
pub fn fast_total_plan(&self, start_model: &Model) -> Plan
A* fast plan (traditional) focusing on lowering discontentment quickly.
Sourcepub fn fast_efficiency_plan(&self, start_model: &Model) -> Plan
pub fn fast_efficiency_plan(&self, start_model: &Model) -> Plan
A* plan optimizing efficiency (discontentment reduction per time).
Sourcepub fn fast_hybrid_plan(&self, start_model: &Model) -> Plan
pub fn fast_hybrid_plan(&self, start_model: &Model) -> Plan
A* plan mixing efficiency and raw discontentment (hybrid).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Planner
impl RefUnwindSafe for Planner
impl Send for Planner
impl Sync for Planner
impl Unpin for Planner
impl UnwindSafe for Planner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more