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
ConstructorsConstructorDescriptionRelativeSolvationType(String resname, double solvEnergy) Constructor for RelativeSolvationType. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGetter for the fieldresName.doubleGetter for the fieldsolvEnergy.inthashCode()static RelativeSolvationTypeConstruct a RelativeSolvationType from an input string.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
RelativeSolvationType
Constructor for RelativeSolvationType.- Parameters:
resname- aStringobject.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:
comparein interfaceComparator<String>
-
equals
- Specified by:
equalsin interfaceComparator<String>- Overrides:
equalsin classObject
-
getResName
Getter for the fieldresName.- Returns:
- a
Stringobject.
-
getSolvEnergy
public double getSolvEnergy()Getter for the fieldsolvEnergy.- Returns:
- a double.
-
hashCode
public int hashCode() -
toString
Basic toString method.
-