jopt.csp.spi.search.actions
Class SplitGenerateIntegerAction

java.lang.Object
  extended byjopt.csp.spi.search.tree.AbstractSearchNodeAction
      extended byjopt.csp.spi.search.actions.SplitGenerateIntegerAction
All Implemented Interfaces:
jopt.csp.search.SearchAction

public class SplitGenerateIntegerAction
extends AbstractSearchNodeAction

Action that will generate values for an array of variables


Constructor Summary
SplitGenerateIntegerAction(jopt.csp.variable.CspIntVariable[] vars)
          Creates new generation action
SplitGenerateIntegerAction(jopt.csp.variable.CspIntVariable[] vars, boolean minFirst)
          Creates new generation action
 
Method Summary
 jopt.csp.search.SearchAction performAction()
          Called by search tree to execute this action.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SplitGenerateIntegerAction

public SplitGenerateIntegerAction(jopt.csp.variable.CspIntVariable[] vars)
Creates new generation action

Parameters:
vars - Variable to instantiate

SplitGenerateIntegerAction

public SplitGenerateIntegerAction(jopt.csp.variable.CspIntVariable[] vars,
                                  boolean minFirst)
Creates new generation action

Parameters:
vars - Variable to instantiate
minFirst - True if bottom half of domain should be used to restrict domain first, false to use upper half
Method Detail

performAction

public jopt.csp.search.SearchAction performAction()
                                           throws jopt.csp.variable.PropagationFailureException
Called by search tree to execute this action.

Returns:
Next action to execute in search
Throws:
jopt.csp.variable.PropagationFailureException

toString

public java.lang.String toString()