fuzzydl.util
Class Util

java.lang.Object
  extended by fuzzydl.util.Util

public class Util
extends java.lang.Object

Common utilities.


Constructor Summary
Util()
           
 
Method Summary
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 void order(java.util.Vector<Concept> v)
           
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

println

public static void println(java.lang.String message)
Prints on screen a message and a new line only in debug mode

Parameters:
message - Message to be printed.

print

public static void print(java.lang.String message)
Prints on screen a message only in debug mode

Parameters:
message - Message to be printed.

error

public static void error(java.lang.String message)
                  throws FuzzyOntologyException
Prints an error message and finishes the execution of the program.

Parameters:
message - Message to display.
Throws:
FuzzyOntologyException

hasIntegerValue

public static boolean hasIntegerValue(java.lang.Double d)
Checks whether a double number has an integer value or not.

Parameters:
d - A double number.
Returns:
Whether d has an integer value or not.

order

public static void order(java.util.Vector<Concept> v)