Package chemaxon.descriptors
Class MDWriter
java.lang.Object
chemaxon.descriptors.MDWriter
- Direct Known Subclasses:
MDDBWriter
,MDFileWriter
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.- Since:
- JChem 2.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
Closes down the descriptor output stream.abstract MDParameters
getMDParameters
(int id) Gets the actual parameter settings of the specified component.abstract void
Generates theMDSet
for the givenMolecule
and writes the descriptors into the output with the given identifier.
-
Field Details
-
mdNames
The name of the Molecular Descriptors
-
-
Constructor Details
-
MDWriter
protected MDWriter()Deafult constructor. -
MDWriter
protected MDWriter(int descriptorCount) Creates and initializes anMDWriter
object which handles the given number ofMolecularDescriptor
s.- Parameters:
descriptorCount
- number of components of theMDSet
written
-
-
Method Details
-
getMDParameters
Gets the actual parameter settings of the specified component.- Parameters:
id
- component index- Returns:
- parameter settings
- Since:
- JChem 2.1
-
put
Generates theMDSet
for the givenMolecule
and writes the descriptors into the output with the given identifier. Note, that themol
parameter is not final, because descriptors generated are stored in this object (as properties).- Parameters:
mol
- theMolecule
object to be writtenid
- unique identifier of the molecule- Throws:
MDWriterException
- all exceptions (mainly io) are reinterpreted
-
close
Closes down the descriptor output stream. After this, no more operation is permitted on the stream. Callingclose()
guarantees that all data put previously are permanently saved in the stream.- Throws:
MDWriterException
- all exceptions (mainly io) are reinterpreted
-