public class ConflictOrdering extends AbstractStrategy<Variable> implements IMonitorRestart, IMonitorSolution, IMonitorContradiction
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected long |
failure |
protected BitSet |
inscope |
protected AbstractStrategy<Variable> |
mainStrategy |
protected int |
nbvar |
protected Solver |
solver |
protected long[] |
timestamps |
protected int[] |
var2id |
LOGGER, vars
Constructor and Description |
---|
ConflictOrdering(Solver solver,
AbstractStrategy<Variable> mainStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
afterRestart() |
void |
beforeRestart() |
Decision |
getDecision()
Provides access to the current decision in the strategy.
|
void |
init()
Prepare
this to be used in a search loop |
void |
onContradiction(ContradictionException cex) |
void |
onSolution() |
computeDecision, getVariables, toString
protected Solver solver
protected AbstractStrategy<Variable> mainStrategy
protected boolean active
protected int nbvar
protected int[] var2id
protected long[] timestamps
protected long failure
protected BitSet inscope
public ConflictOrdering(Solver solver, AbstractStrategy<Variable> mainStrategy)
public void init() throws ContradictionException
AbstractStrategy
this
to be used in a search loopinit
in class AbstractStrategy<Variable>
ContradictionException
public Decision getDecision()
AbstractStrategy
null
.getDecision
in class AbstractStrategy<Variable>
public void onContradiction(ContradictionException cex)
onContradiction
in interface IMonitorContradiction
public void beforeRestart()
beforeRestart
in interface IMonitorRestart
public void afterRestart()
afterRestart
in interface IMonitorRestart
public void onSolution()
onSolution
in interface IMonitorSolution
Copyright © 2015. All rights reserved.