public class Problem
extends java.lang.Object
KodkodAnalysis to create a new problem
description. As soon the definition has finished, an immutable Version of the
problem is created by createImmutable() and inserted into the
session (see KodkodSession).ImmutableProblem| Modifier and Type | Class and Description |
|---|---|
static class |
Problem.CalculatedIntegerAtoms |
| Constructor and Description |
|---|
Problem(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRelation(java.lang.String id,
boolean isExact,
TupleType tupleType,
TupleSet ptset) |
ImmutableProblem |
createImmutable() |
void |
createUniverse()
This method should be called after registering all types and before
adding any other relations.
|
Problem.CalculatedIntegerAtoms |
getCalculatedIntegerAtoms() |
Universe |
getUniverse() |
Relation |
lookupRelation(java.lang.String id) |
Type |
lookupType(java.lang.String typeId) |
void |
registerIntegerTypes(java.lang.String pow2id,
java.lang.String intsetId,
IntegerIntervall intset,
IntegerIntervall pow2range) |
void |
registerType(java.lang.String id,
int size) |
void |
setFormula(Formula formula) |
public void setFormula(Formula formula)
public void registerIntegerTypes(java.lang.String pow2id,
java.lang.String intsetId,
IntegerIntervall intset,
IntegerIntervall pow2range)
pow2id - intsetId - intset - maxPow2 - public Relation lookupRelation(java.lang.String id)
public ImmutableProblem createImmutable()
public void registerType(java.lang.String id,
int size)
public Type lookupType(java.lang.String typeId)
public void addRelation(java.lang.String id,
boolean isExact,
TupleType tupleType,
TupleSet ptset)
public void createUniverse()
public Universe getUniverse()
public Problem.CalculatedIntegerAtoms getCalculatedIntegerAtoms()