Package chemaxon.calculations
Class HLBPlugin
java.lang.Object
chemaxon.calculations.CalculatorPlugin
chemaxon.calculations.HLBPlugin
- All Implemented Interfaces:
TaggedCalculator,Licensable
Calculates hydrophilic-lipophilic balance (HLB) of a molecule. The HLB is a measure of the degree to which molecule
hydrophilic or lipophilic, determined by calculating values for the different regions of the molecule, as described
by Griffin. Other methods have been suggested, notably in by Davies.
API usage example:
// Construct the plugin class HLBPlugin plugin = new HLBPlugin(); Molecule mol = ... // Set the input molecule and run calculation plugin.setMolecule(mol); plugin.run(); // Get HLB values plugin.getDaviesHLBValue(); plugin.getGriffinHLBValue();
- Since:
- Marvin 15.4.20
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from class chemaxon.calculations.CalculatorPlugin
CalculatorPlugin.HydrogenData -
Field Summary
Fields inherited from class chemaxon.calculations.CalculatorPlugin
ATOM, BLUE, CALCRGB_OFF, COVALENT_HYDRATION_ERROR_REMARK, CRITICAL_ERROR_MSG, EPSILON, explicitHydrogens, INCORRECT_AROMATIC_NITROGEN_REMARK, INSTABLE_TAUTOMERIC_FORM_REMARK, KEEP_HYDROGENS, keepHydrogens, licenseEnvironment, MOLECULE, MOLECULES, NAN, PLUGIN_CLASS_KEY, PLUGIN_DIR, RED, TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableRequiredHLBValue(boolean r) Sets whether the required HLB value (RHLB) is wanted or not.doubleDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetDaviesHLBValue()instead.doubleReturns the HLB value calculated by Davies method.doubleDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetGriffinHLBValue()instead.doubleReturns the HLB value calculated by Griffin method.doubleDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetHLBValue()instead.doubleReturns the HLB value.Returns the product identifier of the plugin.doubleDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetRequiredHLBValue()instead.doubleReturns the Required HLB value calculated by Chemaxon method.Returns the result item for the specified type and index.getResultAsString(Object type, int index, Object result) Returns the specified result in String format.intReturns the calculation domainCalculatorPlugin.ATOM,CalculatorPlugin.MOLECULEorCalculatorPlugin.MOLECULES.Returns the result molecule for display.Object[]Returns the result types.booleanrun()Runs the tool.protected voidsetInputMolecule(Molecule mol) Sets the input molecule.voidsetParameters(Properties params) Sets the input parameters for the plugin.voidsetRHLB(boolean r) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, useenableRequiredHLBValue(boolean)instead.voidstandardize(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 chemaxon.calculations.CalculatorPlugin
addHeavyAtomLimitChecker, addInputChecker, arrangeHydrogenIncerments, canRepeat, checkLicense, checkMolecule, checkType, containsCoordinateBond, containsMulticenterSgroup, containsPseudoAtom, containsSRUSgroup, create, createModifiedInputMolecule, createStandardizedMolecule, format, format, format, format, getAtomCount, getAtomIndex, getAtomIndexMap, getAtomIndexMapping, getCalcMolecule, getDisplayMolecule, getDocument, getDoublePrecision, getErrorMessage, getExplicitHydrogenData, getInputMolDim, getOriginalMolecule, getpH, getPh, getQueryMoleculeErrorMessage, getRemark, getResult, getResultAsRGB, getResultAsRGB, getResultAsString, getResultCount, getResultCount, getResultDomain, getResultMessage, getResultMolecules, getResultsAsRGB, getResultsAsRGB, getResultsAsString, getResultsAsString, getResultSource, getTypeString, getWarningMessage, handlesMultiFragmentMolecules, isInputMoleculeAromatized, isLicensed, isMsCalc, isMultiThreadedRunEnabled, isNegligibleResult, isOK, isRgrouped, loadPluginClass, removeWhitespace, restoreExplicitHydrogens, setAtomIndexMap, setChemicalTermsArgument, setChemicalTermsParameters, setDoublePrecision, setDoublePrecision, setDoublePrecision, setKeepHydrogens, setLicenseEnvironment, setMolecule, setMolecule, setMolecule, setMolecule, setProgressMonitor, standardizeIonicGroupsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface chemaxon.calculations.api.TaggedCalculator
tags
-
Constructor Details
-
HLBPlugin
public HLBPlugin()
-
-
Method Details
-
setParameters
Description copied from class:CalculatorPluginSets the input parameters for the plugin.- Overrides:
setParametersin classCalculatorPlugin- Parameters:
params- is the parameter table- Throws:
CalculatorPluginException- on error
-
setInputMolecule
Description copied from class:CalculatorPluginSets the input molecule.- Specified by:
setInputMoleculein classCalculatorPlugin- Parameters:
mol- is the input molecule- Throws:
CalculatorPluginException- on error
-
getResultDomain
public int getResultDomain()Description copied from class:CalculatorPluginReturns the calculation domainCalculatorPlugin.ATOM,CalculatorPlugin.MOLECULEorCalculatorPlugin.MOLECULES. for the first result type.- Overrides:
getResultDomainin classCalculatorPlugin- Returns:
- the calculation domain
-
getResultTypes
Description copied from class:CalculatorPluginReturns the result types. The default implementation returnsnull.- Overrides:
getResultTypesin classCalculatorPlugin- Returns:
- the result types
-
getResult
Description copied from class:CalculatorPluginReturns the result item for the specified type and index. The default implementation returnsnull.- Overrides:
getResultin classCalculatorPlugin- Parameters:
type- is the result typeindex- is the result index- Returns:
- the result item for the specified type and index
- Throws:
CalculatorPluginException- if the result cannot be returned- See Also:
-
getResultAsString
public String getResultAsString(Object type, int index, Object result) throws CalculatorPluginException Description copied from class:CalculatorPluginReturns the specified result in String format. The default implementation returnsnull.- Overrides:
getResultAsStringin classCalculatorPlugin- Parameters:
type- is the result typeindex- is the result indexresult- is the result item- Returns:
- the specified result in String format
- Throws:
CalculatorPluginException- if an invalid result item is given
-
getResultMolecule
Description copied from class:CalculatorPluginReturns the result molecule for display. Atomic results are stored in atom extra labels (MolAtom.getExtraLabel()). Molecular results are stored in molecule properties with keys being the result types (MPropHandler.convertToString(MPropertyContainer, String)).- Overrides:
getResultMoleculein classCalculatorPlugin- Returns:
- the result molecule
- Throws:
CalculatorPluginException- on error
-
getProductName
Description copied from class:CalculatorPluginReturns the product identifier of the plugin. For internal use only!- Specified by:
getProductNamein classCalculatorPlugin
-
standardize
Description copied from class:CalculatorPluginStandardizes the molecule by performing the transformations necessary to run the plugin (aromatize, dehydrogenize, bring nitro groups to common form, ...). This implementation performs the following transformations:- aromatization
- nitro group transformation:
[O-:1][N+:2] >> [O:1]=[N:2],[NH1+:1][O-:2] >> [H:3][O:2][N:1] - sulphynil group transformation:
[#6][S+:1]([#6])[#8-:2] >> [#6][S:1]([#6])=[O:2]
- Overrides:
standardizein classCalculatorPlugin- Parameters:
mol- is the molecule to be standardized
-
run
Description copied from class:CalculatorPluginRuns the tool.- Specified by:
runin classCalculatorPlugin- Returns:
- true if the calculation was successful, false on calculation problems
- Throws:
CalculatorPluginException- on error- See Also:
-
getHlbValue
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetHLBValue()instead.Returns the HLB value. Consensus model using Davies and Griffin's models.- Returns:
- the HLB value
- Throws:
IllegalStateException- if run() method was not called
-
getHLBValue
public double getHLBValue()Returns the HLB value. Consensus model using Davies and Griffin's models.- Returns:
- the HLB value
- Throws:
IllegalStateException- if run() method was not called
-
getDaviesHlbValue
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetDaviesHLBValue()instead.Returns the HLB value calculated by Davies method.- Returns:
- the Davies HLB value
- Throws:
IllegalStateException- if run() method was not called
-
getDaviesHLBValue
public double getDaviesHLBValue()Returns the HLB value calculated by Davies method.- Returns:
- the Davies HLB value
- Throws:
IllegalStateException- if run() method was not called
-
getGriffinHlbValue
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetGriffinHLBValue()instead.Returns the HLB value calculated by Griffin method.- Returns:
- the Griffin HLB value
- Throws:
IllegalStateException- if run() method was not called
-
getGriffinHLBValue
public double getGriffinHLBValue()Returns the HLB value calculated by Griffin method.- Returns:
- the Griffin HLB value
- Throws:
IllegalStateException- if run() method was not called
-
getRequiredHlbValue
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2027) public double getRequiredHlbValue()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, usegetRequiredHLBValue()instead.Returns the Required HLB value calculated by Chemaxon method.- Returns:
- the Required HLB value
- Throws:
IllegalStateException- if run() method was not called or when enableRequiredHLBValue(true) was not called before running the calculation
-
getRequiredHLBValue
public double getRequiredHLBValue()Returns the Required HLB value calculated by Chemaxon method.- Returns:
- the Required HLB value
- Throws:
IllegalStateException- if run() method was not called or when enableRequiredHLBValue(true) was not called before running the calculation- See Also:
-
setRHLB
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, useenableRequiredHLBValue(boolean)instead.Sets whether the required HLB value (RHLB) is wanted or not. RHLB is not calculated by default. -
enableRequiredHLBValue
public void enableRequiredHLBValue(boolean r) Sets whether the required HLB value (RHLB) is wanted or not. RHLB is not calculated by default.
-
HLBPluginclass directly instead.