Package ffx.potential.parameters
Class SoluteType
java.lang.Object
ffx.potential.parameters.BaseType
ffx.potential.parameters.SoluteType
- All Implemented Interfaces:
Comparator<String>
@FFXProperty(name="solute",
clazz=java.lang.String.class,
propertyGroup=PotentialFunctionParameter,
description="[integers and 4 reals]\nProvides values for a single implicit solvation parameter.\nThe integer modifier gives the atom type number for which solvation atom size parameters are to be defined.\nThe first three real number modifiers give the values of the atomic diameter in Angstroms,\nfor use in Poisson-Boltzmann (APBS), ddCOSMO and Generalized Kirkwood (GK) calculations, respectively.\nThe final real number is the Sneck scaling factor for implicit solvent interstitial space corrections.\n")
public final class SoluteType
extends BaseType
implements Comparator<String>
The SoluteType class defines one implicit solvent radius.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Solute atomic diameter for ddCOSMO.double
Optional SMARTS description.double
Solute atomic diameter for GK.double
Solute atomic diameter for PB.double
Sneck scaling factor to use with interstitial space corrections -
Constructor Summary
ConstructorDescriptionSoluteType
(int atomType, double diameter) Constructor for SoluteType.SoluteType
(int atomType, double pbDiameter, double cosDiameter, double gkDiameter) Constructor for SoluteType.SoluteType
(int atomType, double pbDiameter, double cosDiameter, double gkDiameter, double sneck) Constructor for SoluteType.SoluteType
(int atomType, String description, double pbDiameter, double cosDiameter, double gkDiameter) Constructor for SoluteType. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static SoluteType
getCensusSoluteType
(int atomicNumber) static SoluteType
getFitSoluteType
(ForceField forceField, int type) static SoluteType
getSoluteType
(Atom atom, ForceField forceField, SoluteType.SOLUTE_RADII_TYPE soluteRadiiType) static SoluteType
getVDWSoluteType
(VDWType vdwType) int
hashCode()
static SoluteType
Construct a SoluteType from an input string.static void
setSoluteRadii
(ForceField forceField, Atom[] atoms, SoluteType.SOLUTE_RADII_TYPE soluteRadiiType) toString()
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
-
pbDiameter
public double pbDiameterSolute atomic diameter for PB. -
cosDiameter
public double cosDiameterSolute atomic diameter for ddCOSMO. -
gkDiameter
public double gkDiameterSolute atomic diameter for GK. -
sneck
public double sneckSneck scaling factor to use with interstitial space corrections -
DEFAULT_SNECK
public double DEFAULT_SNECK -
description
Optional SMARTS description.
-
-
Constructor Details
-
SoluteType
public SoluteType(int atomType, double diameter) Constructor for SoluteType.- Parameters:
atomType
- Atom type.diameter
- Diameter for all continuum electrostatics models.
-
SoluteType
public SoluteType(int atomType, double pbDiameter, double cosDiameter, double gkDiameter) Constructor for SoluteType.- Parameters:
atomType
- Atom type.pbDiameter
- Diameter for PB continuum electrostatics.cosDiameter
- Diameter for ddCOSMO continuum electrostatics.gkDiameter
- Diameter for GK continuum electrostatics.
-
SoluteType
public SoluteType(int atomType, double pbDiameter, double cosDiameter, double gkDiameter, double sneck) Constructor for SoluteType.- Parameters:
atomType
- Atom type.pbDiameter
- Diameter for PB continuum electrostatics.cosDiameter
- Diameter for ddCOSMO continuum electrostatics.gkDiameter
- Diameter for GK continuum electrostatics.sneck
- Sneck scaling factor for implicit solvent interstitial space corrections
-
SoluteType
public SoluteType(int atomType, String description, double pbDiameter, double cosDiameter, double gkDiameter) Constructor for SoluteType.- Parameters:
atomType
- Atom type.description
- Smarts description.pbDiameter
- Diameter for PB continuum electrostatics.cosDiameter
- Diameter for ddCOSMO continuum electrostatics.gkDiameter
- Diameter for GK continuum electrostatics.
-
-
Method Details
-
parse
Construct a SoluteType from an input string.- Parameters:
input
- The overall input String.tokens
- The input String tokenized.- Returns:
- a SoluteType 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 bond stretch string.
-
getCensusSoluteType
-
getVDWSoluteType
-
getFitSoluteType
-
getSoluteType
public static SoluteType getSoluteType(Atom atom, ForceField forceField, SoluteType.SOLUTE_RADII_TYPE soluteRadiiType) -
setSoluteRadii
public static void setSoluteRadii(ForceField forceField, Atom[] atoms, SoluteType.SOLUTE_RADII_TYPE soluteRadiiType)
-