Package net.sf.tweety.logics.cl.rules
Class RuleAdapter
- java.lang.Object
-
- net.sf.tweety.logics.cl.rules.RuleAdapter
-
- All Implemented Interfaces:
RuleBasedCReasoner.Rule
- Direct Known Subclasses:
EvaluateRule
public abstract class RuleAdapter extends java.lang.Object implements RuleBasedCReasoner.Rule
A simple adapter class that wraps the straightforward methods of the Rule interface, such that the developer can spare the work to implement the setter methods.- Author:
- Tim janus
-
-
Constructor Summary
Constructors Constructor Description RuleAdapter()
-
Method Summary
Modifier and Type Method Description voidsetConditonalStructure(ConditionalStructure cs)Sets theConditionalStructurethat is used as data basis for the rule.voidsetKappas(java.util.Collection<KappaValue> kappas)Sets the Collection ofKappaValuethat is used as data basis for the rule-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.tweety.logics.cl.reasoner.RuleBasedCReasoner.Rule
apply
-
-
-
-
Method Detail
-
setKappas
public void setKappas(java.util.Collection<KappaValue> kappas)
Description copied from interface:RuleBasedCReasoner.RuleSets the Collection ofKappaValuethat is used as data basis for the rule- Specified by:
setKappasin interfaceRuleBasedCReasoner.Rule- Parameters:
kappas- a set of kappa values
-
setConditonalStructure
public void setConditonalStructure(ConditionalStructure cs)
Description copied from interface:RuleBasedCReasoner.RuleSets theConditionalStructurethat is used as data basis for the rule.- Specified by:
setConditonalStructurein interfaceRuleBasedCReasoner.Rule- Parameters:
cs- a conditional structure
-
-