pub struct DynamicPreferredSemanticsSolver<T>where
T: LabelType,{ /* private fields */ }Expand description
A dynamic solver dedicated to the preferred semantics.
Implementations§
Source§impl<T> DynamicPreferredSemanticsSolver<T>where
T: LabelType,
impl<T> DynamicPreferredSemanticsSolver<T>where
T: LabelType,
Sourcepub fn new() -> Selfwhere
T: LabelType,
pub fn new() -> Selfwhere
T: LabelType,
Builds a new SAT based dynamic solver for the preferred semantics.
The underlying SAT solver is one returned by default_solver.
Sourcepub fn new_with_sat_solver_factory(
solver_factory: Box<SatSolverFactoryFn>,
) -> Selfwhere
T: LabelType,
pub fn new_with_sat_solver_factory(
solver_factory: Box<SatSolverFactoryFn>,
) -> Selfwhere
T: LabelType,
Builds a new SAT based dynamic solver for the preferred semantics.
The SAT solver to use in given through the solver factory.
Trait Implementations§
Source§impl<T> CredulousAcceptanceComputer<T> for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
impl<T> CredulousAcceptanceComputer<T> for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
Source§fn are_credulously_accepted(&mut self, _args: &[&T]) -> bool
fn are_credulously_accepted(&mut self, _args: &[&T]) -> bool
Checks the credulous acceptance of a disjunction of arguments. Read more
Source§fn are_credulously_accepted_with_certificate(
&mut self,
_args: &[&T],
) -> (bool, Option<Vec<&Argument<T>>>)
fn are_credulously_accepted_with_certificate( &mut self, _args: &[&T], ) -> (bool, Option<Vec<&Argument<T>>>)
Checks the credulous acceptance of a disjunction of arguments, and provide a certificate if it is the case. Read more
Source§impl<T> Default for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
impl<T> Default for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
Source§impl<T> DynamicSolver<T> for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
impl<T> DynamicSolver<T> for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
Source§fn new_argument(&mut self, label: T)
fn new_argument(&mut self, label: T)
Adds a new argument to the underlying AF.
Source§impl<T> SkepticalAcceptanceComputer<T> for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
impl<T> SkepticalAcceptanceComputer<T> for DynamicPreferredSemanticsSolver<T>where
T: LabelType,
Source§fn are_skeptically_accepted_with_certificate(
&mut self,
args: &[&T],
) -> (bool, Option<Vec<&Argument<T>>>)
fn are_skeptically_accepted_with_certificate( &mut self, args: &[&T], ) -> (bool, Option<Vec<&Argument<T>>>)
Checks the skeptical acceptance of a disjunction of arguments, and provide a certificate if it is the case. Read more
Source§fn are_skeptically_accepted(&mut self, args: &[&T]) -> bool
fn are_skeptically_accepted(&mut self, args: &[&T]) -> bool
Checks the skeptical acceptance of a disjunction of arguments. Read more
Auto Trait Implementations§
impl<T> !Freeze for DynamicPreferredSemanticsSolver<T>
impl<T> !RefUnwindSafe for DynamicPreferredSemanticsSolver<T>
impl<T> !Send for DynamicPreferredSemanticsSolver<T>
impl<T> !Sync for DynamicPreferredSemanticsSolver<T>
impl<T> Unpin for DynamicPreferredSemanticsSolver<T>where
T: Unpin,
impl<T> !UnwindSafe for DynamicPreferredSemanticsSolver<T>
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