Class ComparisonCriterion
java.lang.Object
org.tweetyproject.arg.delp.semantics.ComparisonCriterion
- Direct Known Subclasses:
EmptyCriterion
,GeneralizedSpecificity
This class is the superclass for all comparison criteria between two arguments in defeasible logic programming.
- Author:
- Matthias Thimm
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
To select a subclass and create an instance throw a static factory method.static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ComparisonCriterion.Result
compare
(DelpArgument argument1, DelpArgument argument2, DefeasibleLogicProgram context) This method returns the relation ofargument1
toargument2
givencontext
.
-
Constructor Details
-
ComparisonCriterion
public ComparisonCriterion()
-
-
Method Details
-
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
-