@Deprecated public abstract class FileScriptLogic extends StreamScriptLogic
FileScriptedAgent.getScriptFile()
to specify the script that will be loaded.
To subclass this class, override getScriptFile(), doLogic() and
other necessary methods. Use callFunction method to call scripted function
from specified script.
engine, invocableEngine, scriptEngineManagerlogicModulebot, log, USER_LOG_CATEGORY_ID| Constructor and Description |
|---|
FileScriptLogic()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected ScriptEngine |
createScriptEngine(ScriptEngineManager manager)
Deprecated.
Create a
ScriptEngine according to extension of script specified in
getScriptFile() |
protected String |
getExt(String path)
Deprecated.
Get extension of
|
protected abstract String |
getScriptFile()
Deprecated.
Return path to the script file.
|
protected Reader |
getScriptStream()
Deprecated.
Get stream of file from script file specified in
FileScriptedAgent.getScriptFile(). |
callFunction, engineBinded, evalStream, getBot, initializeController, scriptBinded, setAttributebeforeFirstLogic, getLogicInitializeTime, getLogicShutdownTime, initializeLogic, logic, logicInitialize, logicShutdownbotFirstSpawn, botInitialized, botKilled, botShutdown, finishControllerInitialization, getAct, getInitializeCommand, getLog, getPassword, getWorldView, prepareBotclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbotFirstSpawn, botInitialized, botKilled, botShutdown, finishControllerInitialization, getAct, getInitializeCommand, getLog, getPassword, getWorldView, prepareBotprotected ScriptEngine createScriptEngine(ScriptEngineManager manager)
ScriptEngine according to extension of script specified in
getScriptFile()createScriptEngine in class StreamScriptLogicmanager - protected Reader getScriptStream() throws IOException
FileScriptedAgent.getScriptFile().getScriptStream in class StreamScriptLogicIOException - If some problem occurs with getting stream from script file.protected abstract String getScriptFile()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.