|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.ast.Formula
kodkod.ast.RelationPredicate
kodkod.ast.RelationPredicate.Function
public static final class RelationPredicate.Function
Represents the function predicate. The predicate states that the given
relation
is a total or partial function with the specified
domain
and range
.
name = FUNCTION |
domain.arity = range.arity = 1 |
children = relation + domain + range |
relation: Relation |
domain, range: Expression |
targetMult: ONE + LONE |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class kodkod.ast.RelationPredicate |
---|
RelationPredicate.Acyclic, RelationPredicate.Function, RelationPredicate.Name, RelationPredicate.TotalOrdering |
Field Summary |
---|
Fields inherited from class kodkod.ast.Formula |
---|
FALSE, TRUE |
Method Summary | |
---|---|
Expression |
domain()
Returns the domain of this.relation. |
RelationPredicate.Name |
name()
Returns the name of this predicate. |
Expression |
range()
Returns the range of this.relation. |
Multiplicity |
targetMult()
Returns the target multiplicity of the function represented by this.relation. |
Formula |
toConstraints()
Turns this predicate into explicit constraiants. |
java.lang.String |
toString()
Returns the string representation of this predicate. |
Methods inherited from class kodkod.ast.RelationPredicate |
---|
accept, accept, relation |
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, wait, wait, wait |
Method Detail |
---|
public RelationPredicate.Name name()
name
in class RelationPredicate
public Multiplicity targetMult()
public Expression domain()
public Expression range()
public Formula toConstraints()
toConstraints
in class RelationPredicate
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |