jopt.csp.spi.search.actions
Class InstantiateFloatAction

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

public class InstantiateFloatAction
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
InstantiateFloatAction(jopt.csp.variable.CspFloatVariable var, float precision)
          Creates new instantiation action
InstantiateFloatAction(jopt.csp.variable.CspFloatVariable var, float 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

InstantiateFloatAction

public InstantiateFloatAction(jopt.csp.variable.CspFloatVariable var,
                              float precision)
Creates new instantiation action

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

InstantiateFloatAction

public InstantiateFloatAction(jopt.csp.variable.CspFloatVariable var,
                              float 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()