Class FunctionFactory

  extended by org.mbari.jddac.FunctionFactory

public class FunctionFactory
extends java.lang.Object

Created by IntelliJ IDEA. User: brian Date: Mar 27, 2006 Time: 4:48:36 PM To change this template use File | Settings | File Templates.

Constructor Summary
Method Summary
static createFunctionArg(java.lang.String opIdIn, java.lang.String opIdOut, IFunction function)
          Wraps a function so that it can function as input to a RelayBlock.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public FunctionFactory()
Method Detail


public static createFunctionArg(java.lang.String opIdIn,
                                                                    java.lang.String opIdOut,
                                                                    IFunction function)
Wraps a function so that it can function as input to a RelayBlock. This method is equivalent to calling
 ArgArray argArray = new ArgArray();
 argArray.put(IFunction.OPID_IN, opIdIn);
 argArray.put(IFunction.OPID_OUT, opIdOut);
 argArray.put(IFunction.KEY, function);

opIdIn - This is the OpID string passed into the process method of a RelayBlock that would trigger the function to execute
opIdOut - This is the OpId String that will be passed on to all the child RelayBlocks along with the results of the function
function - The function to be executed
A function wrapped for input into a RelayBlock

Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.