Class SimpleProductSemantics
- java.lang.Object
-
- net.sf.tweety.arg.social.semantics.AbstractSocialSemantics<java.lang.Double>
-
- net.sf.tweety.arg.social.semantics.SimpleProductSemantics
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.Double>
public class SimpleProductSemantics extends AbstractSocialSemantics<java.lang.Double>
The simple product semantics from [Leite, Martins; IJCAI 2011, Def. 5,6]- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description SimpleProductSemantics(double epsilon)Creates a new simple product semantics with the given epsilon parameter for the simple vote aggregation function.SimpleProductSemantics(double epsilon, double precision)Creates a new simple product semantics with the given epsilon parameter for the simple vote aggregation function.
-
Method Summary
Modifier and Type Method Description java.lang.Doubleand(java.lang.Double arg1, java.lang.Double arg2)The AND-operation on L in this frameworkjava.lang.DoublebottomElement()Returns the bottom element of this semantics.intcompare(java.lang.Double arg0, java.lang.Double arg1)java.lang.Doubleneg(java.lang.Double arg)The NEG-operation on L in this frameworkjava.lang.Doubleor(java.lang.Double arg1, java.lang.Double arg2)The OR-operation on L in this frameworkjava.lang.Doublesupp(int pos, int neg)The vote aggregation functionjava.lang.DoubletopElement()Returns the top element of this semantics.-
Methods inherited from class net.sf.tweety.arg.social.semantics.AbstractSocialSemantics
and, or
-
-
-
-
Constructor Detail
-
SimpleProductSemantics
public SimpleProductSemantics(double epsilon, double precision)Creates a new simple product semantics with the given epsilon parameter for the simple vote aggregation function.- Parameters:
epsilon- some non-negative valueprecision- precision of comparisons between values.
-
SimpleProductSemantics
public SimpleProductSemantics(double epsilon)
Creates a new simple product semantics with the given epsilon parameter for the simple vote aggregation function. The value 0.001 is used as precision of comparisons between values.- Parameters:
epsilon- some non-negative value
-
-
Method Detail
-
bottomElement
public java.lang.Double bottomElement()
Description copied from class:AbstractSocialSemanticsReturns the bottom element of this semantics.- Specified by:
bottomElementin classAbstractSocialSemantics<java.lang.Double>- Returns:
- the bottom element of this semantics.
-
topElement
public java.lang.Double topElement()
Description copied from class:AbstractSocialSemanticsReturns the top element of this semantics.- Specified by:
topElementin classAbstractSocialSemantics<java.lang.Double>- Returns:
- the top element of this semantics.
-
supp
public java.lang.Double supp(int pos, int neg)Description copied from class:AbstractSocialSemanticsThe vote aggregation function- Specified by:
suppin classAbstractSocialSemantics<java.lang.Double>- Parameters:
pos- the number of positive votesneg- the number of negative votes- Returns:
- the social support aggregated from the votes.
-
and
public java.lang.Double and(java.lang.Double arg1, java.lang.Double arg2)Description copied from class:AbstractSocialSemanticsThe AND-operation on L in this framework- Specified by:
andin classAbstractSocialSemantics<java.lang.Double>- Parameters:
arg1- some value in Larg2- some value in L- Returns:
- the AND of the both values
-
or
public java.lang.Double or(java.lang.Double arg1, java.lang.Double arg2)Description copied from class:AbstractSocialSemanticsThe OR-operation on L in this framework- Specified by:
orin classAbstractSocialSemantics<java.lang.Double>- Parameters:
arg1- some value in Larg2- some value in L- Returns:
- the OR of the both values
-
neg
public java.lang.Double neg(java.lang.Double arg)
Description copied from class:AbstractSocialSemanticsThe NEG-operation on L in this framework- Specified by:
negin classAbstractSocialSemantics<java.lang.Double>- Parameters:
arg- some value in L- Returns:
- the negation of the given value.
-
compare
public int compare(java.lang.Double arg0, java.lang.Double arg1)- Specified by:
comparein interfacejava.util.Comparator<java.lang.Double>- Specified by:
comparein classAbstractSocialSemantics<java.lang.Double>
-
-