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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()Closes down the descriptor output stream.abstract MDParametersgetMDParameters(int id) Gets the actual parameter settings of the specified component.abstract voidGenerates theMDSetfor the givenMoleculeand 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 anMDWriterobject which handles the given number ofMolecularDescriptors.- Parameters:
descriptorCount- number of components of theMDSetwritten
-
-
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 theMDSetfor the givenMoleculeand writes the descriptors into the output with the given identifier. Note, that themolparameter is not final, because descriptors generated are stored in this object (as properties).- Parameters:
mol- theMoleculeobject 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
-