Class EvaluateRule
java.lang.Object
org.tweetyproject.logics.cl.rules.RuleAdapter
org.tweetyproject.logics.cl.rules.EvaluateRule
- All Implemented Interfaces:
RuleBasedCReasoner.Rule
The evaluate rule tries to evaluate the kappa values by using logical
constraints, therefore the
KappaTerm evaluate() methods are called.
In fact this rule uses multiple rules, because evaluate() is implemented in a
different way on the classes that implement the KappaTerm interface:
- It evaluates KappaMin 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.
- The KappaSum instances are simply evaluated if every sub-element of the sum can be evaluated
- The KappaValue instances are evaluated as soon as their KappaMin members are
evaluated.- Author:
- Tim Janus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply()Applies the rulevoidsetKappas(Collection<KappaValue> kappas) Sets the Collection ofKappaValuethat is used as data basis for the ruleMethods inherited from class org.tweetyproject.logics.cl.rules.RuleAdapter
setConditonalStructure
-
Constructor Details
-
EvaluateRule
public EvaluateRule()
-
-
Method Details
-
setKappas
Description copied from interface:RuleBasedCReasoner.RuleSets the Collection ofKappaValuethat is used as data basis for the rule- Specified by:
setKappasin interfaceRuleBasedCReasoner.Rule- Overrides:
setKappasin classRuleAdapter- Parameters:
kappas- a set of kappa values
-
apply
public boolean apply()Description copied from interface:RuleBasedCReasoner.RuleApplies the rule- Returns:
- true if a change occured, false otherwise
-