public class Maybe extends Formula
| Modifier and Type | Field and Description |
|---|---|
private int |
agent |
private Formula |
formula |
| Constructor and Description |
|---|
Maybe(int agent,
Formula formula)
Creates a new M-formula
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(KripkeModel model,
int state)
Evaluate a Formula in a state using the given model
|
java.lang.String |
toString()
Return a string representation of this Formula
|
private int agent
private Formula formula
public Maybe(int agent,
Formula formula)
agent - The agent of which we want to know if he holds the formula for possibleformula - The formula of which we want to know if the agent holds it for possiblepublic boolean evaluate(KripkeModel model, int state)