|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jFuzzyLogic.Gpr
public class Gpr
General pupose rutines
| Field Summary | |
|---|---|
static int |
MAX_NUMBER_OF_WARNINGS
Only print this number of warnings |
static int |
warnCount
Print warning only N times |
| Constructor Summary | |
|---|---|
Gpr()
|
|
| Method Summary | |
|---|---|
static void |
debug(boolean b)
Prints a debug message (prints class name, method and line number) |
static void |
debug(boolean debug,
int i)
Prits a debug message (prints class name, method and line number) |
static void |
debug(boolean debug,
java.lang.Object obj)
Prits a debug message (prints class name, method and line number) |
static void |
debug(double d)
Prints a debug message (prints class name, method and line number) |
static void |
debug(int i)
Prints a debug message (prints class name, method and line number) |
static void |
debug(int currentDebugLevel,
int thisMessageLevel,
java.lang.Object obj)
Prits a debug message (prints class name, method and line number) |
static void |
debug(java.lang.Object obj)
Prits a debug message (prints class name, method and line number) |
static void |
debug(java.lang.Object obj,
int offset)
Prits a debug message (prints class name, method and line number) |
static void |
debug(java.lang.Object obj,
int offset,
boolean newLine)
Prits a debug message (prints class name, method and line number) |
static boolean |
parseBooleanSafe(java.lang.String s)
Equivalent to Integer.parseInt, except it returns 0 on invalid integer (NumberFormatException) |
static double |
parseDoubleSafe(java.lang.String s)
Equivalent to Double.parseDouble, except it returns 0 on invalid value (NumberFormatException) |
static int |
parseIntSafe(java.lang.String s)
Equivalent to Integer.parseInt, except it returns 0 on invalid integer (NumberFormatException) |
static void |
toFile(java.lang.String fileName,
java.lang.Object obj)
Write an object to a file |
static void |
warn(java.lang.String warning)
Print a warning message (only a few of them) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int MAX_NUMBER_OF_WARNINGS
public static int warnCount
| Constructor Detail |
|---|
public Gpr()
| Method Detail |
|---|
public static void debug(boolean b)
b - : Boolean to print
public static void debug(boolean debug,
int i)
debug - : Only prints message if debug=truei - : int to print
public static void debug(boolean debug,
java.lang.Object obj)
debug - : Only prints message if debug=trueobj - : Object to printpublic static void debug(double d)
d - : double to printpublic static void debug(int i)
i - : int to print
public static void debug(int currentDebugLevel,
int thisMessageLevel,
java.lang.Object obj)
currentDebugLevel - : Debug level being usedthisMessageLevel - : Only prints message if thisMessageLevel >= currentDebugLevelobj - : Object to printpublic static void debug(java.lang.Object obj)
obj - : Object to print
public static void debug(java.lang.Object obj,
int offset)
obj - : Object to printoffset - : Offset N lines from stacktrace
public static void debug(java.lang.Object obj,
int offset,
boolean newLine)
obj - : Object to printoffset - : Offset N lines from stacktracenewLine - : Print a newline char at the end ('\n')public static boolean parseBooleanSafe(java.lang.String s)
s -
public static double parseDoubleSafe(java.lang.String s)
s -
public static int parseIntSafe(java.lang.String s)
s -
public static void toFile(java.lang.String fileName,
java.lang.Object obj)
fileName - : File to writeobj - : Objectpublic static void warn(java.lang.String warning)
warning -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||