Class ThreeValuedWorld
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<PlBeliefSet,PlFormula>
org.tweetyproject.logics.translators.adfconditional.ThreeValuedWorld
- All Implemented Interfaces:
Interpretation<PlBeliefSet,
PlFormula>
This class models a three-valued interpretation for propositional logic
Formulas are interpreted using completions
Every atom is assigned one of the three truth values: TRUE, FALSE, UNDECIDED.
- Author:
- Jonas Schumacher
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreates an empty 3-valued worldThreeValuedWorld
(ThreeValuedWorld other) Creates a new world which is a copy of the given world -
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(Proposition p) Returns the truth value of the given proposition.Returns the signature of this world.This method calculates a collection of 2-valued worlds based on this 3-valued world UNDECIDED atoms are replaced by FALSE or TRUEint
hashCode()
boolean
satisfies
(PlBeliefSet beliefBase) Checks whether this interpretation satisfies the given knowledge base.boolean
Checks whether this interpretation satisfies the given formula.satisfies3VL
(PlFormula formula) Determines the 3-valued truth value of the given formula.void
Sets the value of the given proposition.toString()
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
-
Constructor Details
-
ThreeValuedWorld
public ThreeValuedWorld()Creates an empty 3-valued world -
ThreeValuedWorld
Creates a new world which is a copy of the given world- Parameters:
other
- some other world
-
-
Method Details
-
set
Sets the value of the given proposition.- Parameters:
p
- some proposition.val
- some truth value.
-
get
Returns the truth value of the given proposition.- Parameters:
p
- a proposition- Returns:
- a truth value.
-
getSignature
Returns the signature of this world.- Returns:
- the signature of this world.
-
getTwoValuedSet
This method calculates a collection of 2-valued worlds based on this 3-valued world UNDECIDED atoms are replaced by FALSE or TRUE- Returns:
- Collection of 2-valued worlds
-
satisfies
Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given formula.- Parameters:
formula
- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
-
satisfies3VL
Determines the 3-valued truth value of the given formula.- Parameters:
formula
- : some propositional formula- Returns:
- the 3-valued truth value of the formula.
-
satisfies
Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given knowledge base.- 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.
-
toString
-
hashCode
-
equals
-