Class Realizability
java.lang.Object
org.tweetyproject.arg.dung.util.Realizability
Contains some methods for checking realizability
of extension sets, see e.g. [Dunne, Dvorak, Linsbichler, Woltran: Characteristics of multiple viewpoints in abstract argumentation.
Artificial Intelligence 228: 153-178, 2015]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
<Argument> args
(Collection<Extension<DungTheory>> exts) Returns the set of all arguments appearing in some extension.static boolean
isAdmClosed
(Collection<Extension<DungTheory>> exts) Checks whether the given set is adm-closed, i.e., whether for each pair ext1, ext2 of extensions we have that if all a in ext1 and b in ext2 are a pair, then (ext1 union ext2) is also an extension.static boolean
Checks whether the set is downward-closed, i.e., if it contains each subset of each contained set.static boolean
isIncomparable
(Collection<Extension<DungTheory>> exts) Checks whether the given set is incomparable, i.e., whether for each pair ext1, ext2 of extensions we have that neither is a proper subset of the other.static boolean
isPair
(Collection<Extension<DungTheory>> exts, Argument a, Argument b) Checks whether the given pair of arguments is a pair in the extension set, i.e.static boolean
isPrefClosed
(Collection<Extension<DungTheory>> exts) Checks whether the given set if pref-closed, i.e., whether it is incomparable and adm-closed.static boolean
isTight
(Collection<Extension<DungTheory>> exts) Checks whether the given set is tight, i.e., whether for all extensions ext and each argument a, if (ext with a) is not in the set, there there is an argument b in ext such that (a,b) is not a pair.static Collection
<Set<Argument>> pairs
(Collection<Extension<DungTheory>> exts) Returns the set of sets of arguments {a,b}, s.t.
-
Constructor Details
-
Realizability
public Realizability()
-
-
Method Details
-
args
Returns the set of all arguments appearing in some extension.- Parameters:
exts
- some set of extensions- Returns:
- the set of all arguments appearing in some extension.
-
isPair
Checks whether the given pair of arguments is a pair in the extension set, i.e. whether there is an extension that contains both arguments.- Parameters:
exts
- some set of extensionsa
- some argumentb
- some argument- Returns:
- true, if the two arguments are a pair.
-
pairs
Returns the set of sets of arguments {a,b}, s.t. both a and b appear in at least one extension.- Parameters:
exts
- some set of extensions- Returns:
- the set of all arguments appearing in some extension.
-
isDownwardClosed
Checks whether the set is downward-closed, i.e., if it contains each subset of each contained set.- Parameters:
exts
- some set of extensions- Returns:
- true if the set is downward-closed
-
isTight
Checks whether the given set is tight, i.e., whether for all extensions ext and each argument a, if (ext with a) is not in the set, there there is an argument b in ext such that (a,b) is not a pair.- Parameters:
exts
- some set of extensions- Returns:
- true if the set is tight.
-
isIncomparable
Checks whether the given set is incomparable, i.e., whether for each pair ext1, ext2 of extensions we have that neither is a proper subset of the other.- Parameters:
exts
- some set of extensions- Returns:
- true if the set is incomparable.
-
isAdmClosed
Checks whether the given set is adm-closed, i.e., whether for each pair ext1, ext2 of extensions we have that if all a in ext1 and b in ext2 are a pair, then (ext1 union ext2) is also an extension.- Parameters:
exts
- some set of extensions- Returns:
- true if the set is adm-closed.
-
isPrefClosed
Checks whether the given set if pref-closed, i.e., whether it is incomparable and adm-closed.- Parameters:
exts
- a set of extensions- Returns:
- true if the set is pref-closed.
-