[jboss-svn-commits] JBL Code SVN: r28963 - labs/jbossrules/trunk/drools-docs/drools-docs-solver/src/main/docbook/en-US/Chapter-Solver.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Aug 17 10:44:46 EDT 2009
Author: ge0ffrey
Date: 2009-08-17 10:44:46 -0400 (Mon, 17 Aug 2009)
New Revision: 28963
Modified:
labs/jbossrules/trunk/drools-docs/drools-docs-solver/src/main/docbook/en-US/Chapter-Solver/Section-Local_Search_Solver.xml
Log:
JBRULES-2250
Modified: labs/jbossrules/trunk/drools-docs/drools-docs-solver/src/main/docbook/en-US/Chapter-Solver/Section-Local_Search_Solver.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-solver/src/main/docbook/en-US/Chapter-Solver/Section-Local_Search_Solver.xml 2009-08-17 14:42:17 UTC (rev 28962)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-solver/src/main/docbook/en-US/Chapter-Solver/Section-Local_Search_Solver.xml 2009-08-17 14:44:46 UTC (rev 28963)
@@ -626,6 +626,18 @@
solver remembers the best solution it has encountered through the entire search path. Each time the current solution
is better than the last best solution, the current solution is cloned and referenced as the new best
solution.</para>
+
+ <para>You can listen to solver events, including when the best solution changes during solving, by adding a
+ <literal>SolverEventListener</literal> to the <literal>Solver</literal>:</para>
+
+ <programlisting>public interface Solver {
+
+ // ...
+
+ void addEventListener(SolverEventListener eventListener);
+ void removeEventListener(SolverEventListener eventListener);
+
+}</programlisting>
</section>
<section>
More information about the jboss-svn-commits
mailing list