choco.kernel.solver.branch
Class AbstractBranchingStrategy
java.lang.Object
choco.kernel.solver.branch.AbstractBranchingStrategy
- All Implemented Interfaces:
- BranchingStrategy
- Direct Known Subclasses:
- AbstractIntBranchingStrategy
public abstract class AbstractBranchingStrategy
- extends Object
- implements BranchingStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected AbstractGlobalSearchStrategy manager
- the main control object (responsible for the whole exploration, while Eqthe branching object
is responsible only at the choice point level
LOG_DOWN_MSG
public static final String LOG_DOWN_MSG
- See Also:
- Constant Field Values
LOG_UP_MSG
public static final String LOG_UP_MSG
- See Also:
- Constant Field Values
LOG_DECISION_MSG_ASSIGN
public static final String LOG_DECISION_MSG_ASSIGN
- See Also:
- Constant Field Values
LOG_DECISION_MSG_REMOVE
public static final String LOG_DECISION_MSG_REMOVE
- See Also:
- Constant Field Values
AbstractBranchingStrategy
public AbstractBranchingStrategy()
setSolver
public void setSolver(AbstractGlobalSearchStrategy s)
getManager
public AbstractGlobalSearchStrategy getManager()
getNextBranching
public final AbstractBranchingStrategy getNextBranching()
- Gets the next branching.
- Returns:
- the next branching
setNextBranching
public final void setNextBranching(AbstractBranchingStrategy nextBranching)
- Sets the next branching.
- Parameters:
nextBranching
- the next branching
initBranching
public void initBranching()
- This method is called before launching the search. it may be used to intialiaze data structures or counters for
instance.
initConstraintForBranching
public void initConstraintForBranching(SConstraint c)
- this method is used to build the data structure in the branching for
the given constraint. This is used when the constraint was not present
at the initialization of the branching, for example a cut
- Parameters:
c
- constraint
Copyright © 2012. All Rights Reserved.