jess
Class Main
java.lang.Object
|
+--jess.Main
- public class Main
- extends java.lang.Object
- implements java.io.Serializable, JessListener
A command-line interface for Jess; also displayed in a window by the
Console classes.
(C) 1998 E.J. Friedman-Hill and the Sandia Corporation
- See Also:
- Serialized Form
Constructor Summary |
Main()
|
Method Summary |
void |
eventHappened(JessEvent je)
Called by a JessEvent source when something interesting happens. |
void |
execute(boolean doPrompt)
Repeatedly parse and excute commands, from location determined during initialize(). |
Main |
initialize(java.lang.String[] argv,
Rete r)
Set a Main object up for later execution. |
static void |
main(java.lang.String[] argv)
|
void |
showLogo()
Display the Jess startup banner on the Rete object's standard output, something like
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Main
public Main()
main
public static void main(java.lang.String[] argv)
showLogo
public void showLogo()
- Display the Jess startup banner on the Rete object's standard output, something like
Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
Jess Version 5.0a5 5/27/99
initialize
public Main initialize(java.lang.String[] argv,
Rete r)
- Set a Main object up for later execution.
- Parameters:
argv
- Command-line argumentsr
- An initialized Rete object, with routers set up
execute
public void execute(boolean doPrompt)
- Repeatedly parse and excute commands, from location determined during initialize().
- Parameters:
doPrompt
- True if a prompt should be printed, false otherwise.
Prompts will never be printed during a (batch) command.
eventHappened
public void eventHappened(JessEvent je)
throws JessException
- Description copied from interface: JessListener
- Called by a JessEvent source when something interesting happens.
The typical implementation of eventHappened will switch on the return value
of je.getType().
- Specified by:
- eventHappened in interface JessListener
- Parameters:
je
-