uk.ac.ebi.intenz.tools.sib.translator
Class SIBEnzymeLogger

java.lang.Object
  extended by uk.ac.ebi.intenz.tools.sib.translator.SIBEnzymeLogger

public class SIBEnzymeLogger
extends Object

This class is used to log translation activities during the parse process.

Version:
1.0 - 08-Apr-2003
Author:
Michael Darsow

Field Summary
static int COMMENTS
           
static int COMMON_NAMES
           
static int OTHER_NAMES
           
static int REACTIONS
           
 
Constructor Summary
SIBEnzymeLogger(String dir, int type, boolean enzymeLogFormat)
          Enables a logger which stores all results in one file.
SIBEnzymeLogger(String dir, String ec)
          Initialises the log file of the given EC.
 
Method Summary
 void add(String before, String after, String ec)
          Adds information to the log file.
 void addOtherNameLog(String nameNotMatching, String set, String ec)
           
 void close()
          Must be called to close the log file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMON_NAMES

public static final int COMMON_NAMES
See Also:
Constant Field Values

REACTIONS

public static final int REACTIONS
See Also:
Constant Field Values

OTHER_NAMES

public static final int OTHER_NAMES
See Also:
Constant Field Values

COMMENTS

public static final int COMMENTS
See Also:
Constant Field Values
Constructor Detail

SIBEnzymeLogger

public SIBEnzymeLogger(String dir,
                       String ec)
Initialises the log file of the given EC.

Parameters:
ec - Used for the file name.

SIBEnzymeLogger

public SIBEnzymeLogger(String dir,
                       int type,
                       boolean enzymeLogFormat)
Enables a logger which stores all results in one file.

Parameters:
dir - Directory of the log file.
type - Type of comparison (see static fields).
enzymeLogFormat -
Method Detail

add

public void add(String before,
                String after,
                String ec)
Adds information to the log file.

Parameters:
before - Not translated string.
after - Translated string.
ec - The EC number.

addOtherNameLog

public void addOtherNameLog(String nameNotMatching,
                            String set,
                            String ec)

close

public void close()
Must be called to close the log file.



Copyright © 2013 EMBL-EBI. All Rights Reserved.