org.globus.cog.karajan.workflow.nodes.user
Class UDEWrapper

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
                  extended by org.globus.cog.karajan.workflow.nodes.user.UDEWrapper
All Implemented Interfaces:
LoadListener, EventListener, ExtendedFlowElement, FlowElement
Direct Known Subclasses:
Self

public class UDEWrapper
extends AbstractSequentialWithArguments
implements EventListener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
FlowNode.FNTP
 
Field Summary
static ControlEventType EXECUTE_DEF
           
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
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
UDEWrapper()
           
UDEWrapper(UDEDefinition def)
           
 
Method Summary
protected  boolean checkArgument(String name, UserDefinedElement def)
           
protected  void checkArguments()
           
 void executeChildren(VariableStack stack)
           
 void executeWrapper(VariableStack stack)
           
 Object getArgument(String name)
           
protected  Set getArgumentNames()
           
 UDEDefinition getDef(VariableStack stack)
           
protected  UDEDefinition getDefInternal(VariableStack stack)
           
protected  List getNonpropargs()
           
protected  String[] getSortedArgs()
           
 boolean hasArgument(String name)
           
protected  void initializeArgs(VariableStack stack)
           
 void pre(VariableStack stack)
           
 void setArgument(String name, Object value)
           
protected  void setHasVargs(boolean hasVargs)
           
protected  void setNestedArgs(boolean nestedArgs)
           
 String toString()
           
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
addChannel, argumentsEvaluated, childCompleted, getArgument, getArgumentCount, getArgumentIndex, getArguments, getChannels, getMaxArgIndex, getOptionalArgs, getQuotedArgs, hasChannels, hasNestedArguments, hasVariableArguments, initializeStatic, newNameBindingVariableArguments, newVariableArguments, processArguments, setArguments, setNonpropargs, setQuotedArgs, setVargs
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.Sequential
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.globus.cog.karajan.workflow.events.EventListener
event
 

Field Detail

EXECUTE_DEF

public static final ControlEventType EXECUTE_DEF
Constructor Detail

UDEWrapper

public UDEWrapper()

UDEWrapper

public UDEWrapper(UDEDefinition def)
Method Detail

toString

public String toString()
Overrides:
toString in class FlowNode

pre

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

getDefInternal

protected UDEDefinition getDefInternal(VariableStack stack)
                                throws ExecutionException
Throws:
ExecutionException

getDef

public UDEDefinition getDef(VariableStack stack)
                     throws ExecutionException
Throws:
ExecutionException

executeChildren

public void executeChildren(VariableStack stack)
                     throws ExecutionException
Overrides:
executeChildren in class Sequential
Throws:
ExecutionException

executeWrapper

public void executeWrapper(VariableStack stack)
                    throws ExecutionException
Throws:
ExecutionException

setNestedArgs

protected void setNestedArgs(boolean nestedArgs)
Overrides:
setNestedArgs in class AbstractSequentialWithArguments

setHasVargs

protected void setHasVargs(boolean hasVargs)
Overrides:
setHasVargs in class AbstractSequentialWithArguments

initializeArgs

protected void initializeArgs(VariableStack stack)
                       throws ExecutionException
Overrides:
initializeArgs in class AbstractSequentialWithArguments
Throws:
ExecutionException

getNonpropargs

protected List getNonpropargs()
Overrides:
getNonpropargs in class AbstractSequentialWithArguments

checkArgument

protected boolean checkArgument(String name,
                                UserDefinedElement def)

checkArguments

protected void checkArguments()
Overrides:
checkArguments in class AbstractSequentialWithArguments

getArgument

public Object getArgument(String name)

hasArgument

public boolean hasArgument(String name)

setArgument

public void setArgument(String name,
                        Object value)

getArgumentNames

protected Set getArgumentNames()
Overrides:
getArgumentNames in class AbstractSequentialWithArguments

getSortedArgs

protected String[] getSortedArgs()
Overrides:
getSortedArgs in class AbstractSequentialWithArguments