jopt.csp.spi.search.actions
Class InstantiateDoubleAction

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

public class InstantiateDoubleAction
extends AbstractSearchNodeAction

Action that will attempt to assign a value to an real-number based variable using the search tree. In this context "instantiate" is constraint satisfaction terminology for exploring possible values in the domain of a variable trying to find one that satisfies the constraints; it has nothing to do with the Java instantiation of a class.


Constructor Summary
InstantiateDoubleAction(jopt.csp.variable.CspDoubleVariable var, double precision)
          Creates new instantiation action
InstantiateDoubleAction(jopt.csp.variable.CspDoubleVariable var, double precision, boolean minFirst)
          Creates new instantiation 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

InstantiateDoubleAction

public InstantiateDoubleAction(jopt.csp.variable.CspDoubleVariable var,
                               double precision)
Creates new instantiation action

Parameters:
var - Variable to instantiate
precision - Minimum precision to which variable domain will be reduced

InstantiateDoubleAction

public InstantiateDoubleAction(jopt.csp.variable.CspDoubleVariable var,
                               double precision,
                               boolean minFirst)
Creates new instantiation action

Parameters:
var - Variable to instantiate
precision - Minimum precision to which variable domain will be reduced
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()