Class RuleAdapter
java.lang.Object
org.tweetyproject.logics.cl.rules.RuleAdapter
- All Implemented Interfaces:
RuleBasedCReasoner.Rule
- Direct Known Subclasses:
EvaluateRule
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidSets theConditionalStructurethat is used as data basis for the rule.voidsetKappas(Collection<KappaValue> kappas) Sets the Collection ofKappaValuethat is used as data basis for the ruleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tweetyproject.logics.cl.reasoner.RuleBasedCReasoner.Rule
apply
-
Constructor Details
-
RuleAdapter
public RuleAdapter()Constructor
-
-
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- Parameters:
kappas- a set of kappa values
-
setConditonalStructure
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
-