[jboss-svn-commits] JBL Code SVN: r30842 - in labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook: images/Chapter-Use_cases_and_examples and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Dec 28 14:36:58 EST 2009


Author: ge0ffrey
Date: 2009-12-28 14:36:58 -0500 (Mon, 28 Dec 2009)
New Revision: 30842

Modified:
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Use_cases_and_examples/Chapter-Use_cases_and_examples.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/images/Chapter-Use_cases_and_examples/travelingTournamentUseCase.png
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/images/Chapter-Use_cases_and_examples/travelingTournamentUseCase.svg
Log:
traveling tournament diagram improved

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Use_cases_and_examples/Chapter-Use_cases_and_examples.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Use_cases_and_examples/Chapter-Use_cases_and_examples.xml	2009-12-28 16:35:40 UTC (rev 30841)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Use_cases_and_examples/Chapter-Use_cases_and_examples.xml	2009-12-28 19:36:58 UTC (rev 30842)
@@ -1,20 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<chapter xmlns="http://docbook.org/ns/docbook"
-         xmlns:xlink="http://www.w3.org/1999/xlink"
-         xmlns:xi="http://www.w3.org/2001/XInclude"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://docbook.org/ns/docbook http://www.docbook.org/xml/5.0/xsd/docbook.xsd
-                             http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd"
-         version="5.0" xml:base="./">
-
+<chapter version="5.0"
+         xsi:schemaLocation="http://docbook.org/ns/docbook http://www.docbook.org/xml/5.0/xsd/docbook.xsd http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd"
+         xml:base="./" xmlns="http://docbook.org/ns/docbook" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink"
+         xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:ns="http://docbook.org/ns/docbook">
   <title>Use cases and examples</title>
 
   <section>
     <title>Introduction</title>
 
-    <para>Drools Planner has several examples. In this manual we explain Drools Planner mainly using the n queens example.
-    So it's advisable to read at least the section about that example. For advanced users, the Examination example is
-    recommended.</para>
+    <para>Drools Planner has several examples. In this manual we explain Drools Planner mainly using the n queens
+    example. So it's advisable to read at least the section about that example. For advanced users, the Examination
+    example is recommended.</para>
 
     <para>You can find the source code of all these examples in the drools source distribution and also in subversion
     under <literal>drools-planner/drools-planner-examples</literal>.</para>
@@ -306,8 +303,8 @@
       </table>
 
       <para>A single <literal>NQueens</literal> instance contains a list of all <literal>Queen</literal> instances. It
-      is the <literal>Solution</literal> implementation which will be supplied to and retrieved from the Solver.
-      Notice that in the 4 queens example, NQueens's <literal>getN()</literal> method will always return 4.</para>
+      is the <literal>Solution</literal> implementation which will be supplied to and retrieved from the Solver. Notice
+      that in the 4 queens example, NQueens's <literal>getN()</literal> method will always return 4.</para>
     </section>
   </section>
 
@@ -369,32 +366,31 @@
     <section>
       <title>Problem statement</title>
 
-      <para>Schedule matches between teams with the following hard constraints:</para>
+      <para>Schedule matches between N teams with the following hard constraints:</para>
 
       <itemizedlist>
         <listitem>
-          <para>Each team plays twice against every other team: once home and once away</para>
+          <para>Each team plays twice against every other team: once home and once away.</para>
         </listitem>
 
         <listitem>
-          <para>Each team has exactly 1 match on each playing day</para>
+          <para>Each team has exactly 1 match on each timeslot.</para>
         </listitem>
 
         <listitem>
-          <para>No more than 3 consecutive home or 3 consecutive away matches for any team</para>
+          <para>No team must have more than 3 consecutive home or 3 consecutive away matches.</para>
         </listitem>
 
         <listitem>
