Class ChargeType

java.lang.Object
ffx.potential.parameters.BaseType
ffx.potential.parameters.ChargeType
All Implemented Interfaces:
Comparator<String>

@FFXProperty(name="charge", clazz=java.lang.String.class, propertyGroup=PotentialFunctionParameter, description="[1 integer and 1 real]\nProvides a value for a single atomic partial charge electrostatic parameter.\nThe integer modifier, if positive, gives the atom type number for which the charge parameter is to be defined.\nNote that charge parameters are given for atom types, not atom classes. If the integer modifier is negative,\nthen the parameter value to follow applies only to the individual atom whose atom number is the negative of the modifier.\nThe real number modifier gives the values of the atomic partial charge in electrons.\n") public final class ChargeType extends BaseType implements Comparator<String>
The ChargeType class defines a partial atomic charge type.
Since:
1.0
Author:
Michael J. Schnieders
  • Field Details

    • DEFAULT_CHG_12_SCALE

      public static final double DEFAULT_CHG_12_SCALE
      See Also:
    • DEFAULT_CHG_13_SCALE

      public static final double DEFAULT_CHG_13_SCALE
      See Also:
    • DEFAULT_CHG_14_SCALE

      public static final double DEFAULT_CHG_14_SCALE
      See Also:
    • DEFAULT_CHG_15_SCALE

      public static final double DEFAULT_CHG_15_SCALE
      See Also:
    • charge

      public final double charge
      Partial atomic charge in units of electrons.
    • atomType

      public int atomType
      The atom type that uses this charge parameter.
  • Constructor Details

    • ChargeType

      public ChargeType(int atomType, double charge)
      ChargeType constructor.
      Parameters:
      atomType - int
      charge - double
  • Method Details

    • average

      public static ChargeType average(ChargeType chargeType1, ChargeType chargeType2, int atomType)
      Average two ChargeType instances. The atom type that defines the new type must be supplied.
      Parameters:
      chargeType1 - a ChargeType object.
      chargeType2 - a ChargeType object.
      atomType - The atom type that defines the new type.
      Returns:
      a ChargeType object.
    • compare

      public int compare(String s1, String s2)
      Specified by:
      compare in interface Comparator<String>
    • incrementType

      public void incrementType(int increment)
      incrementType
      Parameters:
      increment - The amount to increment the atom type by.
    • toString

      public String toString()

      Basic toString method.

      Nicely formatted Charge type.

      Overrides:
      toString in class BaseType