Class Logger<T extends Logger>
java.lang.Object
it.poliba.sisinflab.tinyme.util.logging.Logger<T>
- Type Parameters:
T
- Allows pseudo-instanceof method return types.
- Direct Known Subclasses:
ConsoleLogger
,FileLogger
,MemoryLogger
,NullLogger
public abstract class Logger<T extends Logger> extends Object
Abstract logger class.
-
Constructor Summary
Constructors Constructor Description Logger()
-
Method Summary
Modifier and Type Method Description abstract T
clear()
Clears the logger, discarding anything it has logged in the past.void
close()
Closes this logger.T
log(Object obj)
Logs the specified object.abstract T
log(String string)
Logs the given string.T
logABox(Reasoner reasoner)
Logs the ABox.T
logln(Object obj)
Logs the specified object and appends a newline character.T
logTaxonomy(Reasoner reasoner)
Logs the taxonomy computed by the specified reasoner instance.T
logTBox(Reasoner reasoner)
Logs the TBox.
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
logTBox
Logs the TBox.- Parameters:
reasoner
- Reasoner instance.- Returns:
- This logger.
-
logABox
Logs the ABox.- Parameters:
reasoner
- Reasoner instance.- Returns:
- This logger.
-
logTaxonomy
Logs the taxonomy computed by the specified reasoner instance.- Parameters:
reasoner
- Reasoner instance.- Returns:
- This logger.
-
log
Logs the specified object.- Parameters:
obj
- Object to log.- Returns:
- This logger.
-
logln
Logs the specified object and appends a newline character.- Parameters:
obj
- Object to log.- Returns:
- This logger.
-
close
public void close()Closes this logger. -
log
Logs the given string.- Parameters:
string
- String to log.- Returns:
- This logger.
-
clear
Clears the logger, discarding anything it has logged in the past.- Returns:
- This logger.
-