Class LocalExpansionEquivalence
java.lang.Object
org.tweetyproject.arg.dung.equivalence.LocalExpansionEquivalence
- All Implemented Interfaces:
Equivalence<DungTheory>
This class defines local (expansion) equivalence for
argumentation frameworks wrt. some semantics,
i.e., two AFs F and G are local expansion equivalent iff they possess the same set of
extensions wrt. the semantics under every local expansion- Author:
- Lars Bengel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalExpansionEquivalence(Semantics semantics) Initializes a new instance of this equivalence notion -
Method Summary
Modifier and TypeMethodDescriptiongetName()Return the name of this equivalence notionbooleanisEquivalent(Collection<DungTheory> theories) Checks whether the specified collection of objects are pairwise equivalentbooleanisEquivalent(DungTheory theory1, DungTheory theory2) Checks whether the specified objects are equivalentstatic booleanisLocalExpansionEquivalent(DungTheory theory1, DungTheory theory2, Semantics semantics) Naively checks whether two AFs are local equivalent by comparing the extensions of every local expansion
-
Constructor Details
-
LocalExpansionEquivalence
Initializes a new instance of this equivalence notion- Parameters:
semantics- some semantics
-
-
Method Details
-
isEquivalent
Description copied from interface:EquivalenceChecks whether the specified objects are equivalent- Specified by:
isEquivalentin interfaceEquivalence<DungTheory>- Parameters:
theory1- an object of typeTtheory2- an object of typeT- Returns:
- true, iff both object are equivalent wrt. this equivalence notion
-
isEquivalent
Description copied from interface:EquivalenceChecks whether the specified collection of objects are pairwise equivalent- Specified by:
isEquivalentin interfaceEquivalence<DungTheory>- Parameters:
theories- A collection of objects of typeT- Returns:
- true, iff all objects are equivalent wrt. this equivalence notion
-
getName
Description copied from interface:EquivalenceReturn the name of this equivalence notion- Specified by:
getNamein interfaceEquivalence<DungTheory>- Returns:
- name of this equivalence notion
-
isLocalExpansionEquivalent
public static boolean isLocalExpansionEquivalent(DungTheory theory1, DungTheory theory2, Semantics semantics) Naively checks whether two AFs are local equivalent by comparing the extensions of every local expansion- Parameters:
theory1- some argumentation frameworktheory2- some argumentation frameworksemantics- some semantics- Returns:
- 'true' iff both AFs are local equivalent under the given semantics
-