Package ffx.potential.parameters
Class RelativeSolvationType
java.lang.Object
ffx.potential.parameters.BaseType
ffx.potential.parameters.RelativeSolvationType
- All Implemented Interfaces:
Comparator<String>
A BaseType for relative solvation energies (intended for nonstandard amino acids).
- Since:
- 1.0
- Author:
- Michael J. Schnieders, Jacob M. Litman
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRelativeSolvationType
(String resname, double solvEnergy) Constructor for RelativeSolvationType. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Getter for the fieldresName
.double
Getter for the fieldsolvEnergy
.int
hashCode()
static RelativeSolvationType
Construct a RelativeSolvationType from an input string.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
-
Constructor Details
-
RelativeSolvationType
Constructor for RelativeSolvationType.- Parameters:
resname
- aString
object.solvEnergy
- a double.
-
-
Method Details
-
parse
Construct a RelativeSolvationType from an input string.- Parameters:
input
- The overall input String.tokens
- The input String tokenized.- Returns:
- a RelativeSolvationType instance.
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
equals
- Specified by:
equals
in interfaceComparator<String>
- Overrides:
equals
in classObject
-
getResName
Getter for the fieldresName
.- Returns:
- a
String
object.
-
getSolvEnergy
public double getSolvEnergy()Getter for the fieldsolvEnergy
.- Returns:
- a double.
-
hashCode
public int hashCode() -
toString
Basic toString method.
-