JESS: [EXTERNAL] Creating an eLearning system following TekMart example

"Rejaul Barbhuiya" <[email protected]> Mon, 24 Jun 2013 21:01:24 +0530
Newsgroups gmane.comp.java.jess
Message-ID <CA+SntFpbQHcN44UGtFTqnLm--DW1RuYxpQ1nOGgnXLnRwj4hUg@mail.gmail.com>
--001a11339f38fcdfd004dfe81ae4
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
 charset=iso-8859-1

Kindly bear with me as I explain my query...

I am developing an Intelligent Tutoring System using Jess + Servlet + Jsp.
It will perform following actions (implemented as rules):

1. if student has completed a given task within specified time then give
him next task. else jess rules will decide a suitable feedback message for
the student (e.g., hurry up!).

2. a student while solving a multiple choice question (maintained as a
question fact) can attempt more than once till answers correctly. Here
number of attempts will be passes from a JSP page to a servlet page. The
servlet will modify the attempt_count SLOT in jess fact and the engine will
run and decide next suitable action.

a question fact initially is:

(deffacts question_objects
(question (object-name "eaxmple1.html") (type question) (lo-id 10302)
(reqd-time 25) (prev-lo-id 10301) (next-lo-id 10303) (diff-level medium)
(attempt-count (default 0)))

(theory (object-name "theory1.html") (type theory) (lo-id 103) (reqd-time
45) (prev-lo-id 102) (next-lo-id 104) (diff-level easy) (status incomplete))
)

Now, dynamically, i want to update the first fact's attempt-count slot
value.

But I have no clue how to get hold of that particular fact to call modify()
from Java?

Please let me know if I should be more detailed.

Thanking you,
-- 
*Rejaul Karim Barbhuiya*
Senior Research Fellow

Department of Computer Science
Jamia Millia Islamia
New Delhi, India
Phone: +91-9891430568

--001a11339f38fcdfd004dfe81ae4
Content-Type: text/html;
 charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Kindly bear with me as I explain my query...<div><br></div=
><div>I am developing an Intelligent Tutoring System using Jess + Servlet +=
 Jsp.</div><div>It will perform following actions (implemented as rules):</=
div>

<div><br></div><div>1. if student has completed a given task within specifi=
ed time then give him next task. else jess rules will decide a suitable fee=
dback message for the student (e.g., hurry up!).<br></div><div><br></div>
<div>2. a student while solving a multiple choice question (maintained as a=
 question fact) can attempt more than once till answers correctly. Here num=
ber of attempts will be passes from a JSP page to a servlet page. The servl=
et will modify the attempt_count SLOT in jess fact and the engine will run =
and decide next suitable action.</div>
<div><br></div><div>a question fact initially is:</div><div><br></div><div>=
(deffacts question_objects<br></div><div><div>(question (object-name &quot;=
eaxmple1.html&quot;) (type question) (lo-id 10302) (reqd-time 25) (prev-lo-=
id 10301) (next-lo-id 10303) (diff-level medium) (attempt-count (default 0)=
))</div>
<div><br></div><div>(theory (object-name &quot;theory1.html&quot;) (type th=
eory) (lo-id 103) (reqd-time 45) (prev-lo-id 102) (next-lo-id 104) (diff-le=
vel easy) (status incomplete))<br></div><div>)</div><div><br></div><div sty=
le>
Now, dynamically, i want to update the first fact&#39;s attempt-count slot =
value.=A0</div><div style><br></div><div style>But I have no clue how to ge=
t hold of that particular fact to call modify() from Java?</div><div><br>
</div><div style>Please let me know if I should be more detailed.</div><div=
><br></div><div style>Thanking you,</div>-- <br><b style=3D"color:rgb(204,1=
02,204)"><span style=3D"font-family:georgia,serif">Rejaul Karim Barbhuiya</=
span></b><br style=3D"color:rgb(204,51,204)">

<font style=3D"color:rgb(0,153,0)" size=3D"1"><span style=3D"font-family:ge=
orgia,serif">Senior Research Fellow</span><br style=3D"font-family:georgia,=
serif"><span style=3D"font-family:georgia,serif;color:rgb(153,0,0)"><br>Dep=
artment of Computer Science</span><br style=3D"font-family:georgia,serif;co=
lor:rgb(153,0,0)">

<span style=3D"font-family:georgia,serif;color:rgb(153,0,0)">Jamia Millia I=
slamia</span><br style=3D"font-family:georgia,serif;color:rgb(153,0,0)"><sp=
an style=3D"font-family:georgia,serif;color:rgb(153,0,0)">New Delhi, India<=
/span><br style=3D"font-family:georgia,serif;color:rgb(153,0,0)">

<span style=3D"font-family:georgia,serif;color:rgb(153,0,0)">Phone: +91-989=
1430568</span></font><br>
</div></div>

--001a11339f38fcdfd004dfe81ae4--