choco.branch
Class AbstractBranching

java.lang.Object
  extended by choco.branch.AbstractBranching
Direct Known Subclasses:
AbstractIntBranching, PalmAbstractBranching

public abstract class AbstractBranching
extends java.lang.Object


Field Summary
protected static java.lang.String[] LOG_DECISION_MSG
           
protected static java.lang.String LOG_DOWN_MSG
           
protected static java.lang.String LOG_UP_MSG
           
protected static java.util.logging.Logger logger
          an object for logging trace statements
protected  AbstractGlobalSearchSolver manager
          the main control object (responsible for the whole exploration, while the branching object is responsible only at the choice point level
protected  AbstractBranching nextBranching
          a link towards the next branching object (once this one is exhausted)
 
Constructor Summary
AbstractBranching()
           
 
Method Summary
abstract  java.lang.String getDecisionLogMsg(int branchIndex)
          used for logging messages related to the search tree
 AbstractBranching getNextBranching()
          Gets the next branching.
 void setNextBranching(AbstractBranching nextBranching)
          Sets the next branching.
 void setSolver(AbstractGlobalSearchSolver s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected AbstractGlobalSearchSolver manager
the main control object (responsible for the whole exploration, while the branching object is responsible only at the choice point level


nextBranching

protected AbstractBranching nextBranching
a link towards the next branching object (once this one is exhausted)


logger

protected static java.util.logging.Logger logger
an object for logging trace statements


LOG_DOWN_MSG

protected static java.lang.String LOG_DOWN_MSG

LOG_UP_MSG

protected static java.lang.String LOG_UP_MSG

LOG_DECISION_MSG

protected static java.lang.String[] LOG_DECISION_MSG
Constructor Detail

AbstractBranching

public AbstractBranching()
Method Detail

setSolver

public void setSolver(AbstractGlobalSearchSolver s)

getNextBranching

public AbstractBranching getNextBranching()
Gets the next branching.


setNextBranching

public void setNextBranching(AbstractBranching nextBranching)
Sets the next branching.


getDecisionLogMsg

public abstract java.lang.String getDecisionLogMsg(int branchIndex)
used for logging messages related to the search tree

Parameters:
branchIndex -
Returns:
an string that will be printed between the branching object and the branch index Suggested implementations return LOG_DECISION_MSG[0] or LOG_DECISION_MSG[branchIndex]