Class AbstractSocialSemantics<L>
java.lang.Object
org.tweetyproject.arg.social.semantics.AbstractSocialSemantics<L>
- Type Parameters:
L
- The set used for valuations
- All Implemented Interfaces:
Comparator<L>
- Direct Known Subclasses:
SimpleProductSemantics
This is the abstract ancestor of concrete semantics for social
abstract argumentation frameworks, cf. [Leite, Martins; IJCAI 2011, Def. 3]
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionDefault constructor for creating an instance of AbstractSocialSemantics. -
Method Summary
Modifier and TypeMethodDescriptionand
(Collection<L> arg) The AND-operation on all given argumentsabstract L
The AND-operation on L in this frameworkabstract L
Returns the bottom element of this semantics.abstract int
Compares two `Double` values according to the specific social semantics implemented by this class.abstract L
The NEG-operation on L in this frameworkor
(Collection<L> arg) The OR-operation on all given argumentsabstract L
The OR-operation on L in this frameworkabstract L
supp
(int pos, int neg) The vote aggregation functionabstract L
Returns the top element of this semantics.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AbstractSocialSemantics
public AbstractSocialSemantics()Default constructor for creating an instance of AbstractSocialSemantics.
-
-
Method Details
-
bottomElement
Returns the bottom element of this semantics.- Returns:
- the bottom element of this semantics.
-
topElement
Returns the top element of this semantics.- Returns:
- the top element of this semantics.
-
supp
The vote aggregation function- Parameters:
pos
- the number of positive votesneg
- the number of negative votes- Returns:
- the social support aggregated from the votes.
-
and
-
or
-
neg
-
and
The AND-operation on all given arguments- Parameters:
arg
- some values in L- Returns:
- The AND of all given arguments
-
or
The OR-operation on all given arguments- Parameters:
arg
- some values in L- Returns:
- The OR of all given arguments
-
compare
Compares two `Double` values according to the specific social semantics implemented by this class.- Parameters:
arg0
- the first `Double` value to be compared.arg1
- the second `Double` value to be compared.- Returns:
- a negative integer, zero, or a positive integer as the first argument (`arg0`) is less than, equal to, or greater than the second (`arg1`), respectively.
- See Also:
-