public class NearestNeighborMode extends java.lang.Object implements MeltingComputationMethod
Constructor and Description |
---|
NearestNeighborMode() |
Modifier and Type | Method and Description |
---|---|
static double |
computesHairpinTemperature(Environment environment)
computes the melting temperature of a hairpin loop (when there is more than 4 CNG repeats in a sequence)
|
static double |
computesMeltingTemperature(Environment environment)
computes the melting temperature for for the Environment 'environment'.
|
ThermoResult |
computesThermodynamics()
This method is called to compute the melting temperature.
|
RegisterMethods |
getRegister()
This method is called to get the RegisterMethod of the implemented class.
|
boolean |
isApplicable()
This method is called to check that the options entered by the users are applicable with the used model (class).
|
void |
setUpVariables(java.util.HashMap<java.lang.String,java.lang.String> options)
Creates the Environment object and set up the variables of the chosen model.
|
public ThermoResult computesThermodynamics()
MeltingComputationMethod
computesThermodynamics
in interface MeltingComputationMethod
public boolean isApplicable()
MeltingComputationMethod
isApplicable
in interface MeltingComputationMethod
public void setUpVariables(java.util.HashMap<java.lang.String,java.lang.String> options)
MeltingComputationMethod
setUpVariables
in interface MeltingComputationMethod
options
- containing all the options (default options and options entered by the user)public RegisterMethods getRegister()
MeltingComputationMethod
getRegister
in interface MeltingComputationMethod
public static double computesHairpinTemperature(Environment environment)
environment
- public static double computesMeltingTemperature(Environment environment)
environment
-