|
||||||||||
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.LazyNeighbour<V,T>
net.sf.cpsolver.ifs.model.LazySwap<V,T>
public class LazySwap<V extends Variable<V,T>,T extends Value<V,T>>
Lazy swap of two variables. See LazyNeighbour
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.cpsolver.ifs.model.LazyNeighbour |
---|
LazyNeighbour.LazyNeighbourAcceptanceCriterion<V extends Variable<V,T>,T extends Value<V,T>> |
Constructor Summary | |
---|---|
LazySwap(T v1,
T v2)
Constructor |
Method Summary | |
---|---|
protected void |
doAssign(long iteration)
Perform swap |
Model<V,T> |
getModel()
Return problem model |
String |
toString()
String representation |
protected void |
undoAssign(long iteration)
Undo the swap |
Methods inherited from class net.sf.cpsolver.ifs.model.LazyNeighbour |
---|
assign, setAcceptanceCriterion, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazySwap(T v1, T v2)
v1
- first variablev2
- second variableMethod Detail |
---|
protected void doAssign(long iteration)
doAssign
in class LazyNeighbour<V extends Variable<V,T>,T extends Value<V,T>>
protected void undoAssign(long iteration)
undoAssign
in class LazyNeighbour<V extends Variable<V,T>,T extends Value<V,T>>
public Model<V,T> getModel()
getModel
in class LazyNeighbour<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 |