org.fraid.function
Class FunctionHelper

java.lang.Object
  extended by org.fraid.function.FunctionHelper

public class FunctionHelper
extends java.lang.Object

Type checking routines used when working with FrAid types.


Field Summary
static java.util.HashMap<java.lang.String,java.lang.Integer> singleArgArgDescription
           
 
Constructor Summary
FunctionHelper()
           
 
Method Summary
static Complex ensureComplex(Complex aArg)
           
static ComplexFunction ensureComplexFunction(Complex aArg)
           
static DefinedFunction ensureDefinedFunction(Complex aArg)
           
static ComplexFunction ensureExecutableFunction(Complex aArg)
           
static DefinedFunction ensureSampledFunction(Complex aArg)
           
static SimpleNode ensureSimpleNode(Complex aArg)
           
static java.lang.String ensureString(Complex aArg)
           
static void processDependancy(ComplexFunction aFunction, java.util.Vector<ComplexFunction> aVector, java.util.HashSet<ComplexFunction> aAllreadyPassed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleArgArgDescription

public static java.util.HashMap<java.lang.String,java.lang.Integer> singleArgArgDescription
Constructor Detail

FunctionHelper

public FunctionHelper()
Method Detail

ensureSimpleNode

public static SimpleNode ensureSimpleNode(Complex aArg)
                                   throws ComplexFunctionException
Throws:
ComplexFunctionException

ensureString

public static java.lang.String ensureString(Complex aArg)
                                     throws ComplexFunctionException
Throws:
ComplexFunctionException

ensureComplex

public static Complex ensureComplex(Complex aArg)
                             throws ComplexFunctionException
Throws:
ComplexFunctionException

ensureExecutableFunction

public static ComplexFunction ensureExecutableFunction(Complex aArg)
                                                throws ComplexFunctionException
Throws:
ComplexFunctionException

ensureComplexFunction

public static ComplexFunction ensureComplexFunction(Complex aArg)
                                             throws ComplexFunctionException
Throws:
ComplexFunctionException

ensureDefinedFunction

public static DefinedFunction ensureDefinedFunction(Complex aArg)
                                             throws ComplexFunctionException
Throws:
ComplexFunctionException

ensureSampledFunction

public static DefinedFunction ensureSampledFunction(Complex aArg)
                                             throws ComplexFunctionException
Throws:
ComplexFunctionException

processDependancy

public static void processDependancy(ComplexFunction aFunction,
                                     java.util.Vector<ComplexFunction> aVector,
                                     java.util.HashSet<ComplexFunction> aAllreadyPassed)


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.