org.globus.cog.karajan.workflow.nodes
Class AbstractSequentialWithArguments

java.lang.Object
  extended by org.globus.cog.karajan.workflow.nodes.FlowNode
      extended by org.globus.cog.karajan.workflow.nodes.FlowContainer
          extended by org.globus.cog.karajan.workflow.nodes.Sequential
              extended by org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
All Implemented Interfaces:
LoadListener, EventListener, ExtendedFlowElement, FlowElement
Direct Known Subclasses:
BDP, ChannelClose, ChannelFork, Each, ExecuteFile, Include, Info, PartialArgumentsContainer, SequentialWithArguments, UDEWrapper, UserDefinedElement, Vargs

public abstract class AbstractSequentialWithArguments
extends Sequential


Nested Class Summary
 
Nested classes/interfaces inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
FlowNode.FNTP
 
Field Summary
static String QUOTED
           
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
A_INLINE_TEXT, debug, startCount, STDERR, STDOUT, threadTracker
 
Fields inherited from interface org.globus.cog.karajan.workflow.nodes.FlowElement
ANNOTATION, CALLER, FILENAME, LINE, TEXT, UID
 
Constructor Summary
AbstractSequentialWithArguments()
           
 
Method Summary
protected static void addChannel(Object owner, Arg.Channel channel)
           
protected  void argumentsEvaluated(VariableStack stack)
           
protected  void checkArguments()
           
protected  void childCompleted(VariableStack stack)
           
protected  Object getArgument(Arg arg, VariableStack stack)
           
protected  int getArgumentCount()
           
protected  int getArgumentIndex(String name)
           
protected  Set getArgumentNames()
           
protected  Object[] getArguments(Arg[] args, VariableStack stack)
           
protected  List getChannels()
           
protected  int getMaxArgIndex()
           
protected  List getNonpropargs()
           
protected  Set getOptionalArgs()
           
 boolean getQuotedArgs()
           
protected  String[] getSortedArgs()
           
protected  boolean hasChannels()
           
protected  boolean hasNestedArguments()
           
protected  boolean hasVariableArguments()
           
protected  void initializeArgs(VariableStack stack)
           
protected  void initializeStatic()
           
protected  VariableArguments newNameBindingVariableArguments(NamedArguments nargs, List nonpropargs2, boolean hasVargs)
           
protected  VariableArguments newVariableArguments()
           
 void pre(VariableStack stack)
           
protected  void processArguments(VariableStack stack)
           
protected static void setArguments(Object owner, Arg[] arga)
           
protected  void setHasVargs(boolean hasVargs)
           
protected  void setNestedArgs(boolean nestedArgs)
           
protected  void setNonpropargs(List nonpropargs)
           
 void setQuotedArgs(boolean quotedArgs)
           
protected static void setVargs(Object owner, boolean value)
           
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.Sequential
executeChildren, executeSingle, exit, getIndex, moreToExecute, notificationEvent, preDecIndex, preIncIndex, setIndex, startElement, startNext
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowContainer
execute, getChildFailed, isOptimizable, post, setChildFailed, setOptimize
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
_finally, abort, abortEvent, acceptsInlineText, addElement, addStaticArgument, checkClass, checkCompleted, checkFailed, complete, controlEvent, copy, echo, echo, elementCount, elements, event, executeErrorHandler, executeSimple, fail, fail, failIfNotDefined, failIfNull, failIfNull, failImmediately, failImmediately, failImmediately, failImmediately, fireControlEvent, fireMonitoringEvent, fireNotificationEvent, fireStatusMonitoringEvent, get_locator, getBooleanProperty, getBooleanProperty, getCanonicalType, getElement, getElementType, getIntProperty, getIntProperty, getParent, getProperty, getStaticArguments, getStringProperty, getTextualName, getTreeProperty, getUID, hasFrame, hasProperty, isCheckpointable, isSimple, isSystemProperty, loadComplete, loadStarted, monitoringEvent, propertyNames, removeElement, removeElement, removeProperty, replaceElement, restart, restartElement, ret, set_locator, setAcceptsInlineText, setCheckpointable, setElements, setElementType, setFrame, setParent, setProperties, setProperty, setProperty, setProperty, setStaticArguments, start, startElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUOTED

public static final String QUOTED
See Also:
Constant Field Values
Constructor Detail

AbstractSequentialWithArguments

public AbstractSequentialWithArguments()
Method Detail

initializeStatic

protected void initializeStatic()
Overrides:
initializeStatic in class FlowContainer

getArgument

protected final Object getArgument(Arg arg,
                                   VariableStack stack)
                            throws ExecutionException
Throws:
ExecutionException

getArguments

protected final Object[] getArguments(Arg[] args,
                                      VariableStack stack)
                               throws ExecutionException
Throws:
ExecutionException

getQuotedArgs

public boolean getQuotedArgs()

setQuotedArgs

public void setQuotedArgs(boolean quotedArgs)

argumentsEvaluated

protected void argumentsEvaluated(VariableStack stack)
                           throws ExecutionException
Throws:
ExecutionException

pre

public void pre(VariableStack stack)
         throws ExecutionException
Overrides:
pre in class FlowContainer
Throws:
ExecutionException

initializeArgs

protected void initializeArgs(VariableStack stack)
                       throws ExecutionException
Throws:
ExecutionException

newVariableArguments

protected VariableArguments newVariableArguments()

newNameBindingVariableArguments

protected VariableArguments newNameBindingVariableArguments(NamedArguments nargs,
                                                            List nonpropargs2,
                                                            boolean hasVargs)

childCompleted

protected void childCompleted(VariableStack stack)
                       throws ExecutionException
Overrides:
childCompleted in class Sequential
Throws:
ExecutionException

processArguments

protected void processArguments(VariableStack stack)
                         throws ExecutionException
Throws:
ExecutionException

setVargs

protected static void setVargs(Object owner,
                               boolean value)

addChannel

protected static void addChannel(Object owner,
                                 Arg.Channel channel)

hasVariableArguments

protected boolean hasVariableArguments()

hasChannels

protected boolean hasChannels()

hasNestedArguments

protected boolean hasNestedArguments()

setArguments

protected static final void setArguments(Object owner,
                                         Arg[] arga)

getSortedArgs

protected String[] getSortedArgs()

getOptionalArgs

protected Set getOptionalArgs()

getMaxArgIndex

protected int getMaxArgIndex()

getArgumentIndex

protected int getArgumentIndex(String name)

getArgumentNames

protected Set getArgumentNames()

getChannels

protected List getChannels()

getArgumentCount

protected int getArgumentCount()

checkArguments

protected void checkArguments()

setHasVargs

protected void setHasVargs(boolean hasVargs)

setNestedArgs

protected void setNestedArgs(boolean nestedArgs)

getNonpropargs

protected List getNonpropargs()

setNonpropargs

protected void setNonpropargs(List nonpropargs)