public class Infrastructure
extends java.lang.Object
String
input from the user. Static, non-instantiable class.Modifier and Type | Field and Description |
---|---|
static java.io.BufferedReader |
console
Sane version of System.in allowing readLine() method.
|
static int |
DEFAULT_MV_STEP
Default Vdd increment for Schmoo plots or other voltage sweeps, in mV
|
static int[] |
gpibControllers
ID of GPIB controllers used in this setup, to prevent accidental control
of other peoples' devices.
|
static int |
SEVERITY_FATAL
Constant indicating program prints error message and exits when it
encounters a particular flavor of error in shift()
|
static int |
SEVERITY_NOMESSAGE
Constant indicating program continues with no error message when it
encounters a particular flavor of error in shift()
|
static int |
SEVERITY_NONFATAL
Constant indicating program prints error message and stack trace, then
continues, when it encounters a particular flavor of error in shift()
|
static int |
SEVERITY_WARNING
Constant indicating program prints error message and continues when it
encounters a particular flavor of error in shift()
|
Modifier and Type | Method and Description |
---|---|
static void |
error(int severity,
java.lang.String message)
Depending on severity, may print error message, print stack trace, and/or
exit the JVM.
|
static void |
exit(int exitValue) |
static void |
fatal(java.lang.String message)
Prints message and stack trace on standard error, then exits.
|
static java.lang.String |
getElapsedTime(long milliseconds)
Method to describe a time value as a String.
|
static java.lang.String |
getTimeSinceMarker()
Prints the time
|
static void |
log(java.lang.String msg)
Deprecated.
|
static void |
main(java.lang.String[] args) |
static void |
markTime() |
static void |
nonfatal(java.lang.String message)
Prints message and stack trace on standard error.
|
static java.lang.String |
readln()
Returns next line from System.in
|
static java.lang.String |
readln(java.lang.String prompt)
Prompts for input and returns next line from System.in
|
protected static void |
wait(float seconds) |
static void |
waitSeconds(float seconds)
Deprecated.
Replaced by ChipModel.wait()
|
public static final int SEVERITY_NOMESSAGE
public static final int SEVERITY_WARNING
public static final int SEVERITY_NONFATAL
public static final int SEVERITY_FATAL
public static int[] gpibControllers
public static final int DEFAULT_MV_STEP
public static java.io.BufferedReader console
public static void nonfatal(java.lang.String message)
message
- message to printpublic static void fatal(java.lang.String message)
message
- message to printpublic static void exit(int exitValue)
public static void error(int severity, java.lang.String message)
severity
- one of the SEVERITY_* constants defining action to takemessage
- message to printSEVERITY_NOMESSAGE
,
SEVERITY_WARNING
,
SEVERITY_NONFATAL
,
SEVERITY_FATAL
public static void log(java.lang.String msg)
msg
on stdout
when
log
is truemsg
- message to printpublic static java.lang.String readln()
public static java.lang.String readln(java.lang.String prompt)
public static void markTime()
public static java.lang.String getTimeSinceMarker()
public static java.lang.String getElapsedTime(long milliseconds)
milliseconds
- the time span in milli-seconds.public static void waitSeconds(float seconds)
seconds
- number of seconds to waitprotected static void wait(float seconds)
public static void main(java.lang.String[] args)