All the event descriptors are powers of 2, which means they have a single bit set in an integer. This means multiple ones can be combined in a single value. MODIFIED and REMOVED are the only two that are used this way -- the JavaDoc for them says something like "Added to other event-related flags to indicate modified fact" or "Added to other event-related flags to indicate removal of construct" . So you'll see the values DEFRULE + REMOVED, DEFFACTS + REMOVED, FACT + REMOVED, etc. MODIFIED is only used with FACT.
MODIFIED is 1 << 30, or 1073741824. The value you see is 1073741824 + 16; 16 is JessEvent.FACT. So your value is FACT + MODIFIED -- a Fact has been modified. I think Joshua Undesser wrote: > I have a question about event types. I am implementing the > JessEvent.eventHappened() method and am noticing an unidentified event > type. The type I am getting is 1073741840. I looked it up in the jess > constants API but there is no listing for that type of event. It closly > matches a MODIFIED event, but doesn't exactly. Could someone shed a > light on what this type actually is and I guess more importantly why it > isn't in the API and are there more that aren't in the API? Thanks! > --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
