toxTree.io.batch
Class ToxTreeBatchProcessing

java.lang.Object
  extended by java.util.Observable
      extended by toxTree.io.batch.BatchProcessing
          extended by toxTree.io.batch.ChemObjectBatchProcessing
              extended by toxTree.io.batch.ToxTreeBatchProcessing
All Implemented Interfaces:
java.io.Serializable, IBatchProcessing

public class ToxTreeBatchProcessing
extends ChemObjectBatchProcessing

A ChemObjectBatchProcessing descendant , where processing is performed by IDecisionMethod

Author:
Nina Jeliazkova Modified 2008-3-22
See Also:
Serialized Form

Field Summary
protected  IDecisionMethod decisionMethod
           
protected  java.lang.String decisionMethodFile
           
protected  IDecisionResult decisionResult
           
 
Fields inherited from class toxTree.io.batch.ChemObjectBatchProcessing
chemObject, CSV_INDEX, extensions, extensions_descr, reader, SDF_INDEX, SMI_INDEX, TXT_INDEX, writer
 
Fields inherited from class toxTree.io.batch.BatchProcessing
configFile, dateCreated, dateLastSaved, deleteConfigOnSuccess, inputFile, logger, MSG_CANTCREATEFILE, MSG_ERRORCOUNTING, MSG_ERRORSAVE, MSG_FILEDONOTEXISTS, MSG_OPEN, MSG_UNSUPPORTEDFORMAT, outputFile, saveStateFrequency, status, STATUS_ABORTED, STATUS_FINISHED, STATUS_NOTINITIALIZED, STATUS_NOTSTARTED, STATUS_PAUSED, STATUS_RUNNING, statusMsg, tmpDir
 
Constructor Summary
ToxTreeBatchProcessing()
           
ToxTreeBatchProcessing(java.io.File input, java.io.File output)
           
ToxTreeBatchProcessing(java.lang.String input, java.lang.String output)
           
 
Method Summary
 IDecisionMethod getDecisionMethod()
           
 void processRecord()
           
 void saveConfig()
           
 void saveConfig(java.io.OutputStream out)
           
 void setDecisionMethod(IDecisionMethod decisionMethod)
           
 void start()
           
 void writeRecord()
           
 
Methods inherited from class toxTree.io.batch.ChemObjectBatchProcessing
closeInputFile, closeOutputFile, createOutputFile, getReader, hasNextRecord, openInputFile, readRecord
 
Methods inherited from class toxTree.io.batch.BatchProcessing
cancel, close, createConfigFile, equals, getConfigFile, getDateCreated, getDateLastProcessed, getInputFile, getOutputFile, getReadRecordsCount, getSaveStateFrequency, getStatus, getTempDir, getWrittenRecordsCount, isCancelled, isPaused, isRunning, isStatus, loadConfig, pause, setConfigFile, setSaveStateFrequency, setStatus, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

decisionMethod

protected transient IDecisionMethod decisionMethod

decisionResult

protected IDecisionResult decisionResult

decisionMethodFile

protected java.lang.String decisionMethodFile
Constructor Detail

ToxTreeBatchProcessing

public ToxTreeBatchProcessing()

ToxTreeBatchProcessing

public ToxTreeBatchProcessing(java.lang.String input,
                              java.lang.String output)
                       throws BatchProcessingException
Parameters:
input -
output -
Throws:
BatchProcessingException

ToxTreeBatchProcessing

public ToxTreeBatchProcessing(java.io.File input,
                              java.io.File output)
                       throws BatchProcessingException
Throws:
BatchProcessingException
Method Detail

processRecord

public void processRecord()
                   throws BatchProcessingException
Specified by:
processRecord in interface IBatchProcessing
Overrides:
processRecord in class ChemObjectBatchProcessing
Throws:
BatchProcessingException

writeRecord

public void writeRecord()
                 throws BatchProcessingException
Specified by:
writeRecord in interface IBatchProcessing
Overrides:
writeRecord in class ChemObjectBatchProcessing
Throws:
BatchProcessingException

getDecisionMethod

public IDecisionMethod getDecisionMethod()
Returns:
Returns the decisionMethod.

setDecisionMethod

public void setDecisionMethod(IDecisionMethod decisionMethod)
Parameters:
decisionMethod - The decisionMethod to set.

start

public void start()
           throws BatchProcessingException
Specified by:
start in interface IBatchProcessing
Overrides:
start in class ChemObjectBatchProcessing
Throws:
BatchProcessingException

saveConfig

public void saveConfig()
                throws BatchProcessingException
Specified by:
saveConfig in interface IBatchProcessing
Overrides:
saveConfig in class BatchProcessing
Throws:
BatchProcessingException

saveConfig

public void saveConfig(java.io.OutputStream out)
                throws BatchProcessingException
Overrides:
saveConfig in class BatchProcessing
Throws:
BatchProcessingException


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