|
Cream version 1.06 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.ac.kobe_u.cs.cream.Solution
public class Solution
Solutions. Solutions are returned by constraint solvers. A solution consists of domains for variables and a code.
Solver
,
Domain
,
Code
Constructor Summary | |
---|---|
Solution(Network network)
Constructs a solution from the given network. |
Method Summary | |
---|---|
Code |
getCode()
Returns the code of the solution. |
Domain |
getDomain(Variable v)
Returns the domain of the given variable in the solution. |
int |
getIntValue(Variable v)
Returns the integer value of the given variable in the solution. |
int |
getObjectiveIntValue()
Returns the integer value of the objective variable in the solution. |
String |
toString()
Returns a readable string representation of this solution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Solution(Network network)
network
- the constraint networkMethod Detail |
---|
public int getObjectiveIntValue()
public Domain getDomain(Variable v)
v
- the variable
public int getIntValue(Variable v)
v
- the variable
public Code getCode()
public String toString()
toString
in class Object
|
Cream version 1.06 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |