#include <shiftModule.h>
Public Member Functions |
|
Constructors and Destructors
|
|
ShiftModule () | |
Default Constructor. |
|
ShiftModule (Parameters ¶meters, const String &name="") | |
Detailed constructor. |
|
ShiftModule (const ShiftModule &module) | |
Copy constructor. |
|
virtual | ~ShiftModule () |
Destructor. |
|
virtual void | clear () |
Clear method. |
|
Assignment
|
|
const ShiftModule & | operator= (const ShiftModule &module) |
Assignment operator. |
|
Accessors
|
|
void | setName (const String &name) |
Set the modules name. |
|
const String & | getName () const |
Return the module name. |
|
void | setParameters (Parameters ¶meters) |
Set the parameters. |
|
const Parameters * | getParameters () const |
Return a pointer to the
parameters. |
|
virtual void | init () |
Parameter initalization. |
|
Processor related methods
|
|
virtual bool | start () |
Start method. |
|
virtual bool | finish () |
Finish method. |
|
Predicates
|
|
bool | isValid () const |
Return the module state. |
|
Static Public Attributes |
|
Enums and Constants
|
|
static const char * | PROPERTY__SHIFT |
Named property to store the shift
values. |
|
Protected Attributes |
|
String | module_name_ |
Parameters * | parameters_ |
bool | valid_ |
NMR shift models typically consist of a number of different contributions (e.g. ring current, ansisotopy, etc.). Each of these contributions is implemented in a ShiftModule. Several of these ShiftModules can then be combined to a complete ShiftModel . Since ShiftModules are derived from UnaryProcessor , they can be applied to arbitrary kernel data structures.
virtual void BALL::ShiftModule::clear | ( | ) | [virtual] |
virtual bool BALL::ShiftModule::finish | ( | ) | [virtual] |
Finish method.
This method aborts, if the module is not correctly initialized.
Reimplemented from BALL::UnaryProcessor< Composite >.
Reimplemented in BALL::AnisotropyShiftProcessor, BALL::EFShiftProcessor, BALL::HaighMallionShiftProcessor, BALL::HBondShiftProcessor, BALL::JohnsonBoveyShiftProcessor, and BALL::ShiftModel.
virtual void BALL::ShiftModule::init | ( | ) | [virtual] |
Parameter initalization.
Use this method to implement the extraction and initialization of the module's parameters. init is called by ShiftModel as soon as the ShiftModule is constructed and parameters and name are assigned.
Reimplemented in BALL::AnisotropyShiftProcessor, BALL::CreateSpectrumProcessor, BALL::EFShiftProcessor, BALL::HaighMallionShiftProcessor, BALL::HBondShiftProcessor, BALL::JohnsonBoveyShiftProcessor, and BALL::RandomCoilShiftProcessor.
bool BALL::ShiftModule::isValid | ( | ) | const |
Return the module state.
The module is valid if init was executed successfully.
Reimplemented in BALL::ShiftModel.
void BALL::ShiftModule::setParameters | ( | Parameters & | parameters | ) |
virtual bool BALL::ShiftModule::start | ( | ) | [virtual] |
Start method.
This method aborts, if the module is not correctly initialized.
Reimplemented from BALL::UnaryProcessor< Composite >.
Reimplemented in BALL::CreateSpectrumProcessor, BALL::EFShiftProcessor, BALL::SimpleExperiment1D, BALL::HBondShiftProcessor, BALL::JohnsonBoveyShiftProcessor, and BALL::ShiftModel.
const char*
BALL::ShiftModule::PROPERTY__SHIFT
[static] |
Named property to store the shift values.
Use this string constant to access the shift values stored in the single atoms.
atom.setProperty(ShiftModule::PROPERTY__SHIFT,
0.0);