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.boolean
isEquivalent
(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 setboolean
isEquivalent
(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:Equivalence
Checks whether the specified objects are equivalent- Specified by:
isEquivalent
in 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:Equivalence
Checks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the set- Specified by:
isEquivalent
in 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:
getEquivalentTheories
in interfaceEquivalentTheories<DungTheory>
- Parameters:
baseTheory
- a dung theory- Returns:
- the collection of strongly equivalent theories
-
getDescription
- Specified by:
getDescription
in interfaceEquivalence<DungTheory>
- Returns:
- Description of the definition
-