simulator
Class SimulatorDebug
java.lang.Object
|
+--simulator.SimulatorDebug
- public class SimulatorDebug
- extends java.lang.Object
Klasse zum Speichern und Ausgeben von Debugmeldungen
eines Simulator-Schrittes
- Author:
- Michael Goemann
Field Summary |
protected static int |
debugLvl
Klassenfeld zum Vorhalten des Debuglevels
Range von 0 bis 4 |
protected static java.util.ArrayList |
msg
Klassenfeld, f?r Aufnahme der Debugmeldungen. |
Constructor Summary |
protected |
SimulatorDebug()
Konstruktor |
protected |
SimulatorDebug(int _debugLvl)
Konstruktor mit Debuglvl (von Sumulator.java aus) |
Method Summary |
protected void |
addMsg(java.lang.String _msg,
int _debugLvl)
Methode zum Hinzuf?gen einer Nachricht zu dem Debugstring |
protected void |
clear()
Methode zum L?schen der Debugmeldungsliste |
protected java.lang.String[] |
getWhole()
Methode, die die gesamten Debugmeldungen eines Schrittes
als normales Array je nach eingestelltem Debuglevel zur?ckgibt |
protected void |
setDebugLvl(int _debugLvl)
Methode zum Setzen des Debuglevels |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
msg
protected static java.util.ArrayList msg
- Klassenfeld, f?r Aufnahme der Debugmeldungen.
static, d.h. als Klassenfeld, damit u.U.von allen Klassen aus
einfach erreichbar.
debugLvl
protected static int debugLvl
- Klassenfeld zum Vorhalten des Debuglevels
Range von 0 bis 4
SimulatorDebug
protected SimulatorDebug(int _debugLvl)
- Konstruktor mit Debuglvl (von Sumulator.java aus)
- Parameters:
_debugLvl
- zum Debuglevel setzen
SimulatorDebug
protected SimulatorDebug()
- Konstruktor
getWhole
protected java.lang.String[] getWhole()
- Methode, die die gesamten Debugmeldungen eines Schrittes
als normales Array je nach eingestelltem Debuglevel zur?ckgibt
- Returns:
- Array von Strings
addMsg
protected void addMsg(java.lang.String _msg,
int _debugLvl)
- Methode zum Hinzuf?gen einer Nachricht zu dem Debugstring
setDebugLvl
protected void setDebugLvl(int _debugLvl)
- Methode zum Setzen des Debuglevels
- Parameters:
_debugLvl
- der Debuglevel halt
clear
protected void clear()
- Methode zum L?schen der Debugmeldungsliste