org.globus.cog.karajan.workflow.nodes.functions
Class FunctionsCollection

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.SequentialWithArguments
                      extended by org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction
                          extended by org.globus.cog.karajan.workflow.nodes.functions.FunctionsCollection
All Implemented Interfaces:
LoadListener, EventListener, ExtendedFlowElement, FlowElement
Direct Known Subclasses:
Functions, Java, List, Logic, Map, Math, Misc

public abstract class FunctionsCollection
extends AbstractFunction


Nested Class Summary
 
Nested classes/interfaces inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
FlowNode.FNTP
 
Field Summary
static Arg[] ARGS_2VALUES
           
static org.apache.log4j.Logger logger
           
static Arg PA_VALUE1
           
static Arg PA_VALUE2
           
 
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
FunctionsCollection()
           
 
Method Summary
 boolean acceptsInlineText()
          Returns true if the implementation of this element makes use of inline XML text.
protected static void addAlias(String from, String to)
           
 long currenttime(VariableStack stack)
           
 Object function(VariableStack stack)
           
 Number[] getArgs(VariableStack stack)
           
 String getCanonicalName()
           
 Object getCanonicalType()
           
protected  void initializeStatic()
           
protected static void setAcceptsInlineText(String fname, boolean text)
           
 void setElementType(String type)
          Sets the element type.
protected static void setQuotedArgs(String fn)
           
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction
executeChildren, executeSimple, isSimple, post, pre, ret, setSimple, setValue
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
addChannel, argumentsEvaluated, checkArguments, childCompleted, getArgument, getArgumentCount, getArgumentIndex, getArgumentNames, getArguments, getChannels, getMaxArgIndex, getNonpropargs, getOptionalArgs, getQuotedArgs, getSortedArgs, hasChannels, hasNestedArguments, hasVariableArguments, initializeArgs, newNameBindingVariableArguments, newVariableArguments, processArguments, setArguments, setHasVargs, setNestedArgs, 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, setChildFailed, setOptimize
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
_finally, abort, abortEvent, addElement, addStaticArgument, checkClass, checkCompleted, checkFailed, complete, controlEvent, copy, echo, echo, elementCount, elements, event, executeErrorHandler, fail, fail, failIfNotDefined, failIfNull, failIfNull, failImmediately, failImmediately, failImmediately, failImmediately, fireControlEvent, fireMonitoringEvent, fireNotificationEvent, fireStatusMonitoringEvent, get_locator, getBooleanProperty, getBooleanProperty, getElement, getElementType, getIntProperty, getIntProperty, getParent, getProperty, getStaticArguments, getStringProperty, getTextualName, getTreeProperty, getUID, hasFrame, hasProperty, isCheckpointable, isSystemProperty, loadComplete, loadStarted, monitoringEvent, propertyNames, removeElement, removeElement, removeProperty, replaceElement, restart, restartElement, set_locator, setAcceptsInlineText, setCheckpointable, setElements, 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

logger

public static final org.apache.log4j.Logger logger

PA_VALUE1

public static final Arg PA_VALUE1

PA_VALUE2

public static final Arg PA_VALUE2

ARGS_2VALUES

public static final Arg[] ARGS_2VALUES
Constructor Detail

FunctionsCollection

public FunctionsCollection()
Method Detail

setAcceptsInlineText

protected static void setAcceptsInlineText(String fname,
                                           boolean text)

addAlias

protected static void addAlias(String from,
                               String to)

setElementType

public void setElementType(String type)
Description copied from interface: FlowElement
Sets the element type. The element type is a string reflecting the actual name used in source files.

Specified by:
setElementType in interface FlowElement
Overrides:
setElementType in class FlowNode

getCanonicalName

public String getCanonicalName()

function

public Object function(VariableStack stack)
                throws ExecutionException
Specified by:
function in class AbstractFunction
Throws:
ExecutionException

currenttime

public long currenttime(VariableStack stack)
                 throws ExecutionException
Throws:
ExecutionException

getArgs

public Number[] getArgs(VariableStack stack)
                 throws ExecutionException
Throws:
ExecutionException

acceptsInlineText

public boolean acceptsInlineText()
Description copied from interface: FlowElement
Returns true if the implementation of this element makes use of inline XML text. XML unfortunately does not provide means to separate relevant inline text from formatting whitespace (which in itself may or may not be relevant, depending on the context).

Specified by:
acceptsInlineText in interface FlowElement
Overrides:
acceptsInlineText in class FlowNode

getCanonicalType

public Object getCanonicalType()
Overrides:
getCanonicalType in class FlowNode

setQuotedArgs

protected static void setQuotedArgs(String fn)

initializeStatic

protected void initializeStatic()
Overrides:
initializeStatic in class AbstractSequentialWithArguments