| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
jess.JessEvent
JessEvents are used by JessEvent sources (like the Rete class) to convey information about interesting things that happen to registered event listeners.
 (C) 2006 Sandia National Laboratories
JessListener, 
Rete.addJessListener(jess.JessListener), 
Rete.removeJessListener(jess.JessListener), 
Serialized Form| Field Summary | |
| static int | ACTIVATIONA defrule has been activated or deactivated | 
| static int | CLEARA (clear) has been executed | 
| static int | DEFCLASSA defclass has been added or removed | 
| static int | DEFFACTSA deffacts has been added or removqed | 
| static int | DEFGLOBALA defglobal has been added or removed | 
| static int | DEFINSTANCEA definstance has been added or removed | 
| static int | DEFRULEA defrule has been added or removed | 
| static int | DEFRULE_FIREDA defrule has been fired | 
| static int | DEFTEMPLATEA deftemplate has been added or removed | 
| static int | FACTA fact has been asserted or retracted | 
| static int | FOCUSThe module focus has changed | 
| static int | HALTA (run) has been executed | 
| static int | MODIFIEDAdded to other event-related flags to indicate modified fact | 
| static int | REMOVEDAdded to other event-related flags to indicate removal of construct | 
| static int | RESETA (reset) has been executed | 
| static int | RETE_TOKENDeprecated. Use RETE_TOKEN_LEFTinstead | 
| static int | RETE_TOKEN_LEFTA Rete node has been reached by a token, calltype left | 
| static int | RETE_TOKEN_RIGHTA Rete node has been reached by a token, calltype right | 
| static int | RUNA (run) has been executed | 
| static int | USERFUNCTIONA userfunction has been added or removed | 
| static int | USERFUNCTION_CALLEDA userfunction has been called | 
| static int | USERFUNCTION_RETURNEDA userfunction has returned from a call | 
| static int | USERPACKAGEA userpackage has been added or removed | 
| Fields inherited from class java.util.EventObject | 
| source | 
| Constructor Summary | |
| JessEvent(java.lang.Object theSource,
          int type,
          java.lang.Object obj)Construct a JessEvent containing the given information. | |
| JessEvent(java.lang.Object theSource,
          int type,
          java.lang.Object obj,
          Context context)Construct a JessEvent containing the given information. | |
| Method Summary | |
|  Context | getContext()Gets the execution context associated with the event. | 
| static java.lang.String | getEventName(int type)Displays a name for the numeric type of a JessEvent | 
|  java.lang.Object | getObject()Gets any optional data associated with this event. | 
|  int | getTag()Gets the tag of this event. | 
|  int | getType()Gets the type of this event. | 
|  java.lang.String | toString()Return a string suitable for debugging. | 
| Methods inherited from class java.util.EventObject | 
| getSource | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final int DEFRULE
public static final int DEFRULE_FIRED
public static final int ACTIVATION
public static final int DEFFACTS
public static final int FACT
public static final int DEFINSTANCE
public static final int DEFTEMPLATE
public static final int DEFCLASS
public static final int DEFGLOBAL
public static final int USERFUNCTION
public static final int USERPACKAGE
public static final int CLEAR
public static final int RESET
public static final int RUN
public static final int HALT
public static final int RETE_TOKEN
RETE_TOKEN_LEFT instead
public static final int RETE_TOKEN_LEFT
public static final int RETE_TOKEN_RIGHT
public static final int USERFUNCTION_CALLED
public static final int FOCUS
public static final int USERFUNCTION_RETURNED
public static final int MODIFIED
public static final int REMOVED
| Constructor Detail | 
public JessEvent(java.lang.Object theSource,
                 int type,
                 java.lang.Object obj)
theSource - the object (usually an instance of Rete) generating the event.type - one of the manifest constants in this class.obj - data relevant to the specific type of this event.
public JessEvent(java.lang.Object theSource,
                 int type,
                 java.lang.Object obj,
                 Context context)
theSource - the object (usually an instance of Rete) generating the event.type - one of the manifest constants in this class.obj - data relevant to the specific type of this event.context - current execution context of event| Method Detail | 
public int getType()
public int getTag()
public java.lang.Object getObject()
DEFRULE_FIRED events it is a Defrule.
     
getType()public Context getContext()
getType()public java.lang.String toString()
public static java.lang.String getEventName(int type)
| 
 | © 2007 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||