simAuxLibrary
Class DebugOutput

java.lang.Object
  extended bysimAuxLibrary.DebugOutput

public class DebugOutput
extends java.lang.Object

Bibliothek simAuxLibrary , Klasse DebugOutput

Copyright by Klaus Hufschlag 2004,2005,2006

This file is part of the Generic Classifier Library. The Generic Classifier Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Generic Classifier Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the Generic Classifier Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Version:
1.4
Author:
Klaus Hufschlag

Method Summary
static java.io.Writer getWriter(java.lang.Object key)
          Returns the console for the key object.
static boolean isOn()
          Checks activation of standard console.
static boolean isOn(java.lang.Object key)
          Checks, wheter the console for a key is activated.
static void print(java.lang.Object key, java.lang.String string)
          Output to the console assigned for the given key.
static void print(java.lang.String string)
          Output on standard console.
static void println()
          Output of a single linefeed to standard console.
static void println(java.lang.Object key)
          Output of a single linefeed to console assigned to key.
static void println(java.lang.Object key, java.lang.String string)
          Output with linefeed to console assigned to key.
static void println(java.lang.String string)
          Output of a string with linefeed to standard console.
static void setWriter(java.lang.Object key, java.io.Writer out)
          Define a console used for a key object.
static void setWriter(java.io.Writer out)
          Setting standard channel for output des Standard-Ausgabekanals.
static void turnOff()
          Deactivates standard console.
static void turnOff(java.lang.Object key)
          Deactivates console for the given key.
static void turnOn()
          Activates standard console.
static void turnOn(java.lang.Object key)
          Activates console for the given key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setWriter

public static void setWriter(java.io.Writer out)
Setting standard channel for output des Standard-Ausgabekanals.

Parameters:
out - Writer-Object as standard console.

setWriter

public static void setWriter(java.lang.Object key,
                             java.io.Writer out)
Define a console used for a key object.

Parameters:
key - key object
out - Writer-Object as console

getWriter

public static java.io.Writer getWriter(java.lang.Object key)
Returns the console for the key object.

Parameters:
key - key object
Returns:
defined writer

turnOn

public static void turnOn(java.lang.Object key)
Activates console for the given key.

Parameters:
key - key object

turnOff

public static void turnOff(java.lang.Object key)
Deactivates console for the given key.

Parameters:
key - key object

isOn

public static boolean isOn(java.lang.Object key)
Checks, wheter the console for a key is activated.

Parameters:
key - key object
Returns:
true, if console is activated

turnOn

public static void turnOn()
Activates standard console.


turnOff

public static void turnOff()
Deactivates standard console.


isOn

public static boolean isOn()
Checks activation of standard console.

Returns:
true

print

public static void print(java.lang.Object key,
                         java.lang.String string)
Output to the console assigned for the given key.

Parameters:
key - key object
string - output-string

print

public static void print(java.lang.String string)
Output on standard console.

Parameters:
string - output-string

println

public static void println(java.lang.Object key,
                           java.lang.String string)
Output with linefeed to console assigned to key.

Parameters:
key - key object
string - auszugebender String

println

public static void println(java.lang.Object key)
Output of a single linefeed to console assigned to key.

Parameters:
key - key object

println

public static void println()
Output of a single linefeed to standard console.


println

public static void println(java.lang.String string)
Output of a string with linefeed to standard console. Pay attention! If the string is also used as a key object, this will result in the output of a linefeed to the console assigned to the key.

Parameters:
string - auszugebender String