javax.constraints.impl.search.goal
Class GoalCheckTimeLimit

java.lang.Object
  extended by javax.constraints.impl.CommonBase
      extended by javax.constraints.impl.search.AbstractSearchStrategy
          extended by javax.constraints.impl.search.goal.Goal
              extended by javax.constraints.impl.search.goal.GoalCheckTimeLimit
All Implemented Interfaces:
SearchStrategy

public class GoalCheckTimeLimit
extends Goal

This goal checks if time limit exceeded and if yes it forces solver to backtrack.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.constraints.SearchStrategy
SearchStrategy.SearchStrategyType
 
Method Summary
 Goal execute()
          Method that executes an underlying goal in the proper implementation.
 
Methods inherited from class javax.constraints.impl.search.goal.Goal
and, getSolver, or, trace
 
Methods inherited from class javax.constraints.impl.search.AbstractSearchStrategy
getType, getValueSelector, getVarReals, getVars, getVarSelector, run, setType, setValueSelector, setValueSelectorType, setVarReals, setVars, setVars, setVars, setVarSelector, setVarSelectorType
 
Methods inherited from class javax.constraints.impl.CommonBase
getImpl, getName, getObject, getProblem, setImpl, setName, setObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.constraints.SearchStrategy
getImpl, getName, getObject, setImpl, setName, setObject
 

Method Detail

execute

public Goal execute()
             throws java.lang.Exception
Description copied from class: Goal
Method that executes an underlying goal in the proper implementation.

Specified by:
execute in class Goal
Returns:
goal or null
Throws:
java.lang.Exception