package org.matheclipse.core.basic;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.math3.util.Precision;
import org.matheclipse.core.interfaces.ISymbol;
/**
*
*/
public class Config {
/**
* COMPILER switch - set this boolean variable to true, if you would force a direct plot frame creation from the
* Plot[], Plot3D[] and ParametricPlot[] functions
*
* On the server this switch should be set to false
*/
public static boolean SWING_PLOT_FRAME = false;
/**
* The time in milliseconds an evaluation thread should run.
* 0 => forever
*
*/
public static long TIME_CONSTRAINED_MILLISECONDS = 60000L;
/**
* The time in milliseconds an evaluation thread should run.
* 0 => forever
*
*/
public final static long FOREVER = 0L;
/**
* The time in milliseconds an evaluation thread should sleep until Thread#stop() will be called.
*
*/
public final static long TIME_CONSTRAINED_SLEEP_MILLISECONDS = 500;
/**
* Switch debug mode on/off
*
*/
public final static boolean DEBUG = false;
/**
* Show the stack trace, if an exception is thrown in evaluation
*
*/
public final static boolean SHOW_STACKTRACE = true;
/**
* Show the console output, if an expression has a head symbol with attribute ISymbol.CONSOLE_OUTPUT.
*
*/
public final static boolean SHOW_CONSOLE = true;
/**
* Show the pattern-matching evaluation steps in the console output.
*
*/
public final static boolean SHOW_PATTERN_EVAL_STEPS = false;
public final static Set SHOW_PATTERN_SYMBOL_STEPS = new HashSet();
/**
* If true the parser don't distinguish between lower- or uppercase symbols (i.e. constants, function names,...)
*/
public static boolean PARSER_USE_LOWERCASE_SYMBOLS = true;
/**
* Version string for console application
*
*/
// public final static String VERSION = "00.00.70.00";
/**
* true if the engine is started by a servlet
* In server mode the user can only assign values to variables with prefix '$'
*
* SERVER_MODE should be set to true in the initialization of a servlet
*
*/
public static boolean SERVER_MODE = false;
/**
* See Wikipedia: Machine epsilon
*/
public static double DOUBLE_EPSILON = Precision.EPSILON;
/**
* The double tolerance used for comparisons.
*/
public final static double DOUBLE_TOLERANCE = DOUBLE_EPSILON * 10d;
/**
* Maximum size of the BigInteger words in server mode.
*
* @see apache.harmony.math.BigInteger
*/
public static int BIGINTEGER_MAX_SIZE = 65536;
/**
* Maximum size of the FastTable entries in server mode.
*
* @see javolution.util.FastTable
*/
public static int FASTTABLE_MAX_SIZE = 65536;
/**
* Maximum length of the StringImpl's String in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int STRING_MAX_SIZE = 4096;
/**
* Maximum size of the AST pools in server mode.
*
* @see org.matheclipse.core.expression.AST
*/
public static int AST_MAX_POOL_SIZE = 65536;
/**
* Maximum size of the IntegerImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int INTEGER_MAX_POOL_SIZE = 4096;
/**
* Maximum size of the FractionImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int FRACTION_MAX_POOL_SIZE = 4096;
/**
* Maximum size of the ComplexImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int COMPLEX_MAX_POOL_SIZE = 4096;
/**
* Maximum size of the DoubleImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int DOUBLE_MAX_POOL_SIZE = 65536;// 16384;
/**
* Maximum size of the DoubleComplexImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int DOUBLECOMPLEX_MAX_POOL_SIZE = 65536;// 16384;
/**
* Maximum size of the PatternImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int PATTERN_MAX_POOL_SIZE = 1024;
/**
* Maximum size of the StringImpl pools in server mode.
*
* @see org.matheclipse.core.expression.Expression
*/
public static int STRING_MAX_POOL_SIZE = 1024;
/**
* Maximum size of the double vector's in server mode.
*
* @see org.matheclipse.core.basic.Alloc
*/
public static int MAX_DOUBLE_VECTOR_SIZE = 65536;
/**
* Maximum size of the double matrix's in server mode.
*
* @see org.matheclipse.core.basic.Alloc
*/
public static int MAX_DOUBLE_MATRIX_SIZE = 65536;
}
Ads help maintain this website.