|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectforge.solve.ForgeAtom
forge.solve.BooleanAtom
public final class BooleanAtom
A constant boolean expression: true or false.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface forge.solve.ForgeConstant |
|---|
ForgeConstant.Tuple, ForgeConstant.Unary |
| Method Summary | |
|---|---|
int |
arity()
Returns the arity of this constant. |
java.util.List<ForgeAtom> |
atoms()
|
BooleanAtom |
bool()
|
ForgeConstant.Unary |
difference(ForgeConstant c)
|
ForgeAtom |
domain()
|
ForgeConstant.Unary |
intersection(ForgeConstant c)
|
boolean |
isDomain()
|
boolean |
isEmpty()
Returns if the size is 0. |
boolean |
isTuple()
Returns true if the size is one. |
boolean |
isUnary()
Returns true if the arity is one. |
ForgeConstant |
join(ForgeConstant c)
|
ForgeConstant.Tuple |
product(ForgeConstant.Tuple tuple)
|
ForgeConstant |
product(ForgeConstant c)
|
ForgeProgram |
program()
Returns the program to which this element belongs. |
ForgeConstant.Tuple |
projection(int... columns)
|
ForgeAtom |
range()
|
boolean |
subsetOf(ForgeConstant c)
Returns true if this is a subset of c |
IntegerAtom |
sum()
|
java.util.Set<ForgeAtom> |
tuples()
Returns the set of tuples in this constant |
kodkod.instance.TupleSet |
tupleSet()
|
BooleanDomain |
type()
Returns the type of this constant. |
ForgeConstant.Unary |
union(ForgeConstant c)
|
boolean |
value()
|
| Methods inherited from class forge.solve.ForgeAtom |
|---|
name, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface forge.solve.ForgeConstant |
|---|
arity, isEmpty, isTuple, isUnary, join, product, subsetOf, tupleSet |
| Methods inherited from interface forge.program.ProgramElement |
|---|
program |
| Method Detail |
|---|
public BooleanDomain type()
ForgeConstant
type in interface ForgeConstanttype in interface ForgeConstant.Tupletype in interface ForgeConstant.Unarytype in class ForgeAtompublic boolean value()
public BooleanAtom bool()
public IntegerAtom sum()
public final java.util.Set<ForgeAtom> tuples()
ForgeConstant
tuples in interface ForgeConstanttuples in interface ForgeConstant.Unarypublic final java.util.List<ForgeAtom> atoms()
atoms in interface ForgeConstant.Tuplepublic final ForgeAtom domain()
domain in interface ForgeConstantdomain in interface ForgeConstant.Tuplepublic final ForgeAtom range()
range in interface ForgeConstantrange in interface ForgeConstant.Tuplepublic final ForgeConstant.Tuple projection(int... columns)
projection in interface ForgeConstantprojection in interface ForgeConstant.Tuplepublic ForgeConstant.Tuple product(ForgeConstant.Tuple tuple)
product in interface ForgeConstant.Tuplepublic final ForgeConstant.Unary union(ForgeConstant c)
union in interface ForgeConstantunion in interface ForgeConstant.Unarypublic final ForgeConstant.Unary difference(ForgeConstant c)
difference in interface ForgeConstantdifference in interface ForgeConstant.Unarypublic final ForgeConstant.Unary intersection(ForgeConstant c)
intersection in interface ForgeConstantintersection in interface ForgeConstant.Unarypublic kodkod.instance.TupleSet tupleSet()
tupleSet in interface ForgeConstantpublic final ForgeProgram program()
ProgramElement
program in interface ProgramElementpublic final int arity()
ForgeConstant
arity in interface ForgeConstantpublic final boolean isEmpty()
ForgeConstant
isEmpty in interface ForgeConstantpublic final boolean isUnary()
ForgeConstant
isUnary in interface ForgeConstantpublic boolean isTuple()
ForgeConstant
isTuple in interface ForgeConstantpublic final boolean subsetOf(ForgeConstant c)
ForgeConstant
subsetOf in interface ForgeConstantpublic final ForgeConstant join(ForgeConstant c)
join in interface ForgeConstantpublic final ForgeConstant product(ForgeConstant c)
product in interface ForgeConstantpublic boolean isDomain()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||