Package net.sf.tweety.arg.prob.semantics
Class AbstractPASemantics
- java.lang.Object
-
- net.sf.tweety.arg.prob.semantics.AbstractPASemantics
-
- All Implemented Interfaces:
PASemantics
- Direct Known Subclasses:
CoherentPASemantics,FoundedPASemantics,InvolutaryPASemantics,JustifiablePASemantics,NeutralPASemantics,OptimisticPASemantics,RationalPASemantics,SemiFoundedPASemantics,SemiOptimisticPASemantics
public abstract class AbstractPASemantics extends Object implements PASemantics
This class bundles common answering behaviour for probabilistic argumentation semantics.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description AbstractPASemantics()
-
Method Summary
Modifier and Type Method Description abstract Collection<net.sf.tweety.math.equation.Statement>getSatisfactionStatements(net.sf.tweety.arg.dung.syntax.DungTheory theory, Map<Collection<net.sf.tweety.arg.dung.syntax.Argument>,net.sf.tweety.math.term.FloatVariable> worlds2vars)Returns the mathematical statement corresponding to the satisfaction of the given theory wrt.protected net.sf.tweety.math.term.TermprobabilityTerm(net.sf.tweety.arg.dung.syntax.Argument arg, Map<Collection<net.sf.tweety.arg.dung.syntax.Argument>,net.sf.tweety.math.term.FloatVariable> worlds2vars)Constructs the term expressing the probability of the given argument wrt.abstract booleansatisfies(ProbabilisticExtension p, net.sf.tweety.arg.dung.syntax.DungTheory theory)Checks whether the given probabilistic extension satisfies the given argumentation theory wrt.abstract StringtoString()
-
-
-
Method Detail
-
satisfies
public abstract boolean satisfies(ProbabilisticExtension p, net.sf.tweety.arg.dung.syntax.DungTheory theory)
Description copied from interface:PASemanticsChecks whether the given probabilistic extension satisfies the given argumentation theory wrt. this semantics.- Specified by:
satisfiesin interfacePASemantics- Parameters:
p- a probabilistic extension.theory- an argumentation theory- Returns:
- "true" iff the given distribution satisfies the given conditional.
-
getSatisfactionStatements
public abstract Collection<net.sf.tweety.math.equation.Statement> getSatisfactionStatements(net.sf.tweety.arg.dung.syntax.DungTheory theory, Map<Collection<net.sf.tweety.arg.dung.syntax.Argument>,net.sf.tweety.math.term.FloatVariable> worlds2vars)
Description copied from interface:PASemanticsReturns the mathematical statement corresponding to the satisfaction of the given theory wrt. this semantics.- Specified by:
getSatisfactionStatementsin interfacePASemantics- Parameters:
theory- an argumentation theory.worlds2vars- a map mapping the (probabilities of the) extensions to mathematical variables (for constructing the statement).- Returns:
- the mathematical statement corresponding to the satisfaction of the given theory wrt. this semantics.
-
toString
public abstract String toString()
- Specified by:
toStringin interfacePASemantics- Overrides:
toStringin classObject
-
probabilityTerm
protected net.sf.tweety.math.term.Term probabilityTerm(net.sf.tweety.arg.dung.syntax.Argument arg, Map<Collection<net.sf.tweety.arg.dung.syntax.Argument>,net.sf.tweety.math.term.FloatVariable> worlds2vars)Constructs the term expressing the probability of the given argument wrt. to the variables (describing probabilities) of the extensions.- Parameters:
arg- an argumentworlds2vars- a map mapping extensions to variables.- Returns:
- the term expressing the probability of the given argument.
-
-