public class Or extends Formula
| Constructor and Description |
|---|
Or(Formula... formulas)
Initialize a disjunction of two or more disjuncts
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(KripkeModel model,
int state)
Evaluate a disjunction in a state using the given model
|
Formula[] |
getDisjuncts()
Get the disjuncts in this disjunction
|
Formula |
memoize()
Make a formula remember its evaluation in a specific state.
|
Formula |
simplify()
Simplify this formula by checking if it is a disjunction of
Common/General/Implicit knowledge for a group of agents
|
java.lang.String |
toString()
Return a string representation of this disjunction
|
private Formula[] formulas
public Or(Formula... formulas)
formulas - The disjuncts of the disjunctionpublic boolean evaluate(KripkeModel model, int state)
public Formula memoize()
Formulapublic Formula simplify()
simplify in class FormulaMultiEvery,
MultiCommon,
MultiImplicitpublic java.lang.String toString()
public Formula[] getDisjuncts()