DummyDynamicConstraintsEncoder

Struct DummyDynamicConstraintsEncoder 

Source
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,

Source

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,

Source§

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>>>)

Checks the credulous acceptance of a disjunction of arguments, and provide a certificate if it is the case. Read more
Source§

fn is_credulously_accepted(&mut self, arg: &T) -> bool

Checks the credulous acceptance of an argument. Read more
Source§

fn is_credulously_accepted_with_certificate( &mut self, arg: &T, ) -> (bool, Option<Vec<&Argument<T>>>)

Checks the credulous acceptance of an argument, and provide a certificate if it is the case. Read more
Source§

impl<T> DynamicSolver<T> for DummyDynamicConstraintsEncoder<T>
where T: LabelType,

Source§

fn new_argument(&mut self, label: T)

Adds a new argument to the underlying AF.
Source§

fn remove_argument(&mut self, label: &T) -> Result<()>

Removes an argument from the underlying AF.
Source§

fn new_attack(&mut self, from: &T, to: &T) -> Result<()>

Adds an attack to the underlying AF.
Source§

fn remove_attack(&mut self, from: &T, to: &T) -> Result<()>

Removes an attack from the underlying AF.
Source§

impl<T> SingleExtensionComputer<T> for DummyDynamicConstraintsEncoder<T>
where T: LabelType,

Source§

fn compute_one_extension(&mut self) -> Option<Vec<&Argument<T>>>

Computes a single extension. Read more
Source§

impl<T> SkepticalAcceptanceComputer<T> for DummyDynamicConstraintsEncoder<T>
where T: LabelType,

Source§

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>>>)

Checks the skeptical acceptance of a disjunction of arguments, and provide a certificate if it is the case. Read more
Source§

fn is_skeptically_accepted(&mut self, arg: &T) -> bool

Checks the skeptical acceptance of an argument. Read more
Source§

fn is_skeptically_accepted_with_certificate( &mut self, arg: &T, ) -> (bool, Option<Vec<&Argument<T>>>)

Checks the skeptical acceptance of an argument, and provide a certificate if it is the case. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.