|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.constraints.impl.search.BasicSolution
public class BasicSolution
| Constructor Summary | |
|---|---|
BasicSolution(Solver solver,
int solutionNumber)
|
|
| Method Summary | |
|---|---|
int |
getAt(java.lang.String name)
A synonym for getValue(name). |
int |
getMax(int i)
Returns the maximum value in the domain of the solution variable with index i. |
int |
getMax(java.lang.String name)
Returns the maximum value in the domain of the solution variable with the given name. |
int |
getMin(int i)
Returns the minimum value in the domain of the solution variable with the index i. |
int |
getMin(java.lang.String name)
Returns the minimum value in the domain of the solution variable with the given name. |
int |
getNumberOfVarReals()
Returns the number of decision integer variables in the solution |
int |
getNumberOfVars()
Returns the number of decision integer variables in the solution |
int |
getNumberOfVarSets()
Returns the number of decision integer variables in the solution |
Problem |
getProblem()
Returns the problem that this Solution is a solution to. |
double |
getRealValue(int i)
Returns the value of the solution real variable with the index i, throws a RuntimeException if the real variable is not bound. |
double |
getRealValue(java.lang.String name)
Returns the value of the solution real variable with the given name, throws a RuntimeException if the real variable is not bound. |
int |
getSolutionNumber()
Returns the number identifying this Solution. |
Solver |
getSolver()
Returns the solver that created this Solution. |
int |
getValue(int i)
Returns the value of the solution variable with the index i, throws a RuntimeException if the variable is not bound. |
int |
getValue(java.lang.String name)
Returns the value of the solution variable with the given name, throws a RuntimeException if the variable is not bound. |
boolean |
isBound()
Returns true if all the solution variables are bound, i.e. |
boolean |
isBound(int i)
Returns true if the domain of the solution variable with the index i is a single value, i.e. |
boolean |
isBound(java.lang.String name)
Returns true if the domain of the solution variable with the given name is a single value, i.e. |
void |
log()
Logs the solution in the information log |
void |
log(int varPerLinePar)
Logs the solution in the information log. |
void |
logVarReals()
Logs real variables of the solution in the information log |
void |
logVars()
Logs integer variables of the solution in the information log |
void |
logVarSets()
Logs set variables of the solution in the information log |
void |
setSolutionNumber(int number)
Sets the number identifying this Solution. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSolution(Solver solver,
int solutionNumber)
| Method Detail |
|---|
public int getAt(java.lang.String name)
getAt in interface Solutionname -
public int getMax(int i)
Solution
getMax in interface Solutioni - the index of the desired solution variable.
public int getMax(java.lang.String name)
Solution
getMax in interface Solutionname - the name of the desired solution variable.
public int getMin(int i)
Solution
getMin in interface Solutioni - the index of the desired solution variable.
public int getMin(java.lang.String name)
Solution
getMin in interface Solutionname - the name of the desired solution variable.
public int getNumberOfVarReals()
getNumberOfVarReals in interface Solutionpublic int getNumberOfVars()
getNumberOfVars in interface Solutionpublic int getNumberOfVarSets()
getNumberOfVarSets in interface Solutionpublic Problem getProblem()
Solution
getProblem in interface Solutionpublic double getRealValue(int i)
Solution
getRealValue in interface Solutioni - the index of the desired solution real variable .
public double getRealValue(java.lang.String name)
Solution
getRealValue in interface Solutionname - the name of the desired solution real variable .
public int getSolutionNumber()
Solution
getSolutionNumber in interface Solutionpublic Solver getSolver()
Solution
getSolver in interface Solutionpublic int getValue(int i)
Solution
getValue in interface Solutioni - the index of the desired solution variable .
public int getValue(java.lang.String name)
Solution
getValue in interface Solutionname - the name of the desired solution variable .
public boolean isBound()
Solution
isBound in interface SolutionSolution.isBound(String)public boolean isBound(int i)
Solution
isBound in interface Solutioni - the index of the desired solution variable.
public boolean isBound(java.lang.String name)
Solution
isBound in interface Solutionname - the name of the desired solution variable.
public void log()
Solution
log in interface Solutionpublic void log(int varPerLinePar)
log in interface Solutionpublic void logVarReals()
public void logVars()
public void logVarSets()
public void setSolutionNumber(int number)
Solution
setSolutionNumber in interface Solutionnumber - the number identifying this Solution.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 | ||||||||