Class LastLinkOrder<T extends Invertable>
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<R,T>
org.tweetyproject.comparator.GeneralComparator<AspicArgument<T>,AspicArgumentationTheory<T>>
org.tweetyproject.arg.aspic.order.LastLinkOrder<T>
- Type Parameters:
T- is the type of the language that the ASPIC theory's rules range over
- All Implemented Interfaces:
Comparator<AspicArgument<T>>,Interpretation<AspicArgumentationTheory<T>,AspicArgument<T>>
public class LastLinkOrder<T extends Invertable>
extends GeneralComparator<AspicArgument<T>,AspicArgumentationTheory<T>>
- Author:
- Nils Geilen A comparator for Aspic Arguments, that compares the set of topmost deafeasible rules
-
Constructor Summary
ConstructorsConstructorDescriptionLastLinkOrder(Comparator<InferenceRule<T>> rule_comp, Comparator<InferenceRule<T>> prem_comp, boolean elitist) Constructs a new last link ordering -
Method Summary
Modifier and TypeMethodDescriptionintcompare(AspicArgument<T> a, AspicArgument<T> b) booleanbooleanisIncomparable(AspicArgument<T> a, AspicArgument<T> b) Returns "true" iff a and b are incomparable (i.e.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.booleansatisfies(AspicArgument<T> formula) Checks whether this interpretation satisfies the given formula.booleansatisfies(AspicArgumentationTheory<T> beliefBase) Checks whether this interpretation satisfies the given knowledge base.Methods inherited from class org.tweetyproject.comparator.GeneralComparator
getMaximallyAcceptedArguments, getMinimallyAcceptedArguments, isEquallyAcceptableThan, isEquivalent, isStrictlyLessAcceptableThan, isStrictlyMoreAcceptableThan, isStrictlyMoreOrEquallyAcceptableThanMethods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LastLinkOrder
public LastLinkOrder(Comparator<InferenceRule<T>> rule_comp, Comparator<InferenceRule<T>> prem_comp, boolean elitist) Constructs a new last link ordering- Parameters:
rule_comp- comparator for defeasible rulesprem_comp- comparator for ordinary premiseselitist- some boolean
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T extends Invertable>- Overrides:
comparein classGeneralComparator<AspicArgument<T extends Invertable>,AspicArgumentationTheory<T extends Invertable>>
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Parameters:
formula- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
IllegalArgumentException- if the formula does not correspond to the expected language.
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Parameters:
beliefBase- a knowledge base.- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-
isStrictlyLessOrEquallyAcceptableThan
Description copied from class:GeneralComparatorReturns "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)- Specified by:
isStrictlyLessOrEquallyAcceptableThanin classGeneralComparator<AspicArgument<T extends Invertable>,AspicArgumentationTheory<T extends Invertable>> - Parameters:
a- some comparable elementb- some comparable element- Returns:
- "true" iff a is strictly less acceptable than b or a is equally acceptable as b
-
isIncomparable
Description copied from class:GeneralComparatorReturns "true" iff a and b are incomparable (i.e. this ranking is a partial ranking).- Specified by:
isIncomparablein classGeneralComparator<AspicArgument<T extends Invertable>,AspicArgumentationTheory<T extends Invertable>> - Parameters:
a- comparable elementb- comparable element- Returns:
- "true" iff a and b are incomparable
-
containsIncomparableArguments
public boolean containsIncomparableArguments()- Specified by:
containsIncomparableArgumentsin classGeneralComparator<AspicArgument<T extends Invertable>,AspicArgumentationTheory<T extends Invertable>> - Returns:
- true if this ranking contains incomparable arguments, false otherwise
-