|
|||||||||
| 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.MajorMicrospeciesAccessorPlugin
public abstract class MajorMicrospeciesAccessorPlugin
Common base class for all plugins with possible major microspecies input.
For concurrent plugin example applications using ChemAxon's concurrent framework, refer to the Concurrent plugin examples.
| Field Summary | |
|---|---|
protected chemaxon.calculations.Ionizer |
ionizer
|
| 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, NAN, PLUGIN_CLASS_KEY, PLUGIN_DIR, RED |
| Constructor Summary | |
|---|---|
MajorMicrospeciesAccessorPlugin()
Constructor. |
|
| Method Summary | |
|---|---|
void |
checkMolecule(Molecule mol)
Checks the input molecule. |
protected Molecule |
createModifiedInputMolecule(Molecule mol)
Returns the molecule form with largest distribution. |
java.lang.String |
getErrorMessage()
Returns the calculation error information message or the empty string if there is no error. |
java.lang.String |
getIonizerErrorMessage()
Returns the calculation error information message or the empty string if there is no error. |
double |
getpH()
Returns the pH where the major microspecies should be taken. |
boolean |
isLicensed()
Returns true if the plugin is licensed. |
void |
setParameters(java.util.Properties params)
Sets the input parameters for the plugin. |
void |
setpH(double pH)
Sets the pH: major microspecies on given pH is taken as input molecule if set to Double.NaN then the input molecule is taken as it is. |
void |
standardize(Molecule mol)
Standardizes the molecule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected chemaxon.calculations.Ionizer ionizer
| Constructor Detail |
|---|
public MajorMicrospeciesAccessorPlugin()
| Method Detail |
|---|
public boolean isLicensed()
CalculatorPlugintrue if the plugin is licensed. Implement this only if you want to sell your plugin and
protect it with a license key. The default implementation always returns true which means that
the plugin is free: no license key is required. This method returns only information about the licensing,
license checking has to be implemented separately.
isLicensed in interface chemaxon.license.LicensableisLicensed in class CalculatorPlugintrue if the plugin is licensed
public void setParameters(java.util.Properties params)
throws PluginException
setParameters in class CalculatorPluginparams - is the parameter table
PluginException - on errorpublic void setpH(double pH)
Double.NaN then the input molecule is taken as it is.
pH - is the pH valuepublic double getpH()
Double.NaN if no microspecies calculation required.
getpH in class CalculatorPluginDouble.NaN if no microspecies calculationprotected final Molecule createModifiedInputMolecule(Molecule mol)
getpH() returns a value different from Double.NaN,
otherwise returns the input molecule itself.
createModifiedInputMolecule in class CalculatorPluginmol - is the input molecule
PluginException - on access errorpublic java.lang.String getErrorMessage()
getErrorMessage in class CalculatorPluginpublic java.lang.String getIonizerErrorMessage()
public void checkMolecule(Molecule mol)
throws PluginException
checkMolecule in class CalculatorPluginmol - is the input molecule
PluginException - with error message for the user if the molecule is refusedpublic void standardize(Molecule mol)
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 | ||||||||