Package net.sf.tweety.logics.cl.rules
Class EvaluateRule
- java.lang.Object
-
- net.sf.tweety.logics.cl.rules.RuleAdapter
-
- net.sf.tweety.logics.cl.rules.EvaluateRule
-
- All Implemented Interfaces:
RuleBasedCReasoner.Rule
public class EvaluateRule extends RuleAdapter
The evaluate rule tries to evaluate the kappa values by using logical constraints, therefore theKappaTerm
evaluate() methods are called. In fact this rule uses multiple rules, because evaluate() is implemented in a different way on the classes that implement theKappaTerm
interface: - It evaluatesKappaMin
instances by proofing if there is an element e which is evaluated and uses the value of this element if there is no greater or equal constraint on another element that is smaller as the value of element e. - TheKappaSum
instances are simply evaluated if every sub-element of the sum can be evaluated - TheKappaValue
instances are evaluated as soon as theirKappaMin
members are evaluated.- Author:
- Tim Janus
-
-
Constructor Summary
Constructors Constructor Description EvaluateRule()
-
Method Summary
Modifier and Type Method Description boolean
apply()
Applies the rulevoid
setKappas(java.util.Collection<KappaValue> kappas)
Sets the Collection ofKappaValue
that is used as data basis for the rule-
Methods inherited from class net.sf.tweety.logics.cl.rules.RuleAdapter
setConditonalStructure
-
-
-
-
Method Detail
-
setKappas
public void setKappas(java.util.Collection<KappaValue> kappas)
Description copied from interface:RuleBasedCReasoner.Rule
Sets the Collection ofKappaValue
that is used as data basis for the rule- Specified by:
setKappas
in interfaceRuleBasedCReasoner.Rule
- Overrides:
setKappas
in classRuleAdapter
- Parameters:
kappas
- a set of kappa values
-
apply
public boolean apply()
Description copied from interface:RuleBasedCReasoner.Rule
Applies the rule- Returns:
- true if a change occured, false otherwise
-
-