Class LogD

All Implemented Interfaces:
Cloneable

@PublicAPI public class LogD extends ScalarDescriptor
Implements logD value as a scalar descriptor.
Since:
JChem 2.2
See Also:
  • LogDPredictor
  • Constructor Details

    • LogD

      public LogD()
      Creates a new, empty logD descriptor.
    • LogD

      public LogD(LDParameters params)
      Creates a new instance according to the parameters given.
      Parameters:
      params - parameters
    • LogD

      public LogD(String params)
      Creates a new instance according to the parameters given.
      Parameters:
      params - parameter settings
    • LogD

      public LogD(ScalarDescriptor sd)
      Copy constructor. An identical copy of the ScalarDescriptor passed is created. The old and the new instances share the same LDParameters object.
      Parameters:
      sd - a descriptor to be copied
  • Method Details

    • clone

      public MolecularDescriptor clone()
      Creates a new instance with identical internal state.
      Overrides:
      clone in class ScalarDescriptor
      Returns:
      the newly copied object
    • getName

      public String getName()
      Gets the name of the LogD descriptor object. The name is not the same as the class name, but nicer, and more meaningful for end-users too.
      Overrides:
      getName in class ScalarDescriptor
      Returns:
      the nice, external name for logD descriptor class objects
    • getShortName

      public String getShortName()
      Gets the short name of the descriptor.
      Overrides:
      getShortName in class ScalarDescriptor
      Returns:
      the short name used in text outputs (tables etc.)
    • setParameters

      public void setParameters(String parameters) throws MDParametersException
      Sets the parameters of an already created LogD object.
      Overrides:
      setParameters in class ScalarDescriptor
      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 class ScalarDescriptor
      Returns:
      the name of the parameters class
    • generate

      public String[] generate(Molecule m) throws MDGeneratorException
      Creates the LogD descriptor for the given Molecule. Calls the generator created by the corresponding LDParameters class.
      Overrides:
      generate in class ScalarDescriptor
      Returns:
      property names set in the molecule passed during generation
      Throws:
      MDGeneratorException - when failed to generate descriptor