|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectuk.ac.ucl.che.esf.base.Settings
public class Settings
Global settings for the ESF package. This object should not be instantiated: all methods and variables are static.
| Field Summary | |
|---|---|
static int |
debug
Debug level is used by much of the ESF package to control the verbosity of the diagnostic messages generated. |
static java.text.DecimalFormat |
DEFAULT_FORMAT
Default format for typical numbers... |
static boolean |
log
Some parts of the esf package may wish to log events for post-synthesis (e.g.) analysis. |
static java.io.PrintWriter |
output
All output to the standard output unit can be redirected either to a file or to a window. |
static java.text.DecimalFormat |
Pformat
Format for output of pressure values |
static java.lang.String |
projectName
The name of the project |
static java.lang.String |
projectTitle
The description of the project |
static java.text.DecimalFormat |
Qformat
Format for output of duty values |
static boolean |
stopOnError
The main interface to the FiSH system is textual: an input file is prepared and is then processed by the Input object. |
static java.text.DecimalFormat |
Tformat
Format for output of temperature values |
static boolean |
useThreads
Some implementations of Java are better than others... |
| Constructor Summary | |
|---|---|
Settings()
|
|
| Method Summary | |
|---|---|
static uk.ac.ucl.che.esf.ui.Browser |
getBrowser()
|
static void |
parse(uk.ac.ucl.che.esf.ui.Parser parser)
Parse textual input. |
protected static boolean |
parseLine(java.lang.String[] line,
uk.ac.ucl.che.esf.ui.Parser parser)
Text based interface parser. |
static void |
report(java.io.PrintWriter pw)
Generate an HTML report describing the global settings for the ESF package |
static void |
reset()
Reset all (static) variables to their defaults |
static void |
setBrowser(uk.ac.ucl.che.esf.ui.Browser browser)
Specify which browser, for persistent object manipulation, should be used by the ESF system. |
static void |
setOutput(java.io.PrintWriter pw)
Redirect all standard output to the given PrintWriter argument |
static void |
setOutput(java.lang.String file)
Redirect all standard output to the file whose name is given as the single argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.text.DecimalFormat DEFAULT_FORMAT
public static java.text.DecimalFormat Pformat
public static java.text.DecimalFormat Qformat
public static java.text.DecimalFormat Tformat
public static int debug
There is some correlation between the debug level and the type of output for synthesis problems:
public static boolean log
public static java.io.PrintWriter output
public static java.lang.String projectName
public static java.lang.String projectTitle
public static boolean stopOnError
public static boolean useThreads
| Constructor Detail |
|---|
public Settings()
| Method Detail |
|---|
public static uk.ac.ucl.che.esf.ui.Browser getBrowser()
public static void parse(uk.ac.ucl.che.esf.ui.Parser parser)
protected static boolean parseLine(java.lang.String[] line,
uk.ac.ucl.che.esf.ui.Parser parser)
| Command | Arguments | Description |
|---|---|---|
| threads | true | false | Allow use of threads. Used by compute intensive sections to yield access to cpu periodically for less than well implemented virtual machines [like the original Solaris implementation!]. |
public static void report(java.io.PrintWriter pw)
public static void reset()
public static void setBrowser(uk.ac.ucl.che.esf.ui.Browser browser)
public static void setOutput(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionpublic static void setOutput(java.io.PrintWriter pw)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||