Class LatticeArgumentRanking
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<T,Argument>
org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation<DungTheory>
org.tweetyproject.arg.rankings.semantics.ArgumentRanking
org.tweetyproject.arg.rankings.semantics.LatticeArgumentRanking
- All Implemented Interfaces:
Comparator<Argument>
,Interpretation<DungTheory,
Argument>
This class models argument ranking by representing the acceptability of
arguments in a graph-based structure.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new argument ranking with the given arguments which are initially all incomparable. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getArgs()
getArgumentsOfStatus
(ArgumentStatus status) Returns all arguments that have the given status in this interpretation.getOrder()
boolean
isIncomparable
(Argument a, Argument b) Returns "true" iff a and b are incomparable (i.e.boolean
boolean
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.void
Defines argument "a" to be strictly less or equally acceptable than argument "b".toString()
Methods inherited from class org.tweetyproject.arg.rankings.semantics.ArgumentRanking
compare, getMaximallyAcceptedArguments, getMinimallyAcceptedArguments, isEquallyAcceptableThan, isEquivalent, isStrictlyLessAcceptableThan, isStrictlyMoreAcceptableThan, isStrictlyMoreOrEquallyAcceptableThan
Methods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
satisfies, satisfies
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LatticeArgumentRanking
Creates a new argument ranking with the given arguments which are initially all incomparable.- Parameters:
args
- a set of arguments
-
-
Method Details
-
getOrder
-
getArgs
-
setStrictlyLessOrEquallyAcceptableThan
Defines argument "a" to be strictly less or equally acceptable than argument "b".- Parameters:
a
- some argumentb
- some argument
-
isStrictlyLessOrEquallyAcceptableThan
Description copied from class:ArgumentRanking
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)- Specified by:
isStrictlyLessOrEquallyAcceptableThan
in classArgumentRanking
- Parameters:
a
- some argumentb
- some argument- Returns:
- "true" iff a is strictly less acceptable than b or a is equally acceptable as b
-
isIncomparable
Description copied from class:ArgumentRanking
Returns "true" iff a and b are incomparable (i.e. this ranking is a partial ranking).- Specified by:
isIncomparable
in classArgumentRanking
- Parameters:
a
- Argumentb
- Argument- Returns:
- "true" iff a and b are incomparable
-
containsIncomparableArguments
public boolean containsIncomparableArguments()- Specified by:
containsIncomparableArguments
in classArgumentRanking
- Returns:
- true if this ranking contains incomparable arguments, false otherwise
-
getArgumentsOfStatus
Description copied from class:AbstractArgumentationInterpretation
Returns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatus
in classAbstractArgumentationInterpretation<DungTheory>
- Parameters:
status
- the status of the arguments to be returned.- Returns:
- the set of arguments with the given status.
-
isSame
-
toString
- Specified by:
toString
in classAbstractArgumentationInterpretation<DungTheory>
-