|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.ifs.model.Neighbour<V,T>
net.sf.cpsolver.ifs.model.SimpleNeighbour<V,T>
public class SimpleNeighbour<V extends Variable<V,T>,T extends Value<V,T>>
A neighbour consisting of a change (either assignment or unassignment) of a single variable.
NeighbourSelection
Constructor Summary | |
---|---|
SimpleNeighbour(V variable,
T value)
Model |
Method Summary | |
---|---|
void |
assign(long iteration)
Perform assignment |
T |
getValue()
Selected value |
V |
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(V variable, T value)
variable
- variable to be assignedvalue
- value to be assigned to the given variable, null if the
variable should be unassignedMethod Detail |
---|
public V getVariable()
public T getValue()
public void assign(long iteration)
assign
in class Neighbour<V extends Variable<V,T>,T extends Value<V,T>>
public double value()
value
in class Neighbour<V extends Variable<V,T>,T extends Value<V,T>>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |