Package net.sf.tweety.beliefdynamics.mas
Class CredibilityCategorizer
- java.lang.Object
 - 
- net.sf.tweety.beliefdynamics.mas.AbstractCredibilityComparer
 - 
- net.sf.tweety.beliefdynamics.mas.CredibilityCategorizer
 
 
 
- 
- All Implemented Interfaces:
 Categorizer
public class CredibilityCategorizer extends AbstractCredibilityComparer implements Categorizer
This class implements a credibility-based categorizer that works like the classical categorizer but dismisses arguments where the least credible agent which uttered a formula in that argument is not as least as credible as the least credible agent which uttered a formula of the parent argument.- Author:
 - Matthias Thimm
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CredibilityCategorizer(java.util.Collection<InformationObject<PlFormula>> formulas, Order<Agent> credOrder)Creates a new credibility categorizer that is guided by the giving information which agents uttered the formulas and the credibility order. 
- 
Method Summary
Modifier and Type Method Description doublecategorize(ArgumentTree argumentTree)This method categorizes the given argument tree.private doublecategorize(ArgumentTree argumentTree, DeductiveArgumentNode parent, DeductiveArgumentNode node)Performs the bottom-up search.- 
Methods inherited from class net.sf.tweety.beliefdynamics.mas.AbstractCredibilityComparer
isAtLeastAsPreferredAs, isAtLeastAsPreferredAs, isAtLeastAsPreferredAs 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CredibilityCategorizer
public CredibilityCategorizer(java.util.Collection<InformationObject<PlFormula>> formulas, Order<Agent> credOrder)
Creates a new credibility categorizer that is guided by the giving information which agents uttered the formulas and the credibility order.- Parameters:
 formulas- The information objects that hold the information which agents uttered the formulas.credOrder- The credibility order used to guide the categorizing.
 
 - 
 
- 
Method Detail
- 
categorize
public double categorize(ArgumentTree argumentTree)
Description copied from interface:CategorizerThis method categorizes the given argument tree. In general, the semantics of this function is that a higher value of this categorization means a higher belief in the claim of the root argument of the argument tree.- Specified by:
 categorizein interfaceCategorizer- Parameters:
 argumentTree- some argument tree.- Returns:
 - the categorization of the argument tree.
 
 
- 
categorize
private double categorize(ArgumentTree argumentTree, DeductiveArgumentNode parent, DeductiveArgumentNode node)
Performs the bottom-up search.- Parameters:
 argumentTree- some argument tree.parent- the parent of the current node.node- the current node.- Returns:
 - "1" if node is undefeated, "0" otherwise.
 
 
 - 
 
 -