choco.kernel.solver.search.restart
Class AbstractRestartStrategy
java.lang.Object
choco.kernel.solver.search.restart.AbstractRestartStrategy
- All Implemented Interfaces:
- IPretty, UniversalRestartStrategy
- Direct Known Subclasses:
- GeometricalRestartStrategy, LubyRestartStrategy
public abstract class AbstractRestartStrategy
- extends Object
- implements UniversalRestartStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scaleFactor
protected int scaleFactor
geometricalFactor
protected double geometricalFactor
AbstractRestartStrategy
public AbstractRestartStrategy(String name,
int scaleFactor,
double geometricalFactor)
checkPositiveValue
protected static final void checkPositiveValue(double value)
getGeometricalFactor
public double getGeometricalFactor()
- Specified by:
getGeometricalFactor
in interface UniversalRestartStrategy
getName
public final String getName()
- Specified by:
getName
in interface UniversalRestartStrategy
getScaleFactor
public final int getScaleFactor()
- Specified by:
getScaleFactor
in interface UniversalRestartStrategy
setGeometricalFactor
public void setGeometricalFactor(double geometricalFactor)
- Specified by:
setGeometricalFactor
in interface UniversalRestartStrategy
setScaleFactor
public final void setScaleFactor(int scaleFactor)
- Specified by:
setScaleFactor
in interface UniversalRestartStrategy
pretty
public String pretty()
- Description copied from interface:
IPretty
- pretty printing of the object. This String is not constant and may depend on the context.
- Specified by:
pretty
in interface IPretty
- Returns:
- a readable string representation of the object
getSequenceExample
public int[] getSequenceExample(int length)
Copyright © 2012. All Rights Reserved.