adams.flow.source
Class RSource

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.core.AbstractActor
              extended by adams.flow.source.AbstractSource
                  extended by adams.flow.source.RSource
All Implemented Interfaces:
AdditionalInformationHandler, CleanUpHandler, Debuggable, DebugOutputHandler, Destroyable, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<AbstractActor>, SizeOfHandler, Stoppable, VariableChangeListener, ErrorHandler, OutputProducer, Serializable, Comparable

public class RSource
extends AbstractSource

See Also:
Serialized Form

Nested Class Summary
static class RSource.DataType
           
 
Field Summary
protected  Object m_returnedObject
          Object returned from r
protected  RSource.DataType m_returnType
          Data type of object returned from r script
protected  String m_rScript
          Script to pass to r
 
Fields inherited from class adams.flow.core.AbstractActor
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
RSource()
           
 
Method Summary
 void defineOptions()
           
protected  String doExecute()
           
 Class[] generates()
           
 RSource.DataType getReturnType()
           
 String getRScript()
           
 String globalInfo()
           
 boolean hasPendingOutput()
           
 Token output()
           
 String returnTypeTipText()
           
 String rScriptTipText()
           
 void setReturnType(RSource.DataType val)
           
 void setRScript(String val)
           
 
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, getQuickInfo, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, initialize, isBackedUp, isExecuted, isFinished, isHeadless, isStopped, nameTipText, performSetUpChecks, postExecute, preExecute, pruneBackup, pruneBackup, reset, restoreState, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setUp, setVariables, shallowCopy, shallowCopy, sizeOf, skipTipText, stopExecution, stopExecution, stopFlowOnErrorTipText, updateDetectedVariables, updatePrefix, updateVariables, variableChanged, wrapUp
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_rScript

protected String m_rScript
Script to pass to r


m_returnType

protected RSource.DataType m_returnType
Data type of object returned from r script


m_returnedObject

protected Object m_returnedObject
Object returned from r

Constructor Detail

RSource

public RSource()
Method Detail

defineOptions

public void defineOptions()
Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractActor

setReturnType

public void setReturnType(RSource.DataType val)

getReturnType

public RSource.DataType getReturnType()

returnTypeTipText

public String returnTypeTipText()

setRScript

public void setRScript(String val)

getRScript

public String getRScript()

rScriptTipText

public String rScriptTipText()

generates

public Class[] generates()

output

public Token output()

hasPendingOutput

public boolean hasPendingOutput()

doExecute

protected String doExecute()
Specified by:
doExecute in class AbstractActor

globalInfo

public String globalInfo()
Specified by:
globalInfo in class AbstractOptionHandler


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.