jmathlib.core.functions
Class ExternalFunction

java.lang.Object
  extended by jmathlib.core.interpreter.RootObject
      extended by jmathlib.core.functions.Function
          extended by jmathlib.core.functions.ExternalFunction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ErrorCodes, TokenConstants
Direct Known Subclasses:
_char, _class, _double, addpath, adjoint, aes, all, and, angle, any, area, average, bar, bar3, bar3h, barh, beep, binomial, bitand, bitor, bitshift, bitxor, blanks, cd, cell, checkforupdates, chol, cla, clear, clf, clock, close, combinations, comet, comet3, compass, complex, coneplot, conj, contour, contour3, contourf, contourslice, createFunctionsList, createnewfile, csvread, csvwrite, cumprod, cumsum, cylinder, date, debug, delete, determinant, diag, dir, disp, eig, elementat, ellipsoid, error, errorbar, euler, example01, example04, exist, ExternalElementWiseFunction, eye, ezcontour, ezcontourf, ezmesh, ezplot, ezplot3, ezpolar, ezsurf, ezsurfc, factor, feather, feval, fft, fibonacci, figure, fill, fill3, find, findstr, fix, fliplr, flipud, foreach, func2str, gammaln, gca, gcf, get, getenv, getpfilecaching, ginput, global, grid, harmonic, hist, hold, imag, image, inf, int16, int32, int64, int8, inversematrix, isa, iscell, ischar, isdirectory, isempty, isfile, isfinite, isfunctionhandle, isglobal, ishidden, isimaginary, isinf, islogical, isnan, isnumeric, isprime, isreal, isspace, isstruct, isstudent, java, kbhit, lastmodified, length, linspace, load, loadvariables, logical, loglog, lower, lowertriangle, lu, magic, max, mesh, meshc, meshgrid, meshz, min, mkdir, nan, nargchk, nargoutchk, ndims, newline, nnz, not, num2str, numel, ones, or, pareto, patch, path, pause, pcolor, performfunction, permutations, pie, pie3, plot, plot3, plotfunction, plotmatrix, plotyy, polar, pow2, primes, print, print_usage, printstacktrace, prod, propertyeditor, qr, questdlg, quiver, quiver3, rand, real, ReflectionFunctionCall, rehash, repmat, reshape, rmdir, rmpath, rose, rotate, runfile, savevariables, scatter, scatter3, semilogx, semilogy, set, setdebug, setpfilecaching, SFunction, simultaneouseq, size, sort, sphere, sprintf, spy, stairs, stem, stem3, str2func, str2num, strcat, strcmp, strcmpi, streamline, streamribbon, streamslice, streamtube, strfind, strlength, strncmp, strncmpi, struct, strvcat, subassign, submatrix, subplot, substring, sum, surf, surfc, surfl, svd, systemcommand, template, tic, time, title, toc, uint16, uint8, update, upper, uppertriangle, urlread, usage, variation, ver, version, warning, waterfall, who, whos, xlabel, xor, ylabel, zeros, zlabel

public abstract class ExternalFunction
extends Function

Base class for all external function classes

See Also:
Serialized Form

Field Summary
protected static int IMAG
          Index for Imaginary values within array
protected static int REAL
          Index for real values within array
 
Fields inherited from class jmathlib.core.functions.Function
lastModified, name, pathAndFileName
 
Fields inherited from interface jmathlib.core.constants.ErrorCodes
ERR_BRACKET_OPEN, ERR_BRACKET_ORDER, ERR_FUNCTION_NOT_FOUND, ERR_FUNCTION_NOT_IMPLEMENTED, ERR_INSUFFICIENT_PARAMETERS, ERR_INVALID_PARAMETER, ERR_LVALUE_REQUIRED, ERR_MATRIX_SINGULAR, ERR_NOT_SQUARE_MATRIX, ERR_OPNOTSUPPORTED, ERR_TOO_MANY_PARAMETERS, ERR_USER_ERROR, ERR_VARIABLE_NOTDEFINED, OK, OK_FUNCTION_PROCESS
 
Fields inherited from interface jmathlib.core.constants.TokenConstants
ADDSUB_PRIORITY, AND_PRIORITY, ANDAND_PRIORITY, ASSIGN_PRIORITY, BRACKET_PRIORITY, COMPARE_PRIORITY, CONCAT, MATRIX, MULDIV_PRIORITY, OR_PRIORITY, OROR_PRIORITY, PARAMETER, POWER_PRIORITY, RELATION_PRIORITY, SINGLE, ttDelimiter, ttNotSet, ttOperand, ttOperator
 
Constructor Summary
ExternalFunction()
          Default constructor - creates an external function with a null name
ExternalFunction(java.lang.String _name)
          Creates an external function called _name
 
Method Summary
 int getParamCount()
           
 
Methods inherited from class jmathlib.core.functions.Function
debugLine, equals, evaluate, getLastModified, getName, getNArgIn, getNArgOut, getNoOfLeftHandArguments, getPathAndFileName, setLastModified, setName, setNoOfLeftHandArguments, setPathAndFileName, throwMathLibException
 
Methods inherited from class jmathlib.core.interpreter.RootObject
clone, getContextList, getDebug, getFunctionManager, getGlobalVariables, getGraphicsManager, getInterpreter, getPluginsManager, getVariable, getVariables, getWorkingDirectory, setConstants, setDebug, setWorkingDirectory, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REAL

protected static final int REAL
Index for real values within array

See Also:
Constant Field Values

IMAG

protected static final int IMAG
Index for Imaginary values within array

See Also:
Constant Field Values
Constructor Detail

ExternalFunction

public ExternalFunction()
Default constructor - creates an external function with a null name


ExternalFunction

public ExternalFunction(java.lang.String _name)
Creates an external function called _name

Parameters:
_name - = the name of the function
Method Detail

getParamCount

public int getParamCount()
Returns:
the number of paramaters taken by the function