Package net.sf.tweety.arg.dung.semantics
Class NumericalArgumentRanking
- java.lang.Object
-
- net.sf.tweety.commons.AbstractInterpretation<DungTheory,Argument>
-
- net.sf.tweety.arg.dung.semantics.AbstractArgumentationInterpretation
-
- net.sf.tweety.arg.dung.semantics.ArgumentRanking
-
- net.sf.tweety.arg.dung.semantics.NumericalArgumentRanking
-
- All Implemented Interfaces:
Comparator<Argument>,Map<Argument,Double>,net.sf.tweety.commons.Interpretation<DungTheory,Argument>
public class NumericalArgumentRanking extends ArgumentRanking implements Map<Argument,Double>
This class provides a acceptability interpretation of arguments by assigning them real values where larger values indicate more acceptability.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description static doublePRECISIONPrecision for comparing values.
-
Constructor Summary
Constructors Constructor Description NumericalArgumentRanking()Creates a new empty argument rankingNumericalArgumentRanking(Collection<Argument> args, double initialvalue)Creates a new argument ranking.
-
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(Object arg0)booleancontainsValue(Object arg0)Set<Map.Entry<Argument,Double>>entrySet()Doubleget(Object arg0)ExtensiongetArgumentsOfStatus(ArgumentStatus status)Returns all arguments that have the given status in this interpretation.booleanisEmpty()booleanisStrictlyLessOrEquallyAcceptableThan(Argument a, Argument b)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.Set<Argument>keySet()Doubleput(Argument arg0, Double arg1)voidputAll(Map<? extends Argument,? extends Double> arg0)Doubleremove(Object arg0)intsize()StringtoString()Collection<Double>values()-
Methods inherited from class net.sf.tweety.arg.dung.semantics.ArgumentRanking
compare, getMaximallyAcceptedArguments, getMinimallyAcceptedArguments, isEquallyAcceptableThan, isEquivalent, isStrictlyLessAcceptableThan, isStrictlyMoreAcceptableThan, isStrictlyMoreOrEquallyAcceptableThan
-
Methods inherited from class net.sf.tweety.arg.dung.semantics.AbstractArgumentationInterpretation
isAcceptable, isAdmissable, isConflictFree, satisfies, satisfies
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
NumericalArgumentRanking
public NumericalArgumentRanking()
Creates a new empty argument ranking
-
NumericalArgumentRanking
public NumericalArgumentRanking(Collection<Argument> args, double initialvalue)
Creates a new argument ranking. All arguments given are assigned the given initial value.- Parameters:
args- some set of argumentsinitialvalue- an initial value for all arguments
-
-
Method Detail
-
isStrictlyLessOrEquallyAcceptableThan
public boolean isStrictlyLessOrEquallyAcceptableThan(Argument a, Argument b)
Description copied from class:ArgumentRankingReturns "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:
isStrictlyLessOrEquallyAcceptableThanin classArgumentRanking- Parameters:
a- some argumentb- some argument- Returns:
- "true" iff a is strictly less acceptable than b or a is equally acceptable as b or a and b are not comparable
-
getArgumentsOfStatus
public Extension getArgumentsOfStatus(ArgumentStatus status)
Description copied from class:AbstractArgumentationInterpretationReturns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatusin classAbstractArgumentationInterpretation- Parameters:
status- the status of the arguments to be returned.- Returns:
- the set of arguments with the given status.
-
toString
public String toString()
- Specified by:
toStringin classAbstractArgumentationInterpretation
-
containsKey
public boolean containsKey(Object arg0)
- Specified by:
containsKeyin interfaceMap<Argument,Double>
-
containsValue
public boolean containsValue(Object arg0)
- Specified by:
containsValuein interfaceMap<Argument,Double>
-
-