|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.walluck.oscar.script.ScriptInterpreter
Handles python scripts.
| Constructor Summary | |
ScriptInterpreter(AIMSession sess,
AIMConnection conn,
Oscar oscar)
Creates a new script interpreter. |
|
| Method Summary | |
void |
addScript(Script script)
Add a script. |
void |
addTimeoutHandler(Script script,
int time,
boolean forever,
java.lang.String code)
Add a timeout handler for a script. |
void |
executeScriptFile(java.lang.String filename)
Executes a script file. |
java.util.ArrayList |
getScripts()
Return the value of scripts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScriptInterpreter(AIMSession sess,
AIMConnection conn,
Oscar oscar)
sess - the oscar sessionconn - the bos connection for this sessionoscar - the oscar interface for this client| Method Detail |
public void executeScriptFile(java.lang.String filename)
filename - the script file
public void addTimeoutHandler(Script script,
int time,
boolean forever,
java.lang.String code)
script - the scripttime - the time in millisecondsforever - whether or not to repeat forevercode - the code to execute when the timeout occurspublic void addScript(Script script)
script - the script to addpublic java.util.ArrayList getScripts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||