public class TypeBound extends java.lang.Object implements AbstractBound
ExactBound, but it takes an
IntegerIntervall in the constructor instead of a TupleSet.
This is so because when the bounds for the type are created, the universe is
not yet created because its final size is unknown.
As soon as the universe has been created, createTupleSets(Universe)
must be called before using this class.| Constructor and Description |
|---|
TypeBound(IntegerIntervall interval) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTupleSets(Universe universe)
Usually, when the type is created, the universe is not yet created
because it is not known how large it will be after registering all types.
|
boolean |
isVariable()
It's a type, as such constant.
|
void |
setBound(Relation relation,
Bounds bounds)
Constraints the possible values of a relation.
|
public TypeBound(IntegerIntervall interval)
public boolean isVariable()
isVariable in interface AbstractBoundpublic void setBound(Relation relation,
Bounds bounds)
AbstractBoundsetBound in interface AbstractBoundrelation - the Kodkod relation, never nullbounds - the Kodkod bounds, specific for a single request, never
null.public void createTupleSets(Universe universe)
TupleSet that includes all values of the type.universe -