public class UAScriptContext
extends org.scripthelper.context.DefaultScriptContext
| Constructor and Description |
|---|
UAScriptContext(org.da.protoframework.model.core.Module module,
java.net.URL scriptURL,
ScriptedFunctionalUA ua)
Create a new ScriptContext.
|
| Modifier and Type | Method and Description |
|---|---|
void |
echo(java.lang.String message)
Echo a message.
|
void |
end()
Called automatically by the Scripting framework at the end of the Script.
|
void |
error(java.lang.String message)
echo a warning (in red).
|
arinc661.client.api.StatefullAPI |
getAPI() |
UAScriptHelper |
getHelper()
Return the ScriptHelper, which provides several utility methods.
|
org.da.protoframework.model.core.Module |
getModule() |
java.net.URL |
getScriptURL()
Return the associated Script file.
|
void |
setAPI(arinc661.client.api.StatefullAPI api) |
void |
setLogger(org.da.protoframework.conf.FrameworkLogger logger)
Set the associated ScriptLogger.
|
__step__, abort, echo, getPath, getScriptLogger, getScriptSource, getScriptWrapper, setLogger, setScriptSource, setScriptWrapperpublic UAScriptContext(org.da.protoframework.model.core.Module module,
java.net.URL scriptURL,
ScriptedFunctionalUA ua)
module - the modulescriptURL - the script URLua - the UApublic void setAPI(arinc661.client.api.StatefullAPI api)
public arinc661.client.api.StatefullAPI getAPI()
public java.net.URL getScriptURL()
public void end()
public void setLogger(org.da.protoframework.conf.FrameworkLogger logger)
logger - the associated ScriptLoggerpublic UAScriptHelper getHelper()
public org.da.protoframework.model.core.Module getModule()
public void echo(java.lang.String message)
echo in interface org.scripthelper.context.ScriptContextecho in class org.scripthelper.context.DefaultScriptContextmessage - the message textpublic void error(java.lang.String message)
error in interface org.scripthelper.context.ScriptContexterror in class org.scripthelper.context.DefaultScriptContextmessage - the message textCopyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence