|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.ast.Formula
kodkod.ast.RelationPredicate
public abstract class RelationPredicate
Represents common predicates on relations; e.g. predicates stating that a relation is a total function, partial function, acyclic, or a total ordering over a set of atoms.
relation.arity = 2 |
relation: Relation |
name: Name // name of the predicate |
Nested Class Summary | |
---|---|
static class |
RelationPredicate.Acyclic
Represents the acyclic predicate. |
static class |
RelationPredicate.Function
Represents the function predicate. |
static class |
RelationPredicate.Name
The name of the predicate. |
static class |
RelationPredicate.TotalOrdering
Represents the total ordering predicate. |
Field Summary |
---|
Fields inherited from class kodkod.ast.Formula |
---|
FALSE, TRUE |
Method Summary | ||
---|---|---|
|
accept(ReturnVisitor<E,F,D,I> visitor)
Accepts the given visitor and returns the result. |
|
void |
accept(VoidVisitor visitor)
Accepts the given visitor. |
|
abstract RelationPredicate.Name |
name()
Returns the name of this predicate. |
|
Relation |
relation()
Returns the relation to which this predicate applies. |
|
abstract Formula |
toConstraints()
Turns this predicate into explicit constraiants. |
Methods inherited from class kodkod.ast.Formula |
---|
and, compose, comprehension, forAll, forSome, iff, implies, not, or, quantify, thenElse, thenElse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Relation relation()
public abstract RelationPredicate.Name name()
public abstract Formula toConstraints()
public <E,F,D,I> F accept(ReturnVisitor<E,F,D,I> visitor)
accept
in interface Node
accept
in class Formula
Formula.accept(kodkod.ast.visitor.ReturnVisitor)
public void accept(VoidVisitor visitor)
Node.accept(kodkod.ast.visitor.VoidVisitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |