Package net.sf.tweety.arg.delp.semantics
Class ComparisonCriterion
- java.lang.Object
-
- net.sf.tweety.arg.delp.semantics.ComparisonCriterion
-
- Direct Known Subclasses:
EmptyCriterion
,GeneralizedSpecificity
public abstract class ComparisonCriterion extends java.lang.Object
This class is the superclass for all comparison criteria between two arguments in defeasible logic programming.- Author:
- Matthias Thimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComparisonCriterion.Factory
To select a subclass and create an instance throw a static factory method.static class
ComparisonCriterion.Result
-
Constructor Summary
Constructors Constructor Description ComparisonCriterion()
-
Method Summary
Modifier and Type Method Description abstract ComparisonCriterion.Result
compare(DelpArgument argument1, DelpArgument argument2, DefeasibleLogicProgram context)
This method returns the relation ofargument1
toargument2
givencontext
.
-
-
-
Method Detail
-
compare
public abstract ComparisonCriterion.Result compare(DelpArgument argument1, DelpArgument argument2, DefeasibleLogicProgram context)
This method returns the relation ofargument1
toargument2
givencontext
.- Parameters:
argument1
- a DeLP argumentargument2
- a DeLP argumentcontext
- a defeasible logic program as context- Returns:
- Result.IS_BETTER iffargument1
is better thanargument2
- Result.IS_WORSE iffargument1
is worse thanargument2
- Result.IS_EQUAL iffargument1
andargument2
are in the same equivalence class
- Result.NOT_COMPARABLE iffargument1
andargument2
are not comparable
-
-