Skip to main content

BuildOutput

Struct BuildOutput 

Source
pub struct BuildOutput {
    pub arguments: Vec<Argument>,
    pub attacks: Vec<Attack>,
    pub framework: ArgumentationFramework<ArgumentId>,
    pub rules: Vec<Rule>,
}
Expand description

The combined output of building a StructuredSystem: constructed arguments, computed attacks, and the resulting abstract framework. Returned by StructuredSystem::build_framework so consumers can get all three from a single forward-chaining pass.

Fields§

§arguments: Vec<Argument>

All arguments constructed from the knowledge base and rule set.

§attacks: Vec<Attack>

All attacks between those arguments (before defeat resolution).

§framework: ArgumentationFramework<ArgumentId>

The abstract framework with edges for defeats (post-preference).

§rules: Vec<Rule>

Copy of the rule set used to construct the arguments. Retained for post-hoc analyses like Self::check_postulates.

Implementations§

Source§

impl BuildOutput

Source

pub fn conclusions_in( &self, extension: &HashSet<ArgumentId>, ) -> HashSet<&Literal>

Return the conclusions of every argument in the given extension.

Useful for mapping a HashSet<ArgumentId> back to user-visible literal content without manually walking self.arguments.

Source

pub fn argument_by_conclusion(&self, literal: &Literal) -> Option<&Argument>

Return the first argument whose conclusion equals literal, if any.

When multiple arguments share a conclusion (e.g. two rules yielding the same literal), this returns the first one in construction order. Use Self::arguments_with_conclusion if you need all of them.

Source

pub fn arguments_with_conclusion(&self, literal: &Literal) -> Vec<&Argument>

Return every argument whose conclusion equals literal.

Source

pub fn check_postulates( &self, extension: &HashSet<ArgumentId>, ) -> PostulateReport

Check the Caminada-Amgoud rationality postulates against a given extension. Returns a super::postulates::PostulateReport listing any violations.

A clean report (empty violations) means the extension satisfies sub-argument closure, closure under strict rules, direct consistency, and indirect consistency.

Trait Implementations§

Source§

impl Debug for BuildOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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.