jmathlib.core.functions
Class MFileWebLoader

java.lang.Object
  extended by jmathlib.core.functions.FunctionLoader
      extended by jmathlib.core.functions.MFileWebLoader

public class MFileWebLoader
extends FunctionLoader

Class for storing and managing the m- and p-functions JMH Should be more aptly named "WebFunctionLoader"


Field Summary
private  java.net.URL codeBase
           
private  java.lang.String directory
           
(package private)  boolean pFileCachingEnabledB
           
 
Constructor Summary
MFileWebLoader(java.net.URL _codeBase, java.lang.String _directory)
          Default constructor
 
Method Summary
 void checkAndRehashTimeStamps()
           
 Function findFunction(java.lang.String functionName)
          loads an .m-file via the web
 java.net.URL getCodeBase()
           
 java.lang.String getDirectory()
           
 boolean getPFileCaching()
          return whether of not caching of p-files is enabled of not
 void setPFileCaching(boolean pFileCaching)
          set caching of p-file to on of off
 
Methods inherited from class jmathlib.core.functions.FunctionLoader
cacheFunction, clearCache, clearCachedFunction, getCachedFunction, getCachedFunctionIterator, isSystemLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pFileCachingEnabledB

boolean pFileCachingEnabledB

codeBase

private java.net.URL codeBase

directory

private java.lang.String directory
Constructor Detail

MFileWebLoader

public MFileWebLoader(java.net.URL _codeBase,
                      java.lang.String _directory)
Default constructor

Method Detail

getCodeBase

public java.net.URL getCodeBase()

getDirectory

public java.lang.String getDirectory()

findFunction

public Function findFunction(java.lang.String functionName)
loads an .m-file via the web

Specified by:
findFunction in class FunctionLoader
Parameters:
directory - = the directory containing the file
mFileName - = the name of the m file
Returns:
the result of the file as a FunktionToken

setPFileCaching

public void setPFileCaching(boolean pFileCaching)
set caching of p-file to on of off

Specified by:
setPFileCaching in class FunctionLoader
Parameters:
pFileCaching - true= caching of p-files on; false: caching of p-files off

getPFileCaching

public boolean getPFileCaching()
return whether of not caching of p-files is enabled of not

Specified by:
getPFileCaching in class FunctionLoader
Returns:
status of caching p-files

checkAndRehashTimeStamps

public void checkAndRehashTimeStamps()
Specified by:
checkAndRehashTimeStamps in class FunctionLoader