public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
error(java.lang.String message)
Prints an error message and finishes the execution of the program.
|
static boolean |
hasIntegerValue(java.lang.Double d)
Checks whether a double number has an integer value or not.
|
static int |
log2(double n)
Computes the base 2 logarithm of a number.
|
static void |
order(java.util.ArrayList<Concept> v)
Order a vector of concepts.
|
static void |
print(java.lang.String message)
Prints on screen a message only in debug mode
|
static void |
println(java.lang.String message)
Prints on screen a message and a new line only in debug mode
|
static double |
round(double x)
Rounds a double number to the number of decimals ConfigReader.NUMBER_DIGITS
|
public static void println(java.lang.String message)
message - Message to be printed.public static void print(java.lang.String message)
message - Message to be printed.public static void error(java.lang.String message)
throws FuzzyOntologyException
message - Message to display.FuzzyOntologyException - fuzzy ontology exception.public static boolean hasIntegerValue(java.lang.Double d)
d - A double number.public static double round(double x)
x - A double number.public static void order(java.util.ArrayList<Concept> v)
v - A vector of concepts.public static int log2(double n)
n - A real number.