|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.Solution
choco.palm.dbt.search.PalmSolution
public class PalmSolution
Solution for a Palm problem.
| Field Summary | |
|---|---|
protected int[] |
lstat
Statistics for this solution (CPU, extensiions...). |
| Fields inherited from class choco.Solution |
|---|
intVarValues, logger, objectiveValue, problem, realVarValues, setVarValues |
| Constructor Summary | |
|---|---|
PalmSolution(AbstractProblem pb)
Creates a solution for the specified problem. |
|
| Method Summary | |
|---|---|
int |
getStatistic(int stat)
Returns a statistic about the solution. |
int |
getValue(int idx)
Returns the value of the variable idx. |
void |
recordStatistic(int statIndex,
int statValue)
|
java.lang.String |
toString()
Pretty display of the solution. |
| Methods inherited from class choco.Solution |
|---|
getRealValue, getSetValue, recordIntObjective, recordIntValue, recordRealValue, recordSetValue, restore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] lstat
| Constructor Detail |
|---|
public PalmSolution(AbstractProblem pb)
| Method Detail |
|---|
public void recordStatistic(int statIndex,
int statValue)
public int getStatistic(int stat)
stat - The statitic constant (PalmProblem.RLX/EXT/CPU).public int getValue(int idx)
idx.
getValue in class Solutionidx - the variable number
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 | ||||||||