|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.model.Neighbour
net.sf.cpsolver.ifs.model.SimpleNeighbour
public class SimpleNeighbour
A neighbour consisting of a change (either assignment or unassignment) of a single variable.
NeighbourSelection| Constructor Summary | |
|---|---|
SimpleNeighbour(Variable variable,
Value value)
Model |
|
| Method Summary | |
|---|---|
void |
assign(long iteration)
Perform assignment |
Value |
getValue()
Selected value |
Variable |
getVariable()
Selected variable |
String |
toString()
|
double |
value()
Improvement in the solution value if this neighbour is accepted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleNeighbour(Variable variable,
Value value)
variable - variable to be assignedvalue - value to be assigned to the given variable, null if the variable should be unassigned| Method Detail |
|---|
public Variable getVariable()
public Value getValue()
public void assign(long iteration)
assign in class Neighbourpublic double value()
value in class Neighbourpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||