adams.flow.standalone
Class Jython
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.core.AbstractScriptActor
adams.flow.core.AbstractJythonActor
adams.flow.standalone.Jython
- All Implemented Interfaces:
- adams.core.AdditionalInformationHandler, adams.core.CleanUpHandler, adams.core.Debuggable, adams.core.DebugOutputHandler, adams.core.Destroyable, OptionHandler, adams.core.QuickInfoSupporter, adams.core.ShallowCopySupporter<AbstractActor>, adams.core.SizeOfHandler, adams.core.Stoppable, VariableChangeListener, Actor, ErrorHandler, Serializable, Comparable
public class Jython
- extends AbstractJythonActor
A standalone that executes a Jython script.
Valid options are:
-D (property: debug)
If set to true, scheme may output additional info to the console.
-name <java.lang.String> (property: name)
The name of the actor.
default: Jython
-annotation <adams.core.base.BaseText> (property: annotations)
The annotations to attach to this actor.
default:
-skip (property: skip)
If set to true, transformation is skipped and the input token is just forwarded
as it is.
-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:
- Version:
- $Revision: 4584 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Fields inherited from class adams.flow.core.AbstractActor |
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Methods inherited from class adams.flow.core.AbstractJythonActor |
checkScriptObject, defineOptions, getDefaultInlineScript, getInlineScript, getQuickInfo, inlineScriptTipText, loadScriptObject, scriptOptionsTipText, setInlineScript, setUp, wrapUp |
| Methods inherited from class adams.flow.core.AbstractActor |
annotationsTipText, backupState, canInspectOptions, canPerformSetUpCheck, cleanUp, compareTo, debug, destroy, equals, execute, findVariables, findVariables, findVariables, forceVariables, forCommandLine, forName, getAdditionalInformation, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowActors, getFullName, getName, getNextSibling, getParent, getPreviousSibling, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, handleException, hasErrorHandler, hasStopMessage, index, initialize, isBackedUp, isExecuted, isExecuting, isFinished, isHeadless, isStopped, nameTipText, performSetUpChecks, postExecute, preExecute, pruneBackup, pruneBackup, reset, restoreState, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setVariables, shallowCopy, shallowCopy, sizeOf, skipTipText, stopExecution, stopExecution, stopFlowOnErrorTipText, updateDetectedVariables, updatePrefix, updateVariables, variableChanged |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
getDebugging, getSystemErr, getSystemOut |
Jython
public Jython()
globalInfo
public String globalInfo()
- Returns a string describing the object.
- Specified by:
globalInfo in class AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
doExecute
protected String doExecute()
- Executes the flow item.
- Specified by:
doExecute in class AbstractActor
- Returns:
- null if everything is fine, otherwise error message
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.