pub struct AdvancedAgenda { /* private fields */ }Expand description
Advanced Agenda (Drools-style)
Implementations§
Source§impl AdvancedAgenda
impl AdvancedAgenda
Sourcepub fn add_activation(&mut self, activation: Activation)
pub fn add_activation(&mut self, activation: Activation)
Add an activation to the agenda
Sourcepub fn get_next_activation(&mut self) -> Option<Activation>
pub fn get_next_activation(&mut self) -> Option<Activation>
Get the next activation to fire (from current focus)
Sourcepub fn mark_rule_fired(&mut self, activation: &Activation)
pub fn mark_rule_fired(&mut self, activation: &Activation)
Mark a rule as fired
Sourcepub fn reset_fired_flags(&mut self)
pub fn reset_fired_flags(&mut self)
Reset fired flags (for re-evaluation)
Sourcepub fn activate_ruleflow_group(&mut self, group: String)
pub fn activate_ruleflow_group(&mut self, group: String)
Activate a ruleflow group (make rules in this group eligible to fire)
Sourcepub fn deactivate_ruleflow_group(&mut self, group: &str)
pub fn deactivate_ruleflow_group(&mut self, group: &str)
Deactivate a ruleflow group
Sourcepub fn is_ruleflow_group_active(&self, group: &str) -> bool
pub fn is_ruleflow_group_active(&self, group: &str) -> bool
Check if ruleflow group is active
Sourcepub fn stats(&self) -> AgendaStats
pub fn stats(&self) -> AgendaStats
Get agenda statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedAgenda
impl RefUnwindSafe for AdvancedAgenda
impl Send for AdvancedAgenda
impl Sync for AdvancedAgenda
impl Unpin for AdvancedAgenda
impl UnwindSafe for AdvancedAgenda
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