JESS: Listening to added facts
Hello, one can catch the asserted and retracted facts in the knoledgebase by setting the event mask to JessEvent.FACT. How about catching only asserted facts(not retracted) or is there anyway to discriminate between them? thanks, -- Levent Kent
Re: JESS: Listening to added facts
When an event comes, check the type. WHen a fact is asserted, you'll get the constant JessEvent.FACT; if it's being retracted, the type is JessEvent.FACT + JessEvent.REMOVED . On Oct 30, 2008, at 11:30 AM, levent kent wrote: Hello, one can catch the asserted and retracted facts in the knoledgebase by setting the event mask to JessEvent.FACT. How about catching only asserted facts(not retracted) or is there anyway to discriminate between them? thanks, -- Levent Kent - Ernest Friedman-Hill Informatics Decision Sciences, Sandia National Laboratories PO Box 969, MS 9012, Livermore, CA 94550 http://www.jessrules.com 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]
Re: JESS: Listening to added facts
Thanks a lot! On Thu, Oct 30, 2008 at 4:39 PM, Ernest Friedman-Hill [EMAIL PROTECTED]wrote: When an event comes, check the type. WHen a fact is asserted, you'll get the constant JessEvent.FACT; if it's being retracted, the type is JessEvent.FACT + JessEvent.REMOVED . On Oct 30, 2008, at 11:30 AM, levent kent wrote: Hello, one can catch the asserted and retracted facts in the knoledgebase by setting the event mask to JessEvent.FACT. How about catching only asserted facts(not retracted) or is there anyway to discriminate between them? thanks, -- Levent Kent - Ernest Friedman-Hill Informatics Decision Sciences, Sandia National Laboratories PO Box 969, MS 9012, Livermore, CA 94550 http://www.jessrules.com 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] -- Levent Kent