|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Batch
This class implements the "batch" command, and several static methods are available that you can call to load Jess code.
(C) 2005 Sandia National Laboratories
Rete.batch(java.lang.String),
Serialized Form| Constructor Summary | |
Batch()
|
|
| Method Summary | |
static Value |
batch(java.lang.String filename,
Rete engine)
Execute a file of Jess code, either in the Jess rule language or in JessML. |
static Value |
batch(java.lang.String filename,
Rete engine,
Context context)
Execute a file of Jess code, either in the Jess rule language or in JessML. |
static Value |
batch(java.lang.String filename,
Rete engine,
Context context,
ErrorHandler handler)
Execute a file of Jess code, either in the Jess rule language or in JessML. |
Value |
call(ValueVector vv,
Context context)
The implementation of the Jess language "batch" command, which just calls batch(java.lang.String, jess.Rete). |
static java.io.PushbackReader |
findDocument(Rete engine,
java.lang.String filename)
|
java.lang.String |
getName()
Return the name of this function. |
static boolean |
isXMLDocument(java.io.PushbackReader fis)
Returns true if the first character of the file is a "<". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Batch()
| Method Detail |
public java.lang.String getName()
Userfunction
getName in interface Userfunction
public static Value batch(java.lang.String filename,
Rete engine)
throws JessException
filename - the name of a file, or a relative or absolute pathengine - the Rete object to load with the constructs from the file
JessException - if anything goes wrong
public static Value batch(java.lang.String filename,
Rete engine,
Context context)
throws JessException
filename - the name of a file, or a relative or absolute pathengine - the Rete object to load with the constructs from the filecontext - the execution context to use
JessException - if anything goes wrong
public static Value batch(java.lang.String filename,
Rete engine,
Context context,
ErrorHandler handler)
throws JessException
filename - the name of a file, or a relative or absolute pathengine - the Rete object to load with the constructs from the filecontext - the execution context to usehandler - notified in case of exceptions
JessException - if anything goes wrong
public static java.io.PushbackReader findDocument(Rete engine,
java.lang.String filename)
throws JessException,
java.io.IOException
JessException
java.io.IOException
public static boolean isXMLDocument(java.io.PushbackReader fis)
throws java.io.IOException
fis - the open file
java.io.IOException - if anything goes wrong
public Value call(ValueVector vv,
Context context)
throws JessException
batch(java.lang.String, jess.Rete).
call in interface Userfunctionvv - the function callcontext - the execution context
JessException - if anything goes wrongValue.resolveValue(jess.Context)
|
© 2006 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||