net.sf.octet.model
Interface MoleculeConvertor
- All Known Implementing Classes:
- BasicMoleculeConvertor
- public interface MoleculeConvertor
Transforms a Molecule into a set of
instructions for a RepresentationBuilder. MolculeConvertor
can be used to change a Molecule's form of representation. For example,
if a third party re-implements a performance-optimized RepresentationBuilder
that constructs memory-efficient Molecules, MolculeConvertor
could be used to ensure that other Molecule represesentations are converted
into this more efficient form. Other possible uses include writing molecular
representation to various molecular file formats.
- Author:
- Richard Apodaca
convert
public void convert(Molecule molecule,
RepresentationBuilder builder)
- Converts
molecule into a series of instructions for builder.
- Parameters:
molecule - the molecule to be convertedbuilder - the RepresentationBuilder for constructing the new representation