Package org.jacop.search.restart
Class RestartSearch<T extends Var>
- java.lang.Object
-
- org.jacop.search.restart.RestartSearch<T>
-
- Type Parameters:
T- type of variables used in this search.
public class RestartSearch<T extends Var> extends java.lang.ObjectImplements restart search. Only cost as IntVar is possible.- Version:
- 4.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRestartSearch.CostListener<T extends Var>
-
Field Summary
Fields Modifier and Type Field Description (package private) Calculatorcalculator(package private) Varcost(package private) doublefloatCostValue(package private) intintCostValue(package private) Search<T>lastNotNullSearch(package private) SolutionListenerlastSolutionListener(package private) intnumberRestarts(package private) CustomReportreportSolution(package private) DepthFirstSearch<T>search(package private) SelectChoicePoint<T>select(package private) Storestore(package private) longtimeOut(package private) booleantimeOutCheck
-
Constructor Summary
Constructors Constructor Description RestartSearch(Store store, DepthFirstSearch<T> s, SelectChoicePoint<T> sel, Calculator calculator)RestartSearch(Store store, DepthFirstSearch<T> s, SelectChoicePoint<T> sel, Calculator calculator, Var cost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReporter(CustomReport r)doublegetFloatCost()intgetIntCost()booleanlabeling()intrestarts()voidsetTimeOut(long tOut)voidsetTimeOutMilliseconds(long tOut)
-
-
-
Field Detail
-
store
Store store
-
search
DepthFirstSearch<T extends Var> search
-
select
SelectChoicePoint<T extends Var> select
-
calculator
Calculator calculator
-
lastSolutionListener
SolutionListener lastSolutionListener
-
reportSolution
CustomReport reportSolution
-
cost
Var cost
-
intCostValue
int intCostValue
-
floatCostValue
double floatCostValue
-
numberRestarts
int numberRestarts
-
timeOutCheck
boolean timeOutCheck
-
timeOut
long timeOut
-
-
Constructor Detail
-
RestartSearch
public RestartSearch(Store store, DepthFirstSearch<T> s, SelectChoicePoint<T> sel, Calculator calculator, Var cost)
-
RestartSearch
public RestartSearch(Store store, DepthFirstSearch<T> s, SelectChoicePoint<T> sel, Calculator calculator)
-
-
Method Detail
-
labeling
public boolean labeling()
-
getIntCost
public int getIntCost()
-
getFloatCost
public double getFloatCost()
-
addReporter
public void addReporter(CustomReport r)
-
restarts
public int restarts()
-
setTimeOut
public void setTimeOut(long tOut)
-
setTimeOutMilliseconds
public void setTimeOutMilliseconds(long tOut)
-
-