Class ArgumentRanking
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<ArgumentationFramework,Argument>
org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
org.tweetyproject.arg.rankings.semantics.ArgumentRanking
- All Implemented Interfaces:
Comparator<Argument>,Interpretation<ArgumentationFramework,Argument>
- Direct Known Subclasses:
LatticeArgumentRanking,NumericalArgumentRanking
public abstract class ArgumentRanking
extends AbstractArgumentationInterpretation
implements Comparator<Argument>
This abstract class is the common ancestor for semantical approaches to
argument ranking, i.e. relations that allow a more fine-grained comparison by
e.g. utilizing numerical values for arguments.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintabstract booleanReturns the set of all arguments a from the given set that are maximally accepted, i.e.Returns the set of all arguments a from the given set that are minimally accepted, i.e.booleanReturns "true" iff a is equally acceptable as b, i.e.booleanisEquivalent(ArgumentRanking other, Collection<Argument> args)Checks whether this ranking is equivalent to the other one wrt.abstract booleanisIncomparable(Argument a, Argument b)Returns "true" iff a and b are incomparable (i.e.booleanReturns "true" iff a is strictly less acceptable than b, i.e.abstract booleanReturns "true" iff a is strictly less acceptable than b or a is equally acceptable as b or a and b are not comparable, i.e.booleanReturns "true" iff a is strictly more acceptable than b, i.e.booleanReturns "true" iff a is strictly more acceptable than b or a is equally acceptable as b, i.e.Methods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
getArgumentsOfStatus, satisfies, satisfies, toStringMethods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ArgumentRanking
public ArgumentRanking()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Argument>
-
isStrictlyMoreAcceptableThan
Returns "true" iff a is strictly more acceptable than b, i.e. a < b (least arguments are maximally acceptable arguments)- Parameters:
a- some argumentb- some argument- Returns:
- "true" iff a is strictly more acceptable than b
-
isStrictlyLessAcceptableThan
Returns "true" iff a is strictly less acceptable than b, i.e. a > b (least arguments are maximally acceptable arguments)- Parameters:
a- some argumentb- some argument- Returns:
- "true" iff a is strictly less acceptable than b
-
isStrictlyMoreOrEquallyAcceptableThan
Returns "true" iff a is strictly more acceptable than b or a is equally acceptable as b, i.e. a <= b (or a ~ b) (least arguments are maximally acceptable arguments)- Parameters:
a- some argumentb- some argument- Returns:
- "true" iff a is strictly more acceptable than b or a is equally acceptable as b, "false" otherwise or if a and b are incomparable
-
isEquallyAcceptableThan
Returns "true" iff a is equally acceptable as b, i.e. a = b (or a ~ b) (least arguments are maximally acceptable arguments)- Parameters:
a- some argumentb- some argument- Returns:
- "true" iff a is equally acceptable as b, "false" otherwise or if a and b are incomparable
-
getMaximallyAcceptedArguments
Returns the set of all arguments a from the given set that are maximally accepted, i.e. where there is no other argument that is strictly more acceptable.- Parameters:
args- a set of arguments- Returns:
- the set of all arguments a that are maximally accepted
-
getMinimallyAcceptedArguments
Returns the set of all arguments a from the given set that are minimally accepted, i.e. where there is no other argument that is strictly less acceptable.- Parameters:
args- a set of arguments- Returns:
- the set of all arguments a that are minimalle accepted
-
isEquivalent
Checks whether this ranking is equivalent to the other one wrt. the given set of arguments.- Parameters:
other- some rankingargs- some arguments- Returns:
- "true" if both rankings are equivalent.
-
isStrictlyLessOrEquallyAcceptableThan
Returns "true" iff a is strictly less acceptable than b or a is equally acceptable as b or a and b are not comparable, i.e. a >= b (or a ~ b) (least arguments are maximally acceptable arguments)- Parameters:
a- some argumentb- some argument- Returns:
- "true" iff a is strictly less acceptable than b or a is equally acceptable as b
-
isIncomparable
Returns "true" iff a and b are incomparable (i.e. this ranking is a partial ranking).- Parameters:
a- Argumentb- Argument- Returns:
- "true" iff a and b are incomparable
-
containsIncomparableArguments
public abstract boolean containsIncomparableArguments()- Returns:
- true if this ranking contains incomparable arguments, false otherwise
-