|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.template.AbstractActorTemplate
adams.flow.template.AbstractScriptTemplate
adams.flow.template.Jython
public class Jython
Uses a Jython script to generate a sub-flow.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The new name for the actor; leave empty to use current. default:
-script <adams.core.io.PlaceholderFile> (property: scriptFile)
The script file to load and execute.
default: ${CWD}
-options <java.lang.String> (property: scriptOptions)
The options for the Jython script; must consist of 'key=value' pairs separated
by blanks; the value of 'key' can be accessed via the 'getAdditionalOptions
().getXYZ("key")' method in the Jython actor.
default:
-inline-script <adams.core.scripting.JythonScript> (property: inlineScript) The inline script, if not using an external script file. default:
Jython,
Serialized Form| Field Summary | |
|---|---|
protected JythonScript |
m_InlineScript
the inline script. |
| Fields inherited from class adams.flow.template.AbstractScriptTemplate |
|---|
m_ScriptFile, m_ScriptObject, m_ScriptOptions |
| Fields inherited from class adams.flow.template.AbstractActorTemplate |
|---|
m_Name |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
Jython()
|
|
| Method Summary | |
|---|---|
protected String |
checkScriptObject()
Checks the script object. |
void |
defineOptions()
Adds options to the internal list of options. |
protected AbstractActor |
executeScript()
Executes the script to generate the actor. |
protected JythonScript |
getDefaultInlineScript()
Returns the default inline script. |
JythonScript |
getInlineScript()
Gets the inline script to use instead of the external script file. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
String |
inlineScriptTipText()
Returns the tip text for this property. |
protected String |
loadScriptObject()
Loads the scripts object and sets its options. |
String |
scriptOptionsTipText()
Returns the tip text for this property. |
void |
setInlineScript(JythonScript value)
Sets the inline script to use instead of the external script file. |
| Methods inherited from class adams.flow.template.AbstractScriptTemplate |
|---|
cleanUp, doGenerate, getScriptFile, getScriptOptions, initScriptObject, scriptFileTipText, setScriptFile, setScriptOptions |
| Methods inherited from class adams.flow.template.AbstractActorTemplate |
|---|
compareTo, equals, forCommandLine, forName, generate, getBaselineCorrections, getName, nameTipText, postGenerate, preGenerate, setName, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JythonScript m_InlineScript
| Constructor Detail |
|---|
public Jython()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractScriptTemplatepublic String getQuickInfo()
getQuickInfo in class AbstractScriptTemplatepublic String scriptOptionsTipText()
scriptOptionsTipText in class AbstractScriptTemplateprotected JythonScript getDefaultInlineScript()
public void setInlineScript(JythonScript value)
value - the inline scriptpublic JythonScript getInlineScript()
public String inlineScriptTipText()
protected String loadScriptObject()
loadScriptObject in class AbstractScriptTemplateprotected String checkScriptObject()
checkScriptObject in class AbstractScriptTemplateprotected AbstractActor executeScript()
executeScript in class AbstractScriptTemplate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||