Class PriestWorldAdapted
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<PlBeliefSet,PlFormula>
org.tweetyproject.logics.translators.adfrevision.PriestWorldAdapted
- All Implemented Interfaces:
Interpretation<PlBeliefSet,
PlFormula>
This class models a three-valued interpretation for propositional logic from
Priest's three valued logic (3VL) [Priest, G.: Logic of paradox. Journal of Philosophical Logic 8, 219-241 (1979)].
Every proposition is assigned one of three truth values: true, false, both.
Adapted from class "PriestWorld" for the use of a wider range of operators
- Author:
- Jonas Schumacher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The three truth values. -
Constructor Summary
ConstructorDescriptionCreates a new world where all propositions get the truth value FALSE.Creates a new world which is a copy of the given world -
Method Summary
Modifier and TypeMethodDescriptionint
Return countUndecidedboolean
get
(Proposition p) Returns the truth value of the given proposition.Returns the binary base of this world, i.e.Returns the conflict base of this world, i.e.Returns the signature of this world.int
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
-
PriestWorldAdapted
public PriestWorldAdapted()Creates a new world where all propositions get the truth value FALSE. -
PriestWorldAdapted
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.
-
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.
- Throws:
IllegalArgumentException
- if the formula does not correspond to the expected language.
-
satisfies3VL
public PriestWorldAdapted.TruthValue satisfies3VL(PlFormula formula) throws IllegalArgumentException Determines the 3-valued truth value of the given formula.- Parameters:
formula
- some formula- Returns:
- the 3-valued truth value of the formula.
- Throws:
IllegalArgumentException
- if the formula is of unknown type
-
getBinarybase
Returns the binary base of this world, i.e. the set of all propositions which are assigned either to TRUE or FALSE.- Returns:
- the binary base of this world.
-
getConflictbase
Returns the conflict base of this world, i.e. the set of all propositions which are assigned to BOTH.- Returns:
- the conflict base of this world.
-
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.
-
getSignature
Returns the signature of this world.- Returns:
- the signature of this world.
-
toString
-
hashCode
-
equals
-
countUndecided
public int countUndecided()Return countUndecided- Returns:
- countUndecided
-