edu.iastate.metnet.aracyc
Class AttributeFileReader

java.lang.Object
  extended by edu.iastate.metnet.aracyc.AbstractAracycFileReader
      extended by edu.iastate.metnet.aracyc.AttributeFileReader
All Implemented Interfaces:
IAracycFileReader
Direct Known Subclasses:
ClassesDatReader, CompoundsDatReader

public class AttributeFileReader
extends AbstractAracycFileReader

read in the attribute like file from aracyc

Author:
Jie Li

Field Summary
(package private) static org.apache.log4j.Logger logger
          log4j facility
(package private)  int PARSE
          file line scanner status
(package private)  int SEARCH
          file line scanner status for one unique-id record
 
Constructor Summary
AttributeFileReader()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  java.util.Map parseFile(java.util.LinkedList lines)
          parse the file lines and turn into maps
 java.util.Map read(java.lang.String filename)
          read in the file and turn into map data structure like ATP=> {UID=>[ATP], SYNONYM=>[ATPase, ADP]}
 
Methods inherited from class edu.iastate.metnet.aracyc.AbstractAracycFileReader
getFileLines, getFileLines, print, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
log4j facility


SEARCH

final int SEARCH
file line scanner status for one unique-id record

See Also:
Constant Field Values

PARSE

final int PARSE
file line scanner status

See Also:
Constant Field Values
Constructor Detail

AttributeFileReader

public AttributeFileReader()
Method Detail

read

public java.util.Map read(java.lang.String filename)
read in the file and turn into map data structure like ATP=> {UID=>[ATP], SYNONYM=>[ATPase, ADP]}

Specified by:
read in interface IAracycFileReader
Overrides:
read in class AbstractAracycFileReader
Parameters:
filename - filename of the dump file,
Returns:
the data structure

parseFile

protected java.util.Map parseFile(java.util.LinkedList lines)
parse the file lines and turn into maps

Parameters:
lines - the line read from the file
Returns:
the map of data

main

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