|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.plugin.CalculatorPlugin
chemaxon.marvin.calculations.AlignmentPlugin
public class AlignmentPlugin
Plugin layer for the AlignmentAPI
| Field Summary | |
|---|---|
static int |
STEP_DEFAULT
|
| Fields inherited from class chemaxon.marvin.plugin.CalculatorPlugin |
|---|
ATOM, BLUE, CALCRGB_OFF, COVALENT_HYDRATION_ERROR_REMARK, CRITICAL_ERROR_MSG, EPSILON, INCORRECT_AROMATIC_NITROGEN_REMARK, INSTABLE_TAUTOMERIC_FORM_REMARK, licenseEnvironment, MOLECULE, MOLECULES, NAN, PLUGIN_CLASS_KEY, PLUGIN_DIR, RED |
| Constructor Summary | |
|---|---|
AlignmentPlugin()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getProductName()
Returns the product identifier of the plugin as given by LicenseManager. |
Molecule |
getResultMolecule()
Returns the result molecule for display. |
java.lang.Object[] |
getResultTypes()
Returns the result types. |
double |
getVolumeTanimoto()
|
java.lang.String |
getWarningMessage()
Returns the calculation warning information message. |
boolean |
handlesMultiFragmentMolecules()
Returns true if the plugin handles multifragment molecules,
false otherwise. |
boolean |
run()
Runs the tool. |
void |
setAccuracyMode(AlignmentAccuracyMode acc)
|
protected void |
setInputMolecule(Molecule mol)
Sets the input molecule. |
void |
setMinimumCommonSize(int mcsSize)
This is used only if AlignmentPreset.MCS is selected |
void |
setParameters(java.util.Properties params)
Sets the input parameters for the plugin. |
void |
setProgressMonitor(chemaxon.common.util.MProgressMonitor pmon)
Sets a progress observer to be used in run() to display progress status. |
void |
setRingFlexibility(int size,
int rotBondCount)
If BOTH the two parameters is true for the ring then the ring is treated flexible. |
void |
standardize(Molecule mol)
Standardizes the molecule by performing the transformations necessary to run the plugin (aromatize, dehydrogenize, bring nitro groups to common form, ...). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int STEP_DEFAULT
| Constructor Detail |
|---|
public AlignmentPlugin()
| Method Detail |
|---|
public boolean handlesMultiFragmentMolecules()
CalculatorPlugintrue if the plugin handles multifragment molecules,
false otherwise. In the latter case the plugin takes the
fragment with more atoms if a multifragment molecule is given as input.
The default implementation returns false.
handlesMultiFragmentMolecules in class CalculatorPluginpublic java.lang.String getProductName()
CalculatorPluginLicenseManager.
The name is used by the CalculatorPlugin.isLicensed() method.
getProductName in class CalculatorPluginpublic java.lang.Object[] getResultTypes()
getResultTypes in class CalculatorPlugin
protected void setInputMolecule(Molecule mol)
throws PluginException
CalculatorPlugin
setInputMolecule in class CalculatorPluginmol - is the input molecule
PluginException - on errorpublic void setProgressMonitor(chemaxon.common.util.MProgressMonitor pmon)
run() to display progress status.
Short calculations may ignore the observer object.
The default implementation does nothing.
setProgressMonitor in class CalculatorPluginpmon - is the progress monitor, may be nullpublic java.lang.String getWarningMessage()
getWarningMessage in class CalculatorPlugin
public Molecule getResultMolecule()
throws PluginException
CalculatorPluginMolAtom.getExtraLabel()).
Molecular results are stored in molecule properties
with keys being the result types
(Molecule.getProperty(String)).
getResultMolecule in class CalculatorPluginPluginException - on error
public void setAccuracyMode(AlignmentAccuracyMode acc)
throws PluginException
PluginException
public void setRingFlexibility(int size,
int rotBondCount)
size - atomcount above the ring is flexiblerotBondCount - rotatable bond count in the ring above which the ring is flexible
public void setMinimumCommonSize(int mcsSize)
throws PluginException
mcsSize -
PluginException
public void setParameters(java.util.Properties params)
throws PluginException
setParameters in class CalculatorPluginparams - is the parameter table
PluginException - on error
public boolean run()
throws PluginException
CalculatorPlugin
run in class CalculatorPluginPluginException - on errorCalculatorPlugin.getErrorMessage()public double getVolumeTanimoto()
public void standardize(Molecule mol)
CalculatorPlugin[O-:1][N+:2] >> [O:1]=[N:2], [NH1+:1][O-:2] >> [H:3][O:2][N:1]
[#6][S+:1]([#6])[#8-:2] >> [#6][S:1]([#6])=[O:2]
standardize in class CalculatorPluginmol - is the molecule to be standardized
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||