Package ffx.potential.parameters
Class VDWPairType
java.lang.Object
ffx.potential.parameters.BaseType
ffx.potential.parameters.VDWPairType
- All Implemented Interfaces:
Comparator<String>
@FFXProperty(name="vdwpr",
clazz=java.lang.String.class,
propertyGroup=PotentialFunctionParameter,
description="[2 integers and 2 reals]\nProvides the values for the vdw parameters for a single special heteroatomic pair of atoms.\nThe integer modifiers give the pair of atom class numbers for which special vdw parameters are to be defined.\nThe two real number modifiers give the values of the minimum energy contact distance in Angstroms and the well depth at the minimum distance in kcal/mole.\n")
public final class VDWPairType
extends BaseType
implements Comparator<String>
The VDWPairType class defines a van der Waals Pair type.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Field Summary
Modifier and TypeFieldDescriptionfinal int[]
Atom classes that form this bond stretch.final double
The radius of the minimum well depth energy (angstroms).final double
The minimum energy of the vdw function (kcal/mol). -
Constructor Summary
ConstructorDescriptionVDWPairType
(int[] atomClasses, double radius, double wellDepth) van der Waals constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic VDWPairType
average
(VDWPairType vdwType1, VDWPairType vdwType2, int[] atomClasses) Average.int
boolean
int
hashCode()
void
incrementClasses
(int increment) Increment the atom classes by a specified amount.static VDWPairType
Construct a VDWPairType from multiple input lines.static String
sortKey
(int[] c) This method sorts the atom classes as: min, maxtoString()
Write VDWPairType to OpenMM XML format.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
radius
public final double radiusThe radius of the minimum well depth energy (angstroms). -
wellDepth
public final double wellDepthThe minimum energy of the vdw function (kcal/mol). -
atomClasses
public final int[] atomClassesAtom classes that form this bond stretch.
-
-
Constructor Details
-
VDWPairType
public VDWPairType(int[] atomClasses, double radius, double wellDepth) van der Waals constructor. If the reduction factor is .LE. 0.0, no reduction is used for this atom type.- Parameters:
atomClasses
- The atom class that uses this van der Waals Pair.radius
- The radius of the minimum well depth energy (angstroms).wellDepth
- The minimum energy of the vdw function (kcal/mol).
-
-
Method Details
-
average
Average.- Parameters:
vdwType1
- aVDWPairType
object.vdwType2
- aVDWPairType
object.atomClasses
- The atom classes that uses this van der Waals Pair.- Returns:
- a
VDWPairType
object.
-
parse
Construct a VDWPairType from multiple input lines.- Parameters:
input
- The overall input String.tokens
- The input String tokenized.- Returns:
- a VDWType instance.
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
equals
- Specified by:
equals
in interfaceComparator<String>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode() -
toString
Basic toString method.
Nicely formatted van der Waals type.
-
toXML
Write VDWPairType to OpenMM XML format. -
sortKey
This method sorts the atom classes as: min, max- Parameters:
c
- atomClasses- Returns:
- lookup key
-
incrementClasses
public void incrementClasses(int increment) Increment the atom classes by a specified amount.- Parameters:
increment
- The increment to add to the atom classes.
-