public class KripkeModel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
agents |
private Relations |
relations |
private StateDealingMap |
sdMap |
private java.util.Set<java.lang.Integer> |
states |
| Constructor and Description |
|---|
KripkeModel(Dealing point,
int players) |
KripkeModel(KripkeModel other)
Constructs a deep copy (except for sdMap) of the KripkeModel.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
agentCheck(int agent) |
private void |
dealCards(Dealing point)
Updates the Kripke model so that all agents know what cards they have been dealt
|
int |
getAgents() |
Dealing |
getDealing(int state) |
java.util.Set<java.lang.Integer> |
getReachableStates(java.lang.Integer state,
java.lang.Integer agent) |
java.util.Set<java.lang.Integer> |
getReachableStates(java.lang.Integer state,
java.util.Set<java.lang.Integer> agents) |
java.util.Set<java.lang.Integer> |
getReachableStatesForAll(java.lang.Integer state,
java.util.Set<java.lang.Integer> agents) |
boolean |
hasState(int state) |
Dealing |
point() |
void |
privateAnnouncement(Formula phi,
java.lang.Integer agent)
Removes all relations of agent 'agent' from the Kripke model between states where the evaluation of phi differs.
|
void |
publicAnnouncement(Formula phi)
Removes all states from the Kripke model in which phi does not hold.
|
private void |
queryCheck(java.lang.Integer state,
java.util.Set<java.lang.Integer> agents) |
private java.util.Set<java.lang.Integer> states
private StateDealingMap sdMap
private Relations relations
private int agents
public KripkeModel(Dealing point, int players)
point - Point of the modelplayers - Number of playerspublic KripkeModel(KripkeModel other)
other - Kripkemodel to be deep copiedprivate void dealCards(Dealing point)
point - The point of the modelprivate void queryCheck(java.lang.Integer state,
java.util.Set<java.lang.Integer> agents)
private void agentCheck(int agent)
public void publicAnnouncement(Formula phi)
phi - Formula that is announcedpublic void privateAnnouncement(Formula phi, java.lang.Integer agent)
phi - Formula that is announcedagent - The agent to which the formula is being announcedpublic final Dealing point()
public Dealing getDealing(int state)
state - Specified statepublic boolean hasState(int state)
state - Specified statepublic java.util.Set<java.lang.Integer> getReachableStates(java.lang.Integer state,
java.util.Set<java.lang.Integer> agents)
state - The state to get the reachable states fromagents - The agents to take into accountpublic java.util.Set<java.lang.Integer> getReachableStates(java.lang.Integer state,
java.lang.Integer agent)
state - The state to see if they are differentagent - The agent to look for differencespublic java.util.Set<java.lang.Integer> getReachableStatesForAll(java.lang.Integer state,
java.util.Set<java.lang.Integer> agents)
state - The state to get the reachable states fromagents - The agents that must all be able to reach that worldpublic int getAgents()