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