I think Gang Liu wrote:
> Hi, all
> 
> I got several questions of integration of Java & Jess. I hope to get help 
> from your expertise. thanks!
> 
> I define serveral java beans. I also define several rules based on Jess 
> language. So, I want beans and rules work together to implement some logics. 
> At this point, I get serveral questions:
> 
> 1. I instantiate an instance of a java bean in java. I want to pass it to 
> rules. Once a rule is fired, it will call that instance's method. How to 
> implement this logic in rules and beans?
> 

I'm not really sure what you're asking, but look at the discussion of 
"store and fetch" in Jess 6 manual section 4.4.4 -- it might be what
you're looking for.


> 2. We can use call and set method in jess to initiate beans' method. Are 
> there differences?
> 

(set ?obj property 123) is just shorthand for 
(call ?obj setProperty 123). Use whichever one seems more readable to
you. 


> thanks
> 
> Gang
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
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