Objects are asserted into the WorkingMemory, which allows the rule-engine to 
be aware of its existence, and a fact handle is returned as a reference. Once 
asserted, the fact may be used to satisfy some portion of any rule's activation 
condition.

from more info ,pls visit:

http://www.drools.org/Working+Memory#WorkingMemory-assertObject

-----邮件原件-----
发件人: Marcelo Tallis [mailto:[EMAIL PROTECTED] 
发送时间: 2006年2月23日 12:08
收件人: [email protected]
主题: [drools-user] WorkingMemory implementation question

We were using prolog to implement the inference support for our applications. 
Now we are looking at switching to drools because we cannot bare the overhead 
of translating between java and prolog the representation of every data element 
that we pass to prolog. For example, integer numbers in java are represented 
differently than in prolog and their representation needed to be translated 
back and forth across the java / prolog interface.
 
Drools seems to handle java objects in its primitive representation (good!).
However, we don't know how objects are represented in WorkingMemory. 
 
Question:
-------------
 
Is the WorkingMemory keeping its own parallel COPY of the asserted objects or 
it is only keeping REFERENCES to the actual objects? If the WM is copying (or 
creating its own representation) of the asserted objects then the drools 
alternative might not be as attractive as we thought.
 
Thanks,
 
Marcelo
 
 


********************************************************************************************************************************
The information in this email is confidential and may be legally privileged. If 
you have received this email in error or are
not the intended recipient, please immediately notify the sender and delete 
this message from your computer. Any use, distribution,
or copying of this email other than by the intended recipient is strictly 
prohibited. All messages sent to and from us may be 
monitored to ensure compliance with internal policies and to protect our 
business. 
Emails are not secure and cannot be guaranteed to be error free as they can be 
intercepted, amended, lost or destroyed, 
or contain viruses. Anyone who communicates with us by email is taken to accept 
these risks. 

收发邮件者请注意:
本邮件含保密信息,若误收本邮件,请务必通知发送人并直接删去,不得使用、传播或复制本邮件。
进出邮件均受到本公司合规监控。邮件可能发生被截留、被修改、丢失、被破坏或包含计算机病毒等不安全情况。 
********************************************************************************************************************************

Reply via email to