Class FuzzyInterpretation
- java.lang.Object
-
- net.sf.tweety.commons.AbstractInterpretation<PlBeliefSet,PlFormula>
-
- net.sf.tweety.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 void
clear()
boolean
containsKey(java.lang.Object arg0)
boolean
containsValue(java.lang.Object arg0)
java.util.Set<java.util.Map.Entry<Proposition,java.lang.Double>>
entrySet()
java.lang.Double
get(java.lang.Object arg0)
boolean
isEmpty()
java.util.Set<Proposition>
keySet()
java.lang.Double
put(Proposition arg0, java.lang.Double arg1)
void
putAll(java.util.Map<? extends Proposition,? extends java.lang.Double> arg0)
java.lang.Double
remove(java.lang.Object arg0)
boolean
satisfies(PlBeliefSet beliefBase)
Checks whether this interpretation satisfies the given knowledge base.boolean
satisfies(PlFormula formula)
Checks whether this interpretation satisfies the given formula.int
size()
java.lang.String
toString()
java.util.Collection<java.lang.Double>
values()
-
Methods inherited from class net.sf.tweety.commons.AbstractInterpretation
satisfies
-
-
-
-
Method Detail
-
satisfies
public boolean satisfies(PlFormula formula) throws java.lang.IllegalArgumentException
Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given formula.- Specified by:
satisfies
in 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:Interpretation
Checks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfies
in 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:
clear
in interfacejava.util.Map<Proposition,java.lang.Double>
-
containsKey
public boolean containsKey(java.lang.Object arg0)
- Specified by:
containsKey
in interfacejava.util.Map<Proposition,java.lang.Double>
-
containsValue
public boolean containsValue(java.lang.Object arg0)
- Specified by:
containsValue
in interfacejava.util.Map<Proposition,java.lang.Double>
-
entrySet
public java.util.Set<java.util.Map.Entry<Proposition,java.lang.Double>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<Proposition,java.lang.Double>
-
get
public java.lang.Double get(java.lang.Object arg0)
- Specified by:
get
in interfacejava.util.Map<Proposition,java.lang.Double>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<Proposition,java.lang.Double>
-
keySet
public java.util.Set<Proposition> keySet()
- Specified by:
keySet
in interfacejava.util.Map<Proposition,java.lang.Double>
-
put
public java.lang.Double put(Proposition arg0, java.lang.Double arg1)
- Specified by:
put
in interfacejava.util.Map<Proposition,java.lang.Double>
-
putAll
public void putAll(java.util.Map<? extends Proposition,? extends java.lang.Double> arg0)
- Specified by:
putAll
in interfacejava.util.Map<Proposition,java.lang.Double>
-
remove
public java.lang.Double remove(java.lang.Object arg0)
- Specified by:
remove
in interfacejava.util.Map<Proposition,java.lang.Double>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<Proposition,java.lang.Double>
-
values
public java.util.Collection<java.lang.Double> values()
- Specified by:
values
in interfacejava.util.Map<Proposition,java.lang.Double>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-