Package chemaxon.descriptors.scalars
Class LogP
- java.lang.Object
-
- chemaxon.descriptors.MolecularDescriptor
-
- chemaxon.descriptors.ScalarDescriptor
-
- chemaxon.descriptors.scalars.LogP
-
- All Implemented Interfaces:
Cloneable
@PublicAPI public class LogP extends ScalarDescriptor
Implements LogP value as a scalar descriptor.- Since:
- JChem 2.2
-
-
Field Summary
-
Fields inherited from class chemaxon.descriptors.ScalarDescriptor
descrValue
-
Fields inherited from class chemaxon.descriptors.MolecularDescriptor
params
-
-
Constructor Summary
Constructors Constructor Description LogP()
Creates a new, empty logP descriptor.LogP(ScalarDescriptor sd)
Copy constructor.LogP(SDParameters params)
Creates a new instance according to the parameters given.LogP(String params)
Creates a new instance according to the parameters given.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MolecularDescriptor
clone()
Creates a new instance with identical internal state.String[]
generate(Molecule m)
Creates the LogP descriptor for the given Molecule.String
getName()
Gets the name of the LogP descriptor object.String
getParametersClassName()
Gets the name of the parameters class corresponding to the descriptor.String
getShortName()
Gets the short name of the descriptor.boolean
needsConfig()
Indicates if class takes parameters from configuration file.void
setParameters(String parameters)
Sets the parameters of an already createdLogP
object.-
Methods inherited from class chemaxon.descriptors.ScalarDescriptor
clear, fromData, fromFloatArray, fromString, getDefaultDissimilarityMetricThresholds, getDefaultThreshold, getDissimilarity, getDissimilarity, getDissimilarityMetrics, getLowerBound, set, setParameters, toData, toDecimalString, toFloatArray, toString
-
Methods inherited from class chemaxon.descriptors.MolecularDescriptor
generate, getAtomSetColors, getAtomSetIndexes, getAtomSetNames, getDefaultMetricIndex, getDissimilarityMetricIndex, getMetricIndex, getMetricName, getMetricName, getNumberOfMetrics, getNumberOfWeights, getParameters, getThreshold, getThreshold, main, newInstance, newInstance, newInstanceFromXML, newInstanceSupplier, setScreeningConfiguration, toBinaryString
-
-
-
-
Constructor Detail
-
LogP
public LogP()
Creates a new, empty logP descriptor.
-
LogP
public LogP(SDParameters params)
Creates a new instance according to the parameters given.- Parameters:
params
- parameters
-
LogP
public LogP(String params)
Creates a new instance according to the parameters given.- Parameters:
params
- parameter settings
-
LogP
public LogP(ScalarDescriptor sd)
Copy constructor. An identical copy of theScalarDescriptor
passed is created. The old and the new instances share the sameLogPParameters
object.- Parameters:
sd
- a descriptor to be copied
-
-
Method Detail
-
clone
public MolecularDescriptor clone()
Creates a new instance with identical internal state.- Overrides:
clone
in classScalarDescriptor
- Returns:
- the newly copied object
-
getName
public String getName()
Gets the name of the LogP descriptor object. The name is not the same as the class name, but nicer, and more meaningful for end-users too.- Overrides:
getName
in classScalarDescriptor
- Returns:
- the nice, external name for logD descriptor class objects
-
getShortName
public String getShortName()
Gets the short name of the descriptor.- Overrides:
getShortName
in classScalarDescriptor
- Returns:
- the short name used in text outputs (tables etc.)
-
setParameters
public void setParameters(String parameters) throws MDParametersException
Sets the parameters of an already createdLogP
object.- Overrides:
setParameters
in classScalarDescriptor
- Parameters:
parameters
- parameter settings for the descriptor- Throws:
MDParametersException
- any XML error
-
getParametersClassName
public String getParametersClassName()
Gets the name of the parameters class corresponding to the descriptor.- Overrides:
getParametersClassName
in classScalarDescriptor
- Returns:
- the name of the parameters class
-
needsConfig
public boolean needsConfig()
Indicates if class takes parameters from configuration file.- Overrides:
needsConfig
in classMolecularDescriptor
- Returns:
- false
-
generate
public String[] generate(Molecule m) throws MDGeneratorException
Creates the LogP descriptor for the given Molecule. Calls the generator created by the correspondingLogPParameters
class.- Overrides:
generate
in classScalarDescriptor
- Returns:
- property names set in the molecule passed during generation
- Throws:
MDGeneratorException
- when failed to generate descriptor
-
-