Package net.sf.tweety.logics.cl.reasoner
Interface RuleBasedCReasoner.Rule
-
- All Known Implementing Classes:
EvaluateRule
,RuleAdapter
- Enclosing class:
- RuleBasedCReasoner
public static interface RuleBasedCReasoner.Rule
A rule that is applicable by theRuleBasedCReasoner
to reason a c-representation given a conditional belief base. Implementation of this interface can be added to theRuleBasedCReasoner
to adapt its behavior, such that aRuleBasedCReasoner
can use different rules if it can make different assumptions on the underlying belief base.- Author:
- Tim Janus
-
-
Method Summary
Modifier and Type Method Description boolean
apply()
Applies the rulevoid
setConditonalStructure(ConditionalStructure cs)
Sets theConditionalStructure
that is used as data basis for the rule.void
setKappas(java.util.Collection<KappaValue> kappas)
Sets the Collection ofKappaValue
that is used as data basis for the rule
-
-
-
Method Detail
-
setConditonalStructure
void setConditonalStructure(ConditionalStructure cs)
Sets theConditionalStructure
that is used as data basis for the rule.- Parameters:
cs
- a conditional structure
-
setKappas
void setKappas(java.util.Collection<KappaValue> kappas)
Sets the Collection ofKappaValue
that is used as data basis for the rule- Parameters:
kappas
- a set of kappa values
-
apply
boolean apply()
Applies the rule- Returns:
- true if a change occured, false otherwise
-
-