Kris,

 

Thanks.  I found the Pseudo-clock and have begun designing around using it to control the simulation. 

However, I’m also trying to keep my simulation synchronized in time with other components. 

 

Is there a way to call into the drools framework to determine what timers exist and what time they are scheduled to fire?

 

Thanks,

 

Jon

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Kris Verlaenen
Sent: Friday, August 06, 2010 9:48 AM
To: Rules Users List
Subject: Re: [rules-users] Drools 5 for process simulation

 

Jonathan,

 

Drools supports a simulated clock (unified for rules and processes), so this should allow you to build a simulator.  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.  You could try to reuse this as is if it would be useful in your case, or simply try to do something similar.  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).

 

Kris

 

----- Original Message -----

From: Labin, Jonathan W.

To: Rules Users List

Sent: Wednesday, August 04, 2010 7:22 PM

Subject: Re: [rules-users] Drools 5 for process simulation

 

Mark,

 

Thanks for the link.  I’ll look into it.  I’m not sure I’ll have time to learn enough about Drools to actually modify it for this project. 

Do you think it’s not practical to attempt to build a simulator without modifying Drools?

 

Thanks,

 

Jonathan

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Mark Proctor
Sent: Wednesday, August 04, 2010 11:33 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Drools 5 for process simulation

 

On 04/08/2010 16:20, Labin, Jonathan W. wrote:

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

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 :)
http://blog.athico.com/2009/07/drools-simulation-and-test-framework.html

Mark

 
Thanks in advance,
 
Jonathan Labin
 
 
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information.