Class StrongEquivalence
java.lang.Object
org.tweetyproject.arg.dung.equivalence.StrongEquivalence
- All Implemented Interfaces:
Equivalence<DungTheory>,EquivalentTheories<DungTheory>
public class StrongEquivalence
extends Object
implements Equivalence<DungTheory>, EquivalentTheories<DungTheory>
Models strong equivalence wrt. to a given kernel
- Author:
- Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionStrongEquivalence(EquivalenceKernel kernel) initialize Equivalence with the given kernel -
Method Summary
Modifier and TypeMethodDescriptiongetEquivalentTheories(DungTheory baseTheory) compute all strongly equivalent theories for the the given theory i.e.booleanisEquivalent(Collection<DungTheory> theories) Checks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the setbooleanisEquivalent(DungTheory theory1, DungTheory theory2) Checks whether the specified objects are equivalent
-
Constructor Details
-
StrongEquivalence
initialize Equivalence with the given kernel- Parameters:
kernel- an equivalence kernel
-
-
Method Details
-
isEquivalent
Description copied from interface:EquivalenceChecks whether the specified objects are equivalent- Specified by:
isEquivalentin interfaceEquivalence<DungTheory>- Parameters:
theory1- an object of the type-parametertheory2- an object of the type-parameter- Returns:
- true if both theories are equivalent
-
isEquivalent
Description copied from interface:EquivalenceChecks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the set- Specified by:
isEquivalentin interfaceEquivalence<DungTheory>- Parameters:
theories- A collection of objects of the type-parameter- Returns:
- TRUE iff all objects are equivalent
-
getEquivalentTheories
compute all strongly equivalent theories for the the given theory i.e. get all useless attacks of theory and use them to create other strongly equivalent theories- Specified by:
getEquivalentTheoriesin interfaceEquivalentTheories<DungTheory>- Parameters:
baseTheory- a dung theory- Returns:
- the collection of strongly equivalent theories
-
getDescription
- Specified by:
getDescriptionin interfaceEquivalence<DungTheory>- Returns:
- Description of the definition
-