|
MSpin-JCoupling
2.1
|
The base class for the computation of scalar coupling constants. More...
#include <jequation.h>
Classes | |
| class | Parameter |
| Representation of a parameter in an empirical equation. More... | |
| class | ParameterSet |
| A set of parameters. More... | |
Public Member Functions | |
| JEquation () | |
| Constructor. | |
| virtual | ~JEquation () |
| Virtual destructor. | |
| virtual float | GetJ (const Frame &frame, size_t i, size_t j)=0 |
| void | CoupledPairs (Molecule *molecule, std::vector< magnes::CouplingConstant > &pairs) |
| virtual std::string | Name () const =0 |
| virtual std::pair< std::string, std::string > | CoupledNuclei () const =0 |
| virtual int | NBonds () const =0 |
| virtual std::string | Description () const |
| html description of the equation This function should be overloaded in inheriting classes to provide a simple description of the equation in HTML format | |
| std::string | Group () const |
| The group to which the equation belongs This function is mainly use to group equations inside MagNes-JCoupling equation box according to the class of compounds they were designed for. returns "General" by default. | |
| void | SetGroup (const std::string &group) |
| virtual bool | SelectFirstAtom (const Molecule *molecule, size_t i)=0 |
| virtual bool | SelectSecondAtom (const Molecule *molecule, size_t i)=0 |
| void | SetParameters (std::vector< Parameter > &newparams, int i) |
| const ParameterSet & | GetParameterSet (size_t i) const |
| ParameterSet & | GetParameterSet (size_t i) |
| const ParameterSet & | GetCurrentParameterSet () const |
| ParameterSet & | GetCurrentParameterSet () |
| const std::vector< ParameterSet > & | GetParameterSets () const |
| std::vector< ParameterSet > & | GetParameterSets () |
| size_t | GetCurrentParameterSetIndex () const |
| void | SetCurrentSet (size_t n) |
| virtual void | InitParameters ()=0 |
| void | SaveParameters (std::ostream &s) const |
| void | LoadParameters (std::istream &s) |
Protected Attributes | |
| size_t | m_s1 |
| size_t | m_s2 |
The base class for the computation of scalar coupling constants.
JEquation is a base class for implementation of empirical equations for scalar J coupling computations using empirical equations, like Karplus Altona....
|
pure virtual |
Implemented in magnes::CCCHEquation, and magnes::HCCHEquation.
| void magnes::JEquation::CoupledPairs | ( | Molecule * | molecule, |
| std::vector< magnes::CouplingConstant > & | pairs | ||
| ) |
Fill the vector
| pairs | with all computable J pairs in Molecule |
| molecule |
| const ParameterSet& magnes::JEquation::GetCurrentParameterSet | ( | ) | const |
| ParameterSet& magnes::JEquation::GetCurrentParameterSet | ( | ) |
| size_t magnes::JEquation::GetCurrentParameterSetIndex | ( | ) | const |
|
pure virtual |
| i | and |
| j | (from 0 to N-1) in corformer |
| frame |
| const ParameterSet& magnes::JEquation::GetParameterSet | ( | size_t | i | ) | const |
| i |
| ParameterSet& magnes::JEquation::GetParameterSet | ( | size_t | i | ) |
| i |
| const std::vector<ParameterSet>& magnes::JEquation::GetParameterSets | ( | ) | const |
| std::vector<ParameterSet>& magnes::JEquation::GetParameterSets | ( | ) |
|
pure virtual |
Init the parameter list
| void magnes::JEquation::LoadParameters | ( | std::istream & | s | ) |
Load parameters from stream
|
pure virtual |
|
pure virtual |
Implemented in magnes::CCCHEquation, and magnes::HCCHEquation.
| void magnes::JEquation::SaveParameters | ( | std::ostream & | s | ) | const |
Save set of parameters to stream
|
pure virtual |
Check if atom
| i | can be selected |
Implemented in magnes::CCCHEquation, and magnes::HCCHEquation.
|
pure virtual |
Check if the second atom
| j | can be selected |
Implemented in magnes::CCCHEquation, and magnes::HCCHEquation.
| void magnes::JEquation::SetCurrentSet | ( | size_t | n | ) |
set the active parameter set to
| n |
| void magnes::JEquation::SetGroup | ( | const std::string & | group | ) |
set the group which the equation belongs
| void magnes::JEquation::SetParameters | ( | std::vector< Parameter > & | newparams, |
| int | i | ||
| ) |
Fill the set of parameters sets to
| newparams | in position |
| i |
|
protected |
first atom selected
|
protected |
second atom selected
1.8.12