Package ffx.potential.parameters
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 Summary
FieldsModifier and TypeFieldDescriptionintThe atom type that uses this charge parameter.final doublePartial atomic charge in units of electrons.static final doublestatic final doublestatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChargeTypeaverage(ChargeType chargeType1, ChargeType chargeType2, int atomType) Average two ChargeType instances.intvoidincrementType(int increment) incrementTypetoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
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 chargePartial atomic charge in units of electrons. -
atomType
public int atomTypeThe atom type that uses this charge parameter.
-
-
Constructor Details
-
ChargeType
public ChargeType(int atomType, double charge) ChargeType constructor.- Parameters:
atomType- intcharge- double
-
-
Method Details
-
average
Average two ChargeType instances. The atom type that defines the new type must be supplied.- Parameters:
chargeType1- aChargeTypeobject.chargeType2- aChargeTypeobject.atomType- The atom type that defines the new type.- Returns:
- a
ChargeTypeobject.
-
compare
- Specified by:
comparein interfaceComparator<String>
-
incrementType
public void incrementType(int increment) incrementType- Parameters:
increment- The amount to increment the atom type by.
-
toString
Basic toString method.
Nicely formatted Charge type.
-