jmathlib.core.functions
Class FunctionLoader

java.lang.Object
  extended by jmathlib.core.functions.FunctionLoader
Direct Known Subclasses:
FileFunctionLoader, testGlobal.TestFunctionLoader, WebFunctionLoader

public abstract class FunctionLoader
extends java.lang.Object

Base class used to find and load a function.


Field Summary
private  java.util.HashMap functionCache
           
private  boolean isSystemLoader
           
 
Constructor Summary
  FunctionLoader()
           
protected FunctionLoader(boolean _isSystemLoader)
           
 
Method Summary
protected  void cacheFunction(Function f)
           
abstract  void checkAndRehashTimeStamps()
           
 void clearCache()
           
protected  void clearCachedFunction(java.lang.String name)
           
abstract  Function findFunction(java.lang.String functionName)
          find unknown class/m-file in directory structure
protected  Function getCachedFunction(java.lang.String name)
           
protected  java.util.Iterator getCachedFunctionIterator()
           
abstract  boolean getPFileCaching()
           
 boolean isSystemLoader()
           
abstract  void setPFileCaching(boolean caching)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isSystemLoader

private boolean isSystemLoader

functionCache

private java.util.HashMap functionCache
Constructor Detail

FunctionLoader

protected FunctionLoader(boolean _isSystemLoader)

FunctionLoader

public FunctionLoader()
Method Detail

cacheFunction

protected void cacheFunction(Function f)

getCachedFunction

protected Function getCachedFunction(java.lang.String name)

getCachedFunctionIterator

protected java.util.Iterator getCachedFunctionIterator()

clearCachedFunction

protected void clearCachedFunction(java.lang.String name)

clearCache

public void clearCache()

isSystemLoader

public boolean isSystemLoader()

findFunction

public abstract Function findFunction(java.lang.String functionName)
find unknown class/m-file in directory structure

Parameters:
fileName - = the file to look for

setPFileCaching

public abstract void setPFileCaching(boolean caching)

getPFileCaching

public abstract boolean getPFileCaching()

checkAndRehashTimeStamps

public abstract void checkAndRehashTimeStamps()

FOOTER

BOTTOM