-          <para>No repeaters: 2 consecutive matches of the same 2 teams (so each team plays once home and once
-          away</para>
+          <para>No repeaters: no 2 consecutive matches of the same 2 opposing teams.</para>
         </listitem>
       </itemizedlist>
 
-      <para>and the following soft constraints:</para>
+      <para>and the following soft constraint:</para>
 
       <itemizedlist>
         <listitem>
-          <para>Minimize the total distance traveled of all teams.</para>
+          <para>Minimize the total distance traveled by all teams.</para>
         </listitem>
       </itemizedlist>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/images/Chapter-Use_cases_and_examples/travelingTournamentUseCase.png
===================================================================
(Binary files differ)

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/images/Chapter-Use_cases_and_examples/travelingTournamentUseCase.svg
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/images/Chapter-Use_cases_and_examples/travelingTournamentUseCase.svg	2009-12-28 16:35:40 UTC (rev 30841)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/images/Chapter-Use_cases_and_examples/travelingTournamentUseCase.svg	2009-12-28 19:36:58 UTC (rev 30842)
@@ -1189,6 +1189,41 @@
        inkscape:vp_y="0 : 1000 : 0"
        inkscape:vp_x="0 : 0.5 : 1"
        sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective3674"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective3710"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective3741"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective3741-9"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective3741-7"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
   </defs>
   <sodipodi:namedview
      id="base"
@@ -1197,9 +1232,9 @@
      borderopacity="1.0"
      inkscape:pageopacity="1"
      inkscape:pageshadow="2"
-     inkscape:zoom="1.8725"
-     inkscape:cx="415.99231"
-     inkscape:cy="272.34883"
+     inkscape:zoom="1.1866667"
+     inkscape:cx="400"
+     inkscape:cy="298.31461"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="true"
@@ -1322,7 +1357,7 @@
            height="48.876404"
            x="485.39325"
            y="76.68541" /></flowRegion><flowPara
-         id="flowPara3533"></flowPara></flowRoot>    <g
+         id="flowPara3533" /></flowRoot>    <g
        id="g4247"
        transform="translate(10,49.999997)">
       <rect
@@ -3604,7 +3639,7 @@
        sodipodi:cy="536.60815"
        sodipodi:rx="3.2794917"
        sodipodi:ry="3.3918531"
-       d="m 196.55899,536.60815 a 3.2794917,3.3918531 0 1 1 -6.55899,0 3.2794917,3.3918531 0 1 1 6.55899,0 z"
+       d="m 196.55899,536.60815 c 0,1.87327 -1.46828,3.39186 -3.27949,3.39186 -1.81122,0 -3.2795,-1.51859 -3.2795,-3.39186 0,-1.87326 1.46828,-3.39185 3.2795,-3.39185 1.81121,0 3.27949,1.51859 3.27949,3.39185 z"
        transform="matrix(1.3874869,0,0,1.3415238,51.827236,157.48956)" />
     <path
        sodipodi:type="arc"
@@ -3614,7 +3649,7 @@
        sodipodi:cy="536.60815"
        sodipodi:rx="3.2794917"
        sodipodi:ry="3.3918531"
-       d="m 196.55899,536.60815 a 3.2794917,3.3918531 0 1 1 -6.55899,0 3.2794917,3.3918531 0 1 1 6.55899,0 z"
+       d="m 196.55899,536.60815 c 0,1.87327 -1.46828,3.39186 -3.27949,3.39186 -1.81122,0 -3.2795,-1.51859 -3.2795,-3.39186 0,-1.87326 1.46828,-3.39185 3.2795,-3.39185 1.81121,0 3.27949,1.51859 3.27949,3.39185 z"
        transform="matrix(1.3874869,0,0,1.3415238,192.32724,38.989558)" />
     <path
        sodipodi:type="arc"
@@ -3624,7 +3659,7 @@
        sodipodi:cy="536.60815"
        sodipodi:rx="3.2794917"
        sodipodi:ry="3.3918531"
-       d="m 196.55899,536.60815 a 3.2794917,3.3918531 0 1 1 -6.55899,0 3.2794917,3.3918531 0 1 1 6.55899,0 z"
+       d="m 196.55899,536.60815 c 0,1.87327 -1.46828,3.39186 -3.27949,3.39186 -1.81122,0 -3.2795,-1.51859 -3.2795,-3.39186 0,-1.87326 1.46828,-3.39185 3.2795,-3.39185 1.81121,0 3.27949,1.51859 3.27949,3.39185 z"
        transform="matrix(1.3874869,0,0,1.3415238,210.32724,23.989558)" />
     <path
        sodipodi:type="arc"
@@ -3634,7 +3669,7 @@
        sodipodi:cy="536.60815"
        sodipodi:rx="3.2794917"
        sodipodi:ry="3.3918531"
-       d="m 196.55899,536.60815 a 3.2794917,3.3918531 0 1 1 -6.55899,0 3.2794917,3.3918531 0 1 1 6.55899,0 z"
+       d="m 196.55899,536.60815 c 0,1.87327 -1.46828,3.39186 -3.27949,3.39186 -1.81122,0 -3.2795,-1.51859 -3.2795,-3.39186 0,-1.87326 1.46828,-3.39185 3.2795,-3.39185 1.81121,0 3.27949,1.51859 3.27949,3.39185 z"
        transform="matrix(1.3874869,0,0,1.3415238,215.82724,-77.010452)" />
     <path
        sodipodi:type="star"
@@ -3908,5 +3943,65 @@
        inkscape:randomized="0"
        d="m 391.12729,338.06391 -3.18765,-6.17525 6.94174,0.32704 -3.75409,5.84821 z"
        transform="translate(99.943135,364.29827)" />
-  </g>
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot6718-4"
+       style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+       transform="translate(280.95453,607.94107)"><flowRegion
+         id="flowRegion6720-90"><rect
+           id="rect6722-9"
+           width="200"
+           height="39.999943"
+           x="19.045469"
+           y="314.42111"
+           style="font-size:24px;text-align:center;text-anchor:middle" /></flowRegion><flowPara
+         id="flowPara6730-7">Drools Planner</flowPara></flowRoot>    <flowRoot
+       xml:space="preserve"
+       id="flowRoot6718-4-6"
+       style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+       transform="translate(271.21094,571.51778)"><flowRegion
+         id="flowRegion6720-90-1"><rect
+           id="rect6722-9-3"
+           width="50"
+           height="30.00001"
+           x="18.789061"
+           y="310.84439"
+           style="font-size:24px;text-align:center;text-anchor:middle" /></flowRegion><flowPara
+         id="flowPara6730-7-2">ATL</flowPara></flowRoot>    <flowRoot
+       xml:space="preserve"
+       id="flowRoot6718-4-6-0"
+       style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+       transform="translate(358.22266,421.51778)"><flowRegion
+         id="flowRegion6720-90-1-5"><rect
+           id="rect6722-9-3-0"
+           width="60"
+           height="30.00001"
+           x="31.77734"
+           y="310.84439"
+           style="font-size:24px;text-align:center;text-anchor:middle" /></flowRegion><flowPara
+         id="flowPara6730-7-2-2">PHI</flowPara></flowRoot>    <flowRoot
+       xml:space="preserve"
+       id="flowRoot6718-4-6-4"
+       style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+       transform="translate(470.96094,424.3381)"><flowRegion
+         id="flowRegion6720-90-1-3"><rect
+           id="rect6722-9-3-5"
+           width="70"
+           height="30.000002"
+           x="9.0390596"
+           y="308.02408"
+           style="font-size:24px;text-align:center;text-anchor:middle" /></flowRegion><flowPara
+         id="flowPara6730-7-2-1">NYM</flowPara></flowRoot>    <flowRoot
+       xml:space="preserve"
+       id="flowRoot6718-4-6-43"
+       style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial;-inkscape-font-specification:Arial"
+       transform="translate(397.26953,284.3381)"><flowRegion
+         id="flowRegion6720-90-1-1"><rect
+           id="rect6722-9-3-4"
+           width="80"
+           height="29.999987"
+           x="22.730471"
+           y="328.02408"
+           style="font-size:24px;text-align:center;text-anchor:middle" /></flowRegion><flowPara
+         id="flowPara6730-7-2-6">MON</flowPara></flowRoot>  </g>
 </svg>



More information about the jboss-svn-commits mailing list