ambit2.core.processors.structure
Class AbstractPropertyGenerator<P>

Package class diagram package AbstractPropertyGenerator
java.lang.Object
  extended by ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,ambit2.base.interfaces.IStructureRecord>
      extended by ambit2.core.processors.structure.AbstractPropertyGenerator<P>
All Implemented Interfaces:
ambit2.base.interfaces.IProcessor<ambit2.base.interfaces.IStructureRecord,ambit2.base.interfaces.IStructureRecord>, java.io.Serializable

public abstract class AbstractPropertyGenerator<P>
extends ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,ambit2.base.interfaces.IStructureRecord>

Transforms IStructureRecord into IAtomContainer , calculates some property and assigns it to IStructureRecord

See Also:
Serialized Form

Field Summary
protected  MoleculeReader reader
           
 
Fields inherited from class ambit2.base.processors.DefaultAmbitProcessor
enabled, logger, propertyChangeSupport
 
Constructor Summary
AbstractPropertyGenerator()
           
 
Method Summary
protected abstract  P generateProperty(org.openscience.cdk.interfaces.IAtomContainer atomContainer)
           
protected  org.openscience.cdk.interfaces.IAtomContainer getAtomContainer(ambit2.base.interfaces.IStructureRecord target)
           
protected abstract  ambit2.base.data.Property getProperty()
           
protected abstract  ambit2.base.data.Property getTimeProperty()
           
 ambit2.base.interfaces.IStructureRecord process(ambit2.base.interfaces.IStructureRecord target)
           
 
Methods inherited from class ambit2.base.processors.DefaultAmbitProcessor
addPropertyChangeListener, addPropertyChangeListener, getID, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reader

protected MoleculeReader reader
Constructor Detail

AbstractPropertyGenerator

public AbstractPropertyGenerator()
Method Detail

process

public ambit2.base.interfaces.IStructureRecord process(ambit2.base.interfaces.IStructureRecord target)
                                                throws ambit2.base.exceptions.AmbitException
Throws:
ambit2.base.exceptions.AmbitException

getProperty

protected abstract ambit2.base.data.Property getProperty()

getTimeProperty

protected abstract ambit2.base.data.Property getTimeProperty()

generateProperty

protected abstract P generateProperty(org.openscience.cdk.interfaces.IAtomContainer atomContainer)
                               throws ambit2.base.exceptions.AmbitException
Throws:
ambit2.base.exceptions.AmbitException

getAtomContainer

protected org.openscience.cdk.interfaces.IAtomContainer getAtomContainer(ambit2.base.interfaces.IStructureRecord target)
                                                                  throws ambit2.base.exceptions.AmbitException
Throws:
ambit2.base.exceptions.AmbitException