|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MDWriter
public abstract class MDWriter
Base class definitions for MDSet output streams.
All kinds of descriptors (like fingerprints, pharmacophore fingerprints)
are handled in the same, transparent manner. Derived classes may differ
in the type of output to be written, for instance database, readable text
file, binary file etc.
| Field Summary | |
|---|---|
protected java.lang.String[] |
mdNames
The name of the Molecular Descriptors |
| Constructor Summary | |
|---|---|
protected |
MDWriter()
Deafult constructor. |
protected |
MDWriter(int descriptorCount)
Creates and initializes an MDWriter object which
handles the given number of MolecularDescriptors. |
| Method Summary | |
|---|---|
abstract void |
close()
Closes down the descriptor output stream. |
abstract MDParameters |
getMDParameters(int id)
Gets the actual parameter settings of the specified component. |
abstract void |
put(Molecule mol,
int id)
Generates the MDSet for the given Molecule
and writes the descriptors into the output with the given identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] mdNames
| Constructor Detail |
|---|
protected MDWriter()
protected MDWriter(int descriptorCount)
MDWriter object which
handles the given number of MolecularDescriptors.
descriptorCount - number of components of the MDSet
written| Method Detail |
|---|
public abstract MDParameters getMDParameters(int id)
id - component index
public abstract void put(Molecule mol,
int id)
throws MDWriterException
MDSet for the given Molecule
and writes the descriptors into the output with the given identifier.
Note, that the mol parameter is not final, because
descriptors generated are stored in this object (as properties).
mol - the Molecule object to be writtenid - unique identifier of the molecule
MDWriterException - all exceptions (mainly io) are reinterpreted
public abstract void close()
throws MDWriterException
close() guarantees that all
data put previously are permanently saved in the stream.
MDWriterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||