toxTree.tree.rules
Class LookupFile

java.lang.Object
  extended by toxTree.tree.rules.LookupFile
All Implemented Interfaces:
java.io.Serializable, ILookupFile

public class LookupFile
extends java.lang.Object
implements ILookupFile, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  boolean checkAromaticity
           
protected  java.io.File file
           
protected  java.util.ArrayList<java.lang.String> fileCache
           
protected  java.io.FileInputStream fStream
           
protected  TTLogger logger
           
protected  boolean useCache
           
 
Constructor Summary
LookupFile(java.io.File file)
           
LookupFile(java.lang.String filename)
           
 
Method Summary
 boolean find(org.openscience.cdk.interfaces.IAtomContainer mol)
           
 java.io.File getFile()
           
 TTLogger getLogger()
           
 boolean isCheckAromaticity()
           
 boolean isEnabled()
           
 boolean isUseCache()
           
 org.openscience.cdk.interfaces.IAtomContainer lookup(org.openscience.cdk.interfaces.IAtomContainer mol)
           
 void setCheckAromaticity(boolean checkAromaticity)
           
 void setFile(java.io.File file)
           
 void setLogger(TTLogger logger)
           
 void setUseCache(boolean useCache)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected java.io.File file

fileCache

protected transient java.util.ArrayList<java.lang.String> fileCache

useCache

protected boolean useCache

checkAromaticity

protected boolean checkAromaticity

fStream

protected transient java.io.FileInputStream fStream

logger

protected transient TTLogger logger
Constructor Detail

LookupFile

public LookupFile(java.lang.String filename)
           throws java.io.IOException
Throws:
java.io.IOException

LookupFile

public LookupFile(java.io.File file)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

find

public boolean find(org.openscience.cdk.interfaces.IAtomContainer mol)
             throws DecisionMethodException
Specified by:
find in interface ILookupFile
Throws:
DecisionMethodException

lookup

public org.openscience.cdk.interfaces.IAtomContainer lookup(org.openscience.cdk.interfaces.IAtomContainer mol)
                                                     throws DecisionMethodException,
                                                            org.openscience.cdk.exception.CDKException
Throws:
DecisionMethodException
org.openscience.cdk.exception.CDKException

getFile

public java.io.File getFile()
Specified by:
getFile in interface ILookupFile

setFile

public void setFile(java.io.File file)
Specified by:
setFile in interface ILookupFile

isUseCache

public boolean isUseCache()

setUseCache

public void setUseCache(boolean useCache)

getLogger

public TTLogger getLogger()

setLogger

public void setLogger(TTLogger logger)

isCheckAromaticity

public boolean isCheckAromaticity()

setCheckAromaticity

public void setCheckAromaticity(boolean checkAromaticity)

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface ILookupFile

size

public int size()
Specified by:
size in interface ILookupFile


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.