I'm reading Jess' manual to get an idea about how it works and whether 
it would be of interest in an agent-based simulation we are developing.

We are writing a prototype in Java, the idea is that Jess would be used 
to implement part of the behavior of agents somehow. Everything is new 
for me and don't see clearly if one can program this way:

    Market music = new Market();
    // code that fills market with products, participants, etc.

    Consumer consumer = new Consumer();
    consumer.setIncome(1500);

Now fire a Jess rule on those instances like this
  
    if consumer's income is > 1200 then invoke
    invoke consumer.buyInMarket(music)

which eventually would change consumer's state after that, and retrieve 
the value returned by that method, which would be in this hypothetical 
example a java.util.Set of objects of type Product.

If that's possible, are there any restrictions on the kind of objects 
that can be shared between Java and Jess, methods to invoke, or return 
types?

Thank you!

-- fxn

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to