|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 FormField Summary | |
static int |
ACTIVATION
A defrule has been activated or deactivated |
static int |
CLEAR
A (clear) has been executed |
static int |
DEFCLASS
A defclass has been added or removed |
static int |
DEFFACTS
A deffacts has been added or removqed |
static int |
DEFGLOBAL
A defglobal has been added or removed |
static int |
DEFINSTANCE
A definstance has been added or removed |
static int |
DEFRULE
A defrule has been added or removed |
static int |
DEFRULE_FIRED
A defrule has been fired |
static int |
DEFTEMPLATE
A deftemplate has been added or removed |
static int |
FACT
A fact has been asserted or retracted |
static int |
FOCUS
The module focus has changed |
static int |
HALT
A (run) has been executed |
static int |
MODIFIED
Added to other event-related flags to indicate modified fact |
static int |
REMOVED
Added to other event-related flags to indicate removal of construct |
static int |
RESET
A (reset) has been executed |
static int |
RETE_TOKEN
Deprecated. Use RETE_TOKEN_LEFT instead |
static int |
RETE_TOKEN_LEFT
A Rete node has been reached by a token, calltype left |
static int |
RETE_TOKEN_RIGHT
A Rete node has been reached by a token, calltype right |
static int |
RUN
A (run) has been executed |
static int |
USERFUNCTION
A userfunction has been added or removed |
static int |
USERFUNCTION_CALLED
A userfunction has been called |
static int |
USERFUNCTION_RETURNED
A userfunction has returned from a call |
static int |
USERPACKAGE
A 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 eventMethod 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 |