public class KripkeModel extends AbstractInterpretation<ModalBeliefSet,FolFormula>
Modifier and Type | Field and Description |
---|---|
private AccessibilityRelation |
accRelation
The accessibility relation.
|
private java.util.Set<? extends Interpretation<FolBeliefSet,FolFormula>> |
possibleWorlds
The possible worlds of this model.
|
Constructor and Description |
---|
KripkeModel(java.util.Set<? extends Interpretation<FolBeliefSet,FolFormula>> possibleWorlds,
AccessibilityRelation accRelation)
Creates a new Kripke model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
satisfies(FolFormula formula)
Checks whether this interpretation satisfies the given formula.
|
boolean |
satisfies(ModalBeliefSet beliefBase)
Checks whether this interpretation satisfies the given knowledge base.
|
java.lang.String |
toString() |
satisfies
private java.util.Set<? extends Interpretation<FolBeliefSet,FolFormula>> possibleWorlds
private AccessibilityRelation accRelation
public KripkeModel(java.util.Set<? extends Interpretation<FolBeliefSet,FolFormula>> possibleWorlds, AccessibilityRelation accRelation)
possibleWorlds
- a set of interpretations.accRelation
- an accessibility relation under the given interpretations.public boolean satisfies(FolFormula formula) throws java.lang.IllegalArgumentException
Interpretation
formula
- a formula .java.lang.IllegalArgumentException
- if the formula does not correspond
to the expected language.public boolean satisfies(ModalBeliefSet beliefBase) throws java.lang.IllegalArgumentException
Interpretation
beliefBase
- a knowledge base.java.lang.IllegalArgumentException
- IllegalArgumentException if the knowledgebase does not correspond
to the expected language.public java.lang.String toString()
toString
in class java.lang.Object