sota
Class ASCLogger

java.lang.Object
  extended by sota.ASCLogger

public class ASCLogger
extends java.lang.Object

Übernimmt die Logging-Funktionalität während der Testläufe für Java-Programme. Spezifikation des Logfiles Block: 1. 00xxxxxxx xxxxxxxx xxxxxxxx xxxxxxx -> 30bit-Integer codiert PathID (max > 1 Milliarde) 2. 01xxxxxx xxxxxxxx xxxxxxxx xxxxxxxx -> 30bit-Integer codiert ID (max > 1 Milliarden) [ 3. 10yyyyyy xxxxxxxx xxxxxxxx xxxxxxxx -> 6bit kodiert #Boolatome, 24bit Boolatome; false = 0, true = 1 [ xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx weitere 32bit Boolatome ] ] [ 4. 11xxxxxx xxxxxxxx xxxxxxxx xxxxxxxx -> noch undefiniert ] 0xC0 = 11000000 0x80 = 10000000 0x40 = 01000000


Field Summary
private static ASCLogger ascLogger
           
private static boolean badFileName
           
private static int booleans
           
private static int DESC
           
private static boolean fileExists
           
private static boolean INFO
           
private static java.lang.String iniFile
           
private static int ISCHEME
           
private static java.lang.String iSchemeName
           
private static int nrBooleans
           
private static java.io.FileOutputStream os
           
private static int PROJECT
           
private static java.lang.String projectName
           
private static int TESTCASE
           
private static java.lang.String testDesc
           
private static java.lang.String testName
           
private static int timeStamp
           
private static boolean VERBOSE
           
 
Constructor Summary
ASCLogger()
           
 
Method Summary
protected  void finalize()
           
static int getTimeStamp()
           
private static void init()
          Initalisierung des Loggers
private static void init(java.lang.String logFile)
           
private static byte[] int2byte(int a)
          wandelt Integer in Bytearray um
static void log(boolean b)
           
private static void log(byte[] b)
          schreibt ein Byte-Array in das Logfile
static void log(int a)
          loggt ein Integer
static void log(int a, int b)
          loggt ein Integer mit Zeitstempel
static void logBooleans()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ascLogger

private static ASCLogger ascLogger

badFileName

private static boolean badFileName

booleans

private static int booleans

DESC

private static final int DESC
See Also:
Constant Field Values

fileExists

private static boolean fileExists

INFO

private static boolean INFO

iniFile

private static java.lang.String iniFile

ISCHEME

private static final int ISCHEME
See Also:
Constant Field Values

iSchemeName

private static java.lang.String iSchemeName

nrBooleans

private static int nrBooleans

os

private static java.io.FileOutputStream os

PROJECT

private static final int PROJECT
See Also:
Constant Field Values

projectName

private static java.lang.String projectName

TESTCASE

private static final int TESTCASE
See Also:
Constant Field Values

testDesc

private static java.lang.String testDesc

testName

private static java.lang.String testName

timeStamp

private static int timeStamp

VERBOSE

private static boolean VERBOSE
Constructor Detail

ASCLogger

public ASCLogger()
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getTimeStamp

public static int getTimeStamp()

init

private static void init()
Initalisierung des Loggers


init

private static void init(java.lang.String logFile)

int2byte

private static byte[] int2byte(int a)
wandelt Integer in Bytearray um


log

public static void log(boolean b)

log

private static void log(byte[] b)
schreibt ein Byte-Array in das Logfile


log

public static void log(int a)
loggt ein Integer


log

public static void log(int a,
                       int b)
loggt ein Integer mit Zeitstempel


logBooleans

public static void logBooleans()

main

public static void main(java.lang.String[] args)