Class FuzzyInterpretation
- java.lang.Object
-
- org.tweetyproject.commons.AbstractInterpretation<PlBeliefSet,PlFormula>
-
- org.tweetyproject.logics.pl.semantics.FuzzyInterpretation
-
- All Implemented Interfaces:
java.util.Map<Proposition,java.lang.Double>,Interpretation<PlBeliefSet,PlFormula>
public class FuzzyInterpretation extends AbstractInterpretation<PlBeliefSet,PlFormula> implements java.util.Map<Proposition,java.lang.Double>
A fuzzy interpretation for propositional logic.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description FuzzyInterpretation()Creates a new fuzzy interpretation
-
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object arg0)booleancontainsValue(java.lang.Object arg0)java.util.Set<java.util.Map.Entry<Proposition,java.lang.Double>>entrySet()java.lang.Doubleget(java.lang.Object arg0)booleanisEmpty()java.util.Set<Proposition>keySet()java.lang.Doubleput(Proposition arg0, java.lang.Double arg1)voidputAll(java.util.Map<? extends Proposition,? extends java.lang.Double> arg0)java.lang.Doubleremove(java.lang.Object arg0)booleansatisfies(PlBeliefSet beliefBase)Checks whether this interpretation satisfies the given knowledge base.booleansatisfies(PlFormula formula)Checks whether this interpretation satisfies the given formula.intsize()java.lang.StringtoString()java.util.Collection<java.lang.Double>values()-
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
-
-
-
-
Method Detail
-
satisfies
public boolean satisfies(PlFormula formula) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException- if the formula does not correspond to the expected language.
-
satisfies
public boolean satisfies(PlBeliefSet beliefBase) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<Proposition,java.lang.Double>
-
containsKey
public boolean containsKey(java.lang.Object arg0)
- Specified by:
containsKeyin interfacejava.util.Map<Proposition,java.lang.Double>
-
containsValue
public boolean containsValue(java.lang.Object arg0)
- Specified by:
containsValuein interfacejava.util.Map<Proposition,java.lang.Double>
-
entrySet
public java.util.Set<java.util.Map.Entry<Proposition,java.lang.Double>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<Proposition,java.lang.Double>
-
get
public java.lang.Double get(java.lang.Object arg0)
- Specified by:
getin interfacejava.util.Map<Proposition,java.lang.Double>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map<Proposition,java.lang.Double>
-
keySet
public java.util.Set<Proposition> keySet()
- Specified by:
keySetin interfacejava.util.Map<Proposition,java.lang.Double>
-
put
public java.lang.Double put(Proposition arg0, java.lang.Double arg1)
- Specified by:
putin interfacejava.util.Map<Proposition,java.lang.Double>
-
putAll
public void putAll(java.util.Map<? extends Proposition,? extends java.lang.Double> arg0)
- Specified by:
putAllin interfacejava.util.Map<Proposition,java.lang.Double>
-
remove
public java.lang.Double remove(java.lang.Object arg0)
- Specified by:
removein interfacejava.util.Map<Proposition,java.lang.Double>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map<Proposition,java.lang.Double>
-
values
public java.util.Collection<java.lang.Double> values()
- Specified by:
valuesin interfacejava.util.Map<Proposition,java.lang.Double>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-