Class DipoleCalculator

All Implemented Interfaces:
Calculator<Molecule,DipoleResult>, TaggedCalculator, Licensable

@PublicApi public class DipoleCalculator extends ProgressableCalculator<Molecule,DipoleResult>
Calculates the components of the dipole vector. Dipole vector components are referenced to the principal axis system.
  • Method Details

    • check

      public List<CalculatorError> check(Molecule data)
      Description copied from interface: Calculator
      Checks if the given data is usable for the calculator or not
      Parameters:
      data - the input data
      Returns:
      list of errors. The molecule is valid when the list is empty.
    • calculate

      public DipoleResult calculate(Molecule molecule) throws IllegalArgumentException
      Description copied from interface: Calculator
      Calculates with the given data
      Parameters:
      molecule - the input data
      Returns:
      the calculation result
      Throws:
      IllegalArgumentException - when the molecule is not usable
      See Also:
    • getProductName

      public String getProductName()
      Description copied from class: ProgressableCalculator
      Returns the product identifier of the plugin.
      Specified by:
      getProductName in class ProgressableCalculator<Molecule,DipoleResult>
    • tags

      public Set<CalculatorTag> tags()
      Description copied from interface: TaggedCalculator
      Returns the set of tags reported by this calculator. The same tags should be returned unless the calculator is modified using a mutator method, e.g. if some settings are changed.

      New tags can be introduced and reported in the future by existing calculators, so do not depend on the exact set of reported tags, only check for the presence of certain tags.

      Returns:
      the tags