pub struct DummyDynamicConstraintsEncoder<T>where
T: LabelType,{ /* private fields */ }
Expand description
A dynamic solver that just recomputes from scratch every time it is called.
Implementations§
Source§impl<T> DummyDynamicConstraintsEncoder<T>where
T: LabelType,
impl<T> DummyDynamicConstraintsEncoder<T>where
T: LabelType,
Sourcepub fn new(
single_extension_computer_factory: Option<Box<dyn for<'a> Fn(&'a AAFramework<T>) -> Box<dyn SingleExtensionComputer<T> + 'a>>>,
credulous_acceptance_computer_factory: Option<Box<dyn for<'a> Fn(&'a AAFramework<T>) -> Box<dyn CredulousAcceptanceComputer<T> + 'a>>>,
skeptical_acceptance_computer_factory: Option<Box<dyn for<'a> Fn(&'a AAFramework<T>) -> Box<dyn SkepticalAcceptanceComputer<T> + 'a>>>,
) -> Self
pub fn new( single_extension_computer_factory: Option<Box<dyn for<'a> Fn(&'a AAFramework<T>) -> Box<dyn SingleExtensionComputer<T> + 'a>>>, credulous_acceptance_computer_factory: Option<Box<dyn for<'a> Fn(&'a AAFramework<T>) -> Box<dyn CredulousAcceptanceComputer<T> + 'a>>>, skeptical_acceptance_computer_factory: Option<Box<dyn for<'a> Fn(&'a AAFramework<T>) -> Box<dyn SkepticalAcceptanceComputer<T> + 'a>>>, ) -> Self
Builds a new dummy solver given factories to build its underlying solvers.
Trait Implementations§
Source§impl<T> CredulousAcceptanceComputer<T> for DummyDynamicConstraintsEncoder<T>where
T: LabelType,
impl<T> CredulousAcceptanceComputer<T> for DummyDynamicConstraintsEncoder<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> DynamicSolver<T> for DummyDynamicConstraintsEncoder<T>where
T: LabelType,
impl<T> DynamicSolver<T> for DummyDynamicConstraintsEncoder<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> SingleExtensionComputer<T> for DummyDynamicConstraintsEncoder<T>where
T: LabelType,
impl<T> SingleExtensionComputer<T> for DummyDynamicConstraintsEncoder<T>where
T: LabelType,
Source§impl<T> SkepticalAcceptanceComputer<T> for DummyDynamicConstraintsEncoder<T>where
T: LabelType,
impl<T> SkepticalAcceptanceComputer<T> for DummyDynamicConstraintsEncoder<T>where
T: LabelType,
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
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
Auto Trait Implementations§
impl<T> Freeze for DummyDynamicConstraintsEncoder<T>
impl<T> !RefUnwindSafe for DummyDynamicConstraintsEncoder<T>
impl<T> !Send for DummyDynamicConstraintsEncoder<T>
impl<T> !Sync for DummyDynamicConstraintsEncoder<T>
impl<T> Unpin for DummyDynamicConstraintsEncoder<T>where
T: Unpin,
impl<T> !UnwindSafe for DummyDynamicConstraintsEncoder<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