<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Exercise</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Exercise/</link><description>Recent changes to Exercise</description><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/Exercise/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 26 Feb 2014 15:45:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mathmaker/doc4dev/Exercise/feed" rel="self" type="application/rss+xml"/><item><title>Exercise modified by Nicolas Hainaux</title><link>https://sourceforge.net/p/mathmaker/doc4dev/Exercise/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The organization of the classes is analog to the one of sheets.&lt;/p&gt;
&lt;p&gt;X_Structure contains the to_str() method which writes the texts and answers of the Exercise to the output.&lt;/p&gt;
&lt;p&gt;The instanciable Exercises should all be a copy of X_Model. They just need to reimplement __init__() (which first calls X_Structure.__init__() to set properly some fields) to define the Questions that will be embedded in the field questions_list.&lt;/p&gt;
&lt;p&gt;Finally, each Exercise has also some global variables which should be defined. More details about them: &lt;em&gt;(this should be checked again...)&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;AVAILABLE_X_KIND_VALUES will define which kinds (and subkinds) of Exercises are handled by this class. Extract from the code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="cp"&gt;# Here the list of available values for the parameter x_kind='' and the&lt;/span&gt;
&lt;span class="cp"&gt;# matching x_subkind values&lt;/span&gt;
&lt;span class="cp"&gt;# Note : the bypass value allows to give the value of *x_subkind* directly to&lt;/span&gt;
&lt;span class="cp"&gt;# the matching question Constructor, bypassing the action of the present class&lt;/span&gt;
&lt;span class="n"&gt;AVAILABLE_X_KIND_VALUES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; \
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;short_test&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;x_subkind1&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;x_subkind2&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
     &lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;preformatted&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="err"&gt;''&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
     &lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;bypass&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="err"&gt;''&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;X_LAYOUT_UNIT: will define the unit used in X_LAYOUTS&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;X_LAYOUTS: will define the layout of the Questions inside the Exercise&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The instructions for use are all written in X_Model.py&lt;br /&gt;
&lt;a class="" href="http://mathmaker.sourceforge.net/participate/doc/classsheet_1_1exercise_1_1X__Structure_1_1X__Structure.html"&gt;X_Structure in the doc&lt;/a&gt;&lt;br /&gt;
&lt;a class="" href="http://mathmaker.sourceforge.net/participate/doc/classsheet_1_1exercise_1_1X__Model_1_1X__Model.html"&gt;X_Model in the doc&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nicolas Hainaux</dc:creator><pubDate>Wed, 26 Feb 2014 15:45:38 -0000</pubDate><guid>https://sourceforge.netf7a8019ff753f5312519bdfce2efdcda0fb374e9</guid></item></channel></rss>