Class ConditionalStructureKappaBuilder
java.lang.Object
org.tweetyproject.logics.cl.kappa.ConditionalStructureKappaBuilder
This class builds the initial kappa value list for a given conditional
structure. That means it takes the conditionals of a belief base and generates
the for each conditional a
KappaValue
instance and also it sub instances
of type KappaMin
.- Author:
- Tim Janus
-
Constructor Summary
ConstructorDescriptionDefault-Ctor: Generates a builder that does not uses fast evaluationConditionalStructureKappaBuilder
(boolean fastEval) Ctor: Generates a builder that uses fast evaluation depending on the given parameter -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ConditionalStructure structure) This builds a map of conditionals toKappaValue
instances which represent the penalty term for a falsified conditional
-
Constructor Details
-
ConditionalStructureKappaBuilder
public ConditionalStructureKappaBuilder()Default-Ctor: Generates a builder that does not uses fast evaluation -
ConditionalStructureKappaBuilder
public ConditionalStructureKappaBuilder(boolean fastEval) Ctor: Generates a builder that uses fast evaluation depending on the given parameter- Parameters:
fastEval
- A flag indicating if fast evaluation shall be used (true) or not (false)
-
-
Method Details
-
build
This builds a map of conditionals toKappaValue
instances which represent the penalty term for a falsified conditional- Parameters:
structure
- The conditional structure that is used as basis belief base for the generation of the kappa values.- Returns:
- A map from
Conditional
instances toKappaValue
instances that represent the penalty that is given is the key conditional is falsified.
-