Skip to main content

ArgumentAcceptanceEval

Struct ArgumentAcceptanceEval 

Source
pub struct ArgumentAcceptanceEval<K> { /* private fields */ }
Expand description

Acceptance evaluator that uses argumentation schemes to decide whether a responder accepts a proposed action.

When the responder has no counter-arguments, the action is accepted. When both sides have arguments, they are resolved via ASPIC+ extension semantics, and the action is accepted if the proposer’s arguments survive. When ASPIC+ is inconclusive (non-conflicting conclusions), scheme strength is compared as a fallback — both sides are scoped to the same action by the ArgumentKnowledge trait, so the stronger authority basis wins.

Implementations§

Source§

impl<K: ArgumentKnowledge> ArgumentAcceptanceEval<K>

Source

pub fn new(knowledge: K, registry: CatalogRegistry) -> Self

Create a new evaluator with the given knowledge provider and scheme registry.

Trait Implementations§

Source§

impl<K: ArgumentKnowledge, P> AcceptanceEval<P> for ArgumentAcceptanceEval<K>

Source§

fn evaluate(&self, responder: &str, action: &ScoredAffordance<P>) -> bool

Returns true if the responder accepts the given scored action.

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.