|
||||||||||
| 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.condition.test.AbstractCondition
adams.flow.condition.test.AbstractScriptCondition
adams.flow.condition.test.Jython
public class Jython
A condition that uses the condition defined in an external Jython script.
Valid options are:-D (property: debug) If set to true, scheme may output additional info to the console.
-script <adams.core.io.PlaceholderFile> (property: scriptFile) The script file to load and execute. default: .
-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 'getAdditionalOption (String)' in the Jython actor. default:
Jython,
Serialized Form| Field Summary | |
|---|---|
protected Hashtable<String,String> |
m_AdditionalOptions
for storing the additional options. |
protected adams.flow.condition.test.AbstractCondition |
m_ConditionObject
the loaded script object. |
protected JythonScript |
m_InlineScript
the inline script. |
| Fields inherited from class adams.flow.condition.test.AbstractScriptCondition |
|---|
m_ScriptFile, m_ScriptObject, m_ScriptOptions |
| Fields inherited from class adams.flow.condition.test.AbstractCondition |
|---|
m_Tested, m_TestResult |
| 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. |
String |
getAdditionalOption(String name,
String defValue)
Returns the value associated with the (additional) option. |
protected JythonScript |
getDefaultInlineScript()
Returns the default inline script. |
JythonScript |
getInlineScript()
Gets the inline script to use instead of the external script file. |
String |
globalInfo()
Returns a string describing the object. |
protected void |
initialize()
Initializes the members. |
String |
inlineScriptTipText()
Returns the tip text for this property. |
protected String |
loadScriptObject()
Loads the scripts object and sets its options. |
protected String |
performScriptTest()
Runs the script test. |
String |
scriptOptionsTipText()
Returns the tip text for this property. |
void |
setAdditionalOptions(Hashtable<String,String> options)
Sets the additional options. |
void |
setInlineScript(JythonScript value)
Sets the inline script to use instead of the external script file. |
| Methods inherited from class adams.flow.condition.test.AbstractScriptCondition |
|---|
getScriptFile, getScriptOptions, initScriptObject, performTest, reset, scriptFileTipText, setScriptFile, setScriptOptions |
| Methods inherited from class adams.flow.condition.test.AbstractCondition |
|---|
compareTo, equals, forCommandLine, forName, getConditions, getTestResult, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, 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 transient adams.flow.condition.test.AbstractCondition m_ConditionObject
protected JythonScript m_InlineScript
protected Hashtable<String,String> m_AdditionalOptions
| Constructor Detail |
|---|
public Jython()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerprotected void initialize()
initialize in class adams.flow.condition.test.AbstractConditionpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class adams.flow.condition.test.AbstractScriptConditionprotected JythonScript getDefaultInlineScript()
public void setInlineScript(JythonScript value)
value - the inline scriptpublic JythonScript getInlineScript()
public String inlineScriptTipText()
public String scriptOptionsTipText()
scriptOptionsTipText in class adams.flow.condition.test.AbstractScriptConditionprotected String loadScriptObject()
loadScriptObject in class adams.flow.condition.test.AbstractScriptConditionprotected String checkScriptObject()
checkScriptObject in class adams.flow.condition.test.AbstractScriptConditionprotected String performScriptTest()
performScriptTest in class adams.flow.condition.test.AbstractScriptConditionpublic void setAdditionalOptions(Hashtable<String,String> options)
options - the options (name <->value relation)
public String getAdditionalOption(String name,
String defValue)
name - the name of the additional option to retrievedefValue - the default value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||