Class FuzzyInterpretation
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<PlBeliefSet,PlFormula>
org.tweetyproject.logics.pl.semantics.FuzzyInterpretation
- All Implemented Interfaces:
Map<Proposition,Double>,Interpretation<PlBeliefSet,PlFormula>
public class FuzzyInterpretation
extends AbstractInterpretation<PlBeliefSet,PlFormula>
implements Map<Proposition,Double>
A fuzzy interpretation for propositional logic.
- Author:
- Matthias Thimm
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object arg0)booleancontainsValue(Object arg0)entrySet()booleanisEmpty()keySet()put(Proposition arg0, Double arg1)voidputAll(Map<? extends Proposition,? extends Double> arg0)booleansatisfies(PlBeliefSet beliefBase)Checks whether this interpretation satisfies the given knowledge base.booleanChecks whether this interpretation satisfies the given formula.intsize()toString()values()Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
FuzzyInterpretation
public FuzzyInterpretation()Creates a new fuzzy interpretation
-
-
Method Details
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Specified by:
satisfiesin interfaceInterpretation<PlBeliefSet,PlFormula>- Parameters:
formula- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
IllegalArgumentException- if the formula does not correspond to the expected language.
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfiesin interfaceInterpretation<PlBeliefSet,PlFormula>- Parameters:
beliefBase- a knowledge base.- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-
clear
public void clear()- Specified by:
clearin interfaceMap<Proposition,Double>
-
containsKey
- Specified by:
containsKeyin interfaceMap<Proposition,Double>
-
containsValue
- Specified by:
containsValuein interfaceMap<Proposition,Double>
-
entrySet
- Specified by:
entrySetin interfaceMap<Proposition,Double>
-
get
- Specified by:
getin interfaceMap<Proposition,Double>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<Proposition,Double>
-
keySet
- Specified by:
keySetin interfaceMap<Proposition,Double>
-
put
- Specified by:
putin interfaceMap<Proposition,Double>
-
putAll
- Specified by:
putAllin interfaceMap<Proposition,Double>
-
remove
- Specified by:
removein interfaceMap<Proposition,Double>
-
size
public int size()- Specified by:
sizein interfaceMap<Proposition,Double>
-
values
- Specified by:
valuesin interfaceMap<Proposition,Double>
-
toString
-