choco.set.search
Class AssignSetVar

java.lang.Object
  extended by choco.branch.AbstractBranching
      extended by choco.search.AbstractIntBranching
          extended by choco.set.search.AbstractSetBranching
              extended by choco.set.search.AssignSetVar
All Implemented Interfaces:
Branching, IntBranching

public class AssignSetVar
extends AbstractSetBranching


Field Summary
 
Fields inherited from class choco.branch.AbstractBranching
LOG_DECISION_MSG, LOG_DOWN_MSG, LOG_UP_MSG, logger, manager, nextBranching
 
Constructor Summary
AssignSetVar(SetVarSelector varselect, SetValSelector valselect)
           
 
Method Summary
 java.lang.String getDecisionLogMsg(int i)
          used for logging messages related to the search tree
 int getFirstBranch(java.lang.Object x)
          Computes the search index of the first branch of the choice point.
 java.lang.Object selectBranchingObject()
          selecting the object under scrutiny (that object on which an alternative will be set)
 
Methods inherited from class choco.set.search.AbstractSetBranching
branchOn, finishedBranching, getNextBranch, goDownBranch, goUpBranch
 
Methods inherited from class choco.search.AbstractIntBranching
explore, goUpBranch, logDownBranch, logUpBranch
 
Methods inherited from class choco.branch.AbstractBranching
getNextBranching, setNextBranching, setSolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignSetVar

public AssignSetVar(SetVarSelector varselect,
                    SetValSelector valselect)
Method Detail

selectBranchingObject

public java.lang.Object selectBranchingObject()
Description copied from interface: Branching
selecting the object under scrutiny (that object on which an alternative will be set)

Returns:
the object on which an alternative will be set (often a variable)

getFirstBranch

public int getFirstBranch(java.lang.Object x)
Description copied from interface: IntBranching
Computes the search index of the first branch of the choice point.

Parameters:
x - the object on which the alternative is set
Returns:
the index of the first branch

getDecisionLogMsg

public java.lang.String getDecisionLogMsg(int i)
Description copied from class: AbstractBranching
used for logging messages related to the search tree

Specified by:
getDecisionLogMsg in class AbstractBranching
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]