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

java.lang.Object
  extended byorg.globus.cog.karajan.workflow.nodes.FlowNode
      extended byorg.globus.cog.karajan.workflow.nodes.FlowContainer
          extended byorg.globus.cog.karajan.workflow.nodes.Sequential
              extended byorg.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
                  extended byorg.globus.cog.karajan.workflow.nodes.user.UDEWrapper
All Implemented Interfaces:
EventListener, ExtendedFlowElement, FlowElement, LoadListener

public class UDEWrapper
extends AbstractSequentialWithArguments
implements EventListener


Nested Class Summary
 
Nested classes 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
commonArguments, QUOTED
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.Sequential
INDEX
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.FlowContainer
CALLER
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
debug, startCount, TEXT, threadTracker
 
Constructor Summary
UDEWrapper()
           
 
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()
           
 UserDefinedElement getDef(VariableStack stack)
           
protected  UserDefinedElement getDefInternal(VariableStack stack)
           
protected  List getNonpropargs()
           
protected  Set getPropargs()
           
 Object getProperty(String name)
           
protected  String[] getSortedArgs()
           
 boolean hasArgument(String name)
           
 boolean hasProperty(String name)
           
protected  void initializeArgs(VariableStack stack)
           
 void pre(VariableStack stack)
           
protected  void processArguments(VariableStack stack)
           
 Set propertyNames()
           
 void setArgument(String name, Object value)
           
protected  void setHasVargs(boolean hasVargs)
           
protected  void setNestedArgs(boolean nestedArgs)
           
 void setProperty(String name, Object value)
           
 String toString()
           
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
argumentsEvaluated, getArgument, getArgument, getArgumentCount, getArgumentIndex, getArguments, getMaxArgIndex, getQuotedArgs, getVargs, getVargsAsArray, hasArgument, hasNestedArguments, hasVariableArguments, initializeStatic, newNameBindingVariableArguments, newVariableArguments, notificationEvent, setArguments, setArguments, setNonpropargs, setQuotedArgs, setVargs
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.Sequential
executeSingle, exit, moreToExecute, startNext
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowContainer
addChannel, execute, isOptimizable, post, setOptimize
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
abort, acceptsInlineText, addElement, checkClass, checkCompleted, checkFailed, complete, controlEvent, copy, echo, echo, elementCount, elements, end, event, executeErrorHandler, executeSimple, expandProperty, expandProperty, expandPropertyAsString, fail, fail, failIfNotDefined, failIfNull, failIfNull, failImmediately, failImmediately, failImmediately, fireControlEvent, fireMonitoringEvent, fireNotificationEvent, fireStatusMonitoringEvent, get_locator, getBooleanProperty, getBooleanProperty, getCanonicalType, getElement, getElementType, getIntProperty, getIntProperty, getParent, getProjectNode, getStringProperty, getTreeProperty, getVar, hasFrame, hashCode, isCheckpointable, isSimple, isSystemProperty, loadComplete, loadStarted, monitoringEvent, removeProperty, restart, restartElement, ret, ret, set_locator, setAcceptsInlineText, setCheckpointable, setElementType, setFrame, setParent, setProperty, setProperty, start, startElement, startElement, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, 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()
Method Detail

pre

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

getDefInternal

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

getDef

public UserDefinedElement 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

getPropargs

protected Set getPropargs()
Overrides:
getPropargs in class AbstractSequentialWithArguments

processArguments

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

checkArgument

protected boolean checkArgument(String name,
                                UserDefinedElement def)

checkArguments

protected void checkArguments()
Overrides:
checkArguments in class AbstractSequentialWithArguments

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface FlowElement
Overrides:
getProperty in class FlowNode

getArgument

public Object getArgument(String name)

hasProperty

public boolean hasProperty(String name)
Specified by:
hasProperty in interface FlowElement
Overrides:
hasProperty in class FlowNode

propertyNames

public Set propertyNames()
Specified by:
propertyNames in interface FlowElement
Overrides:
propertyNames in class FlowNode

hasArgument

public boolean hasArgument(String name)

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface FlowElement
Overrides:
setProperty in class FlowNode

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

toString

public String toString()
Overrides:
toString in class FlowNode