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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets theConditionalStructure
that is used as data basis for the rule.void
setKappas
(Collection<KappaValue> kappas) Sets the Collection ofKappaValue
that is used as data basis for the ruleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.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
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
-