|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkrieger.oclsolve.Problem
public class Problem
Represents an OCL constraint satisfaction problem. May also handle OCL queries for evaluation.
| Constructor Summary | |
|---|---|
Problem()
|
|
| Method Summary | |
|---|---|
void |
addConstraint(BooleanExpression constraint)
Conjoins the given constraint with the problem. |
void |
addQuery(Expression query)
Registers the given query for evaluation. |
void |
maximize(IntegerExpression f)
Equivalent to minimize(f.minus()). |
void |
minimize(IntegerExpression f)
Sets the objective function to be minimized when solving the problem. |
void |
setTimeout(java.lang.Integer timeout)
Sets the timeout for constraint solving. |
boolean |
solve()
Solves the constraint satisfaction problem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Problem()
| Method Detail |
|---|
public void addConstraint(BooleanExpression constraint)
public void addQuery(Expression query)
public void minimize(IntegerExpression f)
public void maximize(IntegerExpression f)
public void setTimeout(java.lang.Integer timeout)
timeout - The timeout, may be null.public boolean solve()
true if solved.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||