[Mathlib-commitlog] SF.net SVN: mathlib:[788] JMathLib/trunk/src/jmathlib/core/interpreter/ GlobalV
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-26 20:04:15
|
Revision: 788
http://mathlib.svn.sourceforge.net/mathlib/?rev=788&view=rev
Author: st_mueller
Date: 2009-01-26 20:04:13 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
added more comments
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-26 20:00:09 UTC (rev 787)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/GlobalValues.java 2009-01-26 20:04:13 UTC (rev 788)
@@ -1,3 +1,12 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author:
+ * (c) 2002-2009
+ */
+
package jmathlib.core.interpreter;
import java.io.*;
@@ -26,9 +35,6 @@
/**Object to control function usage*/
private jmathlib.core.functions.FunctionManager functionManager;
- /**Class Loader for loading classes for handling casting*/
- //static transient private MathLib.Casts.CastClassLoader castClassLoader;
-
/**A pointer to the interpreter itself*/
private Interpreter interpreter;
@@ -38,28 +44,24 @@
/**Object to control plugins */
private jmathlib.plugins.PluginsManager pluginsManager;
- /**sets whether to write debug lines to console and log files*/
- //private boolean debug = true;
-
/**stores the number format for displaying the number*/
- public /*static transient*/ NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
+ public NumberFormat numFormat = new DecimalFormat("0.0000", new DecimalFormatSymbols(Locale.ENGLISH));
/**Initialises the global values
- @param _interpreter = the Interpreter object
- @param _runningStandalone = true if this was run from an application*/
+ * @param _interpreter = the Interpreter object
+ * @param _runningStandalone = true if this was run from an application
+ */
public GlobalValues(Interpreter _interpreter, boolean _runningStandalone, Applet applet)
{
+ // the list of contexts
contextList = new ContextList();
+ // the function manager for loading m-files class-files
functionManager = new jmathlib.core.functions.FunctionManager(_runningStandalone, applet);
+ // the graphics manager for plotting functions
graphicsManager = new jmathlib.core.graphics.GraphicsManager();
- //if(_runningStandalone)
- // castClassLoader = new MathLib.Casts.CastClassLoader("." + File.separator, flags);
- //else
- // castClassLoader = null;
-
//set up a pointer to the interpreter object
interpreter = _interpreter;
@@ -136,8 +138,8 @@
return contextList;
}
- /**@return the interpreter object
- * @return
+ /**returns the interpreter object
+ * @return pointer to Interpreter
*/
public Interpreter getInterpreter()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|