[jboss-svn-commits] JBL Code SVN: r33819 - in labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US: Chapter-Planner_introduction and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Jul 10 06:37:57 EDT 2010


Author: ge0ffrey
Date: 2010-07-10 06:37:57 -0400 (Sat, 10 Jul 2010)
New Revision: 33819

Modified:
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.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
Log:
remove the lesson schedule example (lesser form of the curriculum course scheduling example)

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml	2010-07-09 22:12:11 UTC (rev 33818)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml	2010-07-10 10:37:57 UTC (rev 33819)
@@ -419,23 +419,30 @@
     }</programlisting>
 
       <para>The <literal>cloneSolution()</literal> method should clone no more and no less than the parts of the
-      <literal>Solution</literal> that can change during solving. For example, in the lesson schedule example the
-      lessons are cloned, but teachers, groups and timeslots are not cloned because only a lesson's appointed timeslot
-      changes during solving:</para>
+      <literal>Solution</literal> that can change during planning. For example, in the curriculum course schedule
+      example the lectures are cloned, but teachers, courses, timeslots, periods, rooms, ... are not cloned because only
+      a lecture's appointed period or room changes during solving:</para>
 
       <programlisting>    /**
-     * Clone will only deep copy the lessons
+     * Clone will only deep copy the {@link #lectureList}.
      */
-    public LessonSchedule cloneSolution() {
-        LessonSchedule clone = new LessonSchedule();
-        clone.timeslotList = timeslotList; // No Deep copy
-        clone.teacherList = teacherList; // No Deep copy
-        clone.groupList = groupList; // No Deep copy
-        List&lt;Lesson&gt; clonedLessonList = new ArrayList&lt;Lesson&gt;(lessonList.size());
-        for (Lesson lesson : lessonList) {
-            clonedLessonList.add(lesson.clone());
+    public CurriculumCourseSchedule cloneSolution() {
+        CurriculumCourseSchedule clone = new CurriculumCourseSchedule();
+        ...
+        clone.teacherList = teacherList;
+        clone.curriculumList = curriculumList;
+        clone.courseList = courseList;
+        clone.dayList = dayList;
+        clone.timeslotList = timeslotList;
+        clone.periodList = periodList;
+        clone.roomList = roomList;
+        clone.unavailablePeriodConstraintList = unavailablePeriodConstraintList;
+        List&lt;Lecture&gt; clonedLectureList = new ArrayList&lt;Lecture&gt;(lectureList.size());
+        for (Lecture lecture : lectureList) {
+            Lecture clonedLecture = lecture.clone();
+            clonedLectureList.add(clonedLecture);
         }
-        clone.lessonList = clonedLessonList;
+        clone.lectureList = clonedLectureList;
         clone.score = score;
         return clone;
     }</programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml	2010-07-09 22:12:11 UTC (rev 33818)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml	2010-07-10 10:37:57 UTC (rev 33819)
@@ -26,7 +26,7 @@
       </listitem>
 
       <listitem>
-        <para>Lesson scheduling</para>
+        <para>Lesson or course scheduling</para>
       </listitem>
 
       <listitem>

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	2010-07-09 22:12:11 UTC (rev 33818)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Use_cases_and_examples/Chapter-Use_cases_and_examples.xml	2010-07-10 10:37:57 UTC (rev 33819)
@@ -309,42 +309,6 @@
   </section>
 
   <section>
-    <title>The lesson schedule example</title>
-
-    <section>
-      <title>Screenshot</title>
-
-      <para>Here is a screenshot of the example:</para>
-
-      <figure>
-        <title>Screenshot of the lesson schedule example</title>
-
-        <mediaobject>
-          <imageobject>
-            <imagedata fileref="images/Chapter-Use_cases_and_examples/screenshotLessonSchedule.png"></imagedata>
-          </imageobject>
-        </mediaobject>
-      </figure>
-    </section>
-
-    <section>
-      <title>Problem statement</title>
-
-      <para>Schedule lessons with the follow constraints:</para>
-
-      <itemizedlist>
-        <listitem>
-          <para>No teacher with 2 lessons in the same timeslot</para>
-        </listitem>
-
-        <listitem>
-          <para>No group with 2 lessons in the same timeslot</para>
-        </listitem>
-      </itemizedlist>
-    </section>
-  </section>
-
-  <section>
     <title>The traveling tournament example</title>
 
     <section>



More information about the jboss-svn-commits mailing list