coins.mdf
Class MdfEnvironment

java.lang.Object
  extended bycoins.mdf.MdfEnvironment

public class MdfEnvironment
extends java.lang.Object

The environment of the MDF module.


Field Summary
static int AllThr
          The threshold for debugging: trace=10000
static int DEFAULT_NUM_THREADS
          The default number of threads
 IoRoot ioRoot
          The current IoRoot
static int MdfThr
          The threshold for debugging: trace=1500
static int MinThr
          The threshold for debugging: trace=1000
 java.lang.String MODULENAME
          The name of this module
static int MsgThr
          The threshold for debugging: trace=100
 CoinsOptions opt
          The current coins compiler option
static int OptThr
          The threshold for debugging: trace=2000
 java.io.PrintStream output
          The current standard output stream
 CompileSpecification spec
          The current compiler specification
 Trace trace
          The current trace information
 
Constructor Summary
MdfEnvironment(IoRoot root, CompileSpecification coinsSpec)
          Constructor:
 
Method Summary
(package private)  void print(java.lang.String str, int threshold)
          The debug output method.
(package private)  void println(java.lang.String str, int threshold)
          The debug output method.
(package private)  boolean shouldDo(int threshold)
          Get whether the module execute something.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MsgThr

public static final int MsgThr
The threshold for debugging: trace=100

See Also:
Constant Field Values

MinThr

public static final int MinThr
The threshold for debugging: trace=1000

See Also:
Constant Field Values

MdfThr

public static final int MdfThr
The threshold for debugging: trace=1500

See Also:
Constant Field Values

OptThr

public static final int OptThr
The threshold for debugging: trace=2000

See Also:
Constant Field Values

AllThr

public static final int AllThr
The threshold for debugging: trace=10000

See Also:
Constant Field Values

DEFAULT_NUM_THREADS

public static final int DEFAULT_NUM_THREADS
The default number of threads

See Also:
Constant Field Values

output

public final java.io.PrintStream output
The current standard output stream


spec

public final CompileSpecification spec
The current compiler specification


opt

public final CoinsOptions opt
The current coins compiler option


ioRoot

public final IoRoot ioRoot
The current IoRoot


trace

public final Trace trace
The current trace information


MODULENAME

public final java.lang.String MODULENAME
The name of this module

See Also:
Constant Field Values
Constructor Detail

MdfEnvironment

public MdfEnvironment(IoRoot root,
                      CompileSpecification coinsSpec)
Constructor:

Parameters:
root - The current IoRoot
coinsSpec - The current compiler specification
Method Detail

shouldDo

boolean shouldDo(int threshold)
Get whether the module execute something.

Parameters:
threshold - The specified value
Returns:
True if the specified value is over the threshold

println

void println(java.lang.String str,
             int threshold)
The debug output method. Output strings if the specified value is over the threshold. And also, this method makes a new line.

Parameters:
str - The debug string.
threshold - The specified value

print

void print(java.lang.String str,
           int threshold)
The debug output method. Output strings if the specified value is over the threshold.

Parameters:
str - The debug string.
threshold - The specified value