|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcaas.EvalScript
public class EvalScript
EvalScript represents the behavior as defined by an evaluation script. It starts a new thread that monitors the BlackBoard and responds to changes.
Method Summary | |
---|---|
static EvalScript |
compile(java.io.File file)
Compiles the given pointer to a script file and returns an instance of this class which encapsulates the functionality of the given script. |
static EvalScript |
compile(java.io.InputStream input)
Compiles the given input stream and returns an instance of this class which encapsulates the functionality of the given script. |
EvaluationContext |
getEvaluationContext()
|
void |
init()
|
void |
run()
Runs this script in a new thread to monitor the BlackBoard. |
void |
stop()
Signals this class's running thread that it should stop execution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public EvaluationContext getEvaluationContext()
public static EvalScript compile(java.io.File file) throws java.lang.Exception
file
- a pointer to a script file.
java.lang.Exception
- thrown if there is a parsing error, lexical
error, or an I/O error (essentially for anything).public static EvalScript compile(java.io.InputStream input) throws java.lang.Exception
input
- the input stream to read
java.lang.Exception
- thrown if there is a parsing error, lexical
error, or an I/O error (essentially for anything).public void init()
public void run()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |