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 void
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-
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.Rule
Sets the Collection ofKappaValue
that is used as data basis for the rule- Specified by:
setKappas
in interfaceRuleBasedCReasoner.Rule
- Parameters:
kappas
- a set of kappa values
-
setConditonalStructure
public void setConditonalStructure(ConditionalStructure cs)
Description copied from interface:RuleBasedCReasoner.Rule
Sets theConditionalStructure
that is used as data basis for the rule.- Specified by:
setConditonalStructure
in interfaceRuleBasedCReasoner.Rule
- Parameters:
cs
- a conditional structure
-
-