<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"3D\0022Helvetica\0022";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Kris,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks.&nbsp; I found the Pseudo-clock and have begun designing
around using it to control the simulation.&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>However, I&#8217;m also trying to keep my simulation synchronized
in time with other components.&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Is there a way to call into the drools framework to determine
what timers exist and what time they are scheduled to fire?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jon<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Kris Verlaenen<br>
<b>Sent:</b> Friday, August 06, 2010 9:48 AM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Drools 5 for process simulation<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Jonathan,</span><span style='color:windowtext'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='color:windowtext'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Drools supports a simulated clock (unified for rules and
processes), so this should allow you to build a simulator.&nbsp; The code that
Mark is referring to is just something built on top that allows you to define a
simulation as a sequence of commands that are sent to the session at specific
time points etc.&nbsp; You could try to reuse this as is if it would be useful
in your case, or simply try to do something similar.&nbsp; In any case, there
shouldn't be any technical difficulties that should prevent you from doing
something like you described I think (just not all out-of-the-box).</span><span
style='color:windowtext'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='color:windowtext'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Kris</span><span style='color:windowtext'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='color:windowtext'>&nbsp;<o:p></o:p></span></p>

</div>

<blockquote style='border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>----- Original Message ----- <o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='background:#E4E4E4'><b><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:windowtext'>From:</span></b><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:windowtext'> <a
href="mailto:Jonathan.Labin@jhuapl.edu" title="Jonathan.Labin@jhuapl.edu">Labin,
Jonathan W.</a> <o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>To:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'> <a href="mailto:rules-users@lists.jboss.org"
title="rules-users@lists.jboss.org">Rules Users List</a> <o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Sent:</span></b><span style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:windowtext'> Wednesday, August 04, 2010 7:22 PM<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:windowtext'>Subject:</span></b><span style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:windowtext'> Re: [rules-users] Drools 5 for process
simulation<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mark,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for the link.&nbsp; I&#8217;ll look into it.&nbsp; I&#8217;m
not sure I&#8217;ll have time to learn enough about Drools to actually modify
it for this project.&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Do you think it&#8217;s not practical to attempt to build a
simulator without modifying Drools?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jonathan<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> <a
href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Mark Proctor<br>
<b>Sent:</b> Wednesday, August 04, 2010 11:33 AM<br>
<b>To:</b> rules-users@lists.jboss.org<br>
<b>Subject:</b> Re: [rules-users] Drools 5 for process simulation<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>On 04/08/2010 16:20, Labin, Jonathan W. wrote: <o:p></o:p></p>

<pre>Drools users,<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I am currently researching Drools 5 as a potential toolkit to enable my next<o:p></o:p></pre><pre>project.&nbsp; I have read through the Documentation for Drools Expert, Flow and<o:p></o:p></pre><pre>skimmed through Fusion and I believe that Drools looks it provides many<o:p></o:p></pre><pre>features we need.&nbsp; However, I am concerned about one aspect of the way that<o:p></o:p></pre><pre>the system seems to operate and was wondering if anyone could point me to a<o:p></o:p></pre><pre>section of documentation (chapter of the manual / wiki / external how-to<o:p></o:p></pre><pre>blog post... whatever) that will clear things up for me.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I would like to use Drools Flow to define behaviors of agents as Flow<o:p></o:p></pre><pre>Processes to create an agent-based simulation.&nbsp; This application requires<o:p></o:p></pre><pre>that the processes are kept synchronized with each other by a simulated<o:p></o:p></pre><pre>(faster than real time) clock.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Is there a Drools mechanism that enables this?&nbsp; Would I need to create a set<o:p></o:p></pre><pre>of WorkItemHandler classes that perform the synchronization manually?&nbsp; Is<o:p></o:p></pre><pre>what I want to do not really practical within the Drools Flow framework?<o:p></o:p></pre>

<p class=MsoNormal style='margin-bottom:12.0pt'>I have something prototyped and
it works, but I need to refactor the api and make it much simpler. so if you
use it, expect it to change a lot and get a lot simpler and better :)<br>
<a
href="http://blog.athico.com/2009/07/drools-simulation-and-test-framework.html">http://blog.athico.com/2009/07/drools-simulation-and-test-framework.html</a><br>
<br>
Mark<o:p></o:p></p>

<pre><o:p>&nbsp;</o:p></pre><pre>Thanks in advance,<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Jonathan Labin<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>rules-users mailing list<o:p></o:p></pre><pre><a
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><o:p></o:p></pre><pre><a
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></pre>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='color:windowtext'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='color:windowtext'>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
https://lists.jboss.org/mailman/listinfo/rules-users<o:p></o:p></span></p>

</blockquote>

<p class=MsoNormal><span style='color:windowtext'><br>
</span><span style='font-family:"3D"Helvetica"","serif";color:windowtext'>Disclaimer:
<a href="http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</a>
for more information.</span><span style='color:windowtext'> <o:p></o:p></span></p>

</div>

</body>

</html>