choco.kernel.solver.search.restart
Class AbstractRestartStrategy

java.lang.Object
  extended by choco.kernel.solver.search.restart.AbstractRestartStrategy
All Implemented Interfaces:
IPretty, UniversalRestartStrategy
Direct Known Subclasses:
GeometricalRestartStrategy, LubyRestartStrategy

public abstract class AbstractRestartStrategy
extends Object
implements UniversalRestartStrategy


Field Summary
protected  double geometricalFactor
           
protected  int scaleFactor
           
 
Constructor Summary
AbstractRestartStrategy(String name, int scaleFactor, double geometricalFactor)
           
 
Method Summary
protected static void checkPositiveValue(double value)
           
 double getGeometricalFactor()
           
 String getName()
           
 int getScaleFactor()
           
 int[] getSequenceExample(int length)
           
 String pretty()
          pretty printing of the object.
 void setGeometricalFactor(double geometricalFactor)
           
 void setScaleFactor(int scaleFactor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.kernel.solver.search.restart.UniversalRestartStrategy
getNextCutoff
 

Field Detail

scaleFactor

protected int scaleFactor

geometricalFactor

protected double geometricalFactor
Constructor Detail

AbstractRestartStrategy

public AbstractRestartStrategy(String name,
                               int scaleFactor,
                               double geometricalFactor)
Method Detail

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.