pub struct BipolarFramework {
pub af: ArgumentationFramework,
pub supports: Vec<(u64, u64)>,
}Expand description
A Dung framework augmented with a binary support relation.
Fields§
§af: ArgumentationFramework§supports: Vec<(u64, u64)>(supporter, supported) edges.
Implementations§
Source§impl BipolarFramework
impl BipolarFramework
Sourcepub fn new(af: ArgumentationFramework) -> Self
pub fn new(af: ArgumentationFramework) -> Self
Creates BipolarFramework with the given state.
Sourcepub fn add_support(&mut self, supporter: u64, supported: u64)
pub fn add_support(&mut self, supporter: u64, supported: u64)
Add a support edge supporter → supported.
Sourcepub fn support_reaches(&self, from: u64, to: u64) -> bool
pub fn support_reaches(&self, from: u64, to: u64) -> bool
Is there a support path from →…→ to of length ≥ 1?
Sourcepub fn to_dung(&self) -> ArgumentationFramework
pub fn to_dung(&self) -> ArgumentationFramework
Project to a Dung framework whose attacks are the original attacks PLUS the derived supported and secondary attacks. Duplicate edges are harmless to the semantics.
Sourcepub fn grounded_extension(&self) -> HashSet<u64>
pub fn grounded_extension(&self) -> HashSet<u64>
Grounded extension over the derived (complex-attack) Dung framework.
Trait Implementations§
Source§impl Clone for BipolarFramework
impl Clone for BipolarFramework
Auto Trait Implementations§
impl Freeze for BipolarFramework
impl RefUnwindSafe for BipolarFramework
impl Send for BipolarFramework
impl Sync for BipolarFramework
impl Unpin for BipolarFramework
impl UnsafeUnpin for BipolarFramework
impl UnwindSafe for BipolarFramework
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more