BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Protected Member Functions | Protected Attributes | List of all members
BALL::ShiftModel1D Class Reference

#include <BALL/NMR/shiftModel1D.h>

Inheritance diagram for BALL::ShiftModel1D:
BALL::ShiftModule BALL::UnaryProcessor< Composite > BALL::UnaryFunctor< Composite, Processor::Result >

Public Types

Type definitions
enum  SPECTRUM_TYPE {
  H = 1, N, C, H_ON_BACKBONE,
  N_BACKBONE, C_BACKBONE
}
 

Public Member Functions

Constructors and Destructors
 ShiftModel1D ()
 
 ShiftModel1D (const String &filename, SPECTRUM_TYPE st, bool compute_shifts=true)
 
 ShiftModel1D (const String &filename, SPECTRUM_TYPE st, double origin, double dimension, double spacing, bool compute_shifts=true)
 
 ShiftModel1D (const ShiftModel1D &model)
 
virtual ~ShiftModel1D ()
 
void clear ()
 
Accessors
void setFilename (const String &filename) throw (Exception::FileNotFound)
 
const StringgetFilename () const
 
const ParametersgetParameters () const
 
const std::vector< Peak1D > & getPeaks () const
 
void setPeaks (std::vector< Peak1D > peaks)
 
const doublegetOrigin () const
 
void setOrigin (const double &origin)
 
const doublegetDimension () const
 
void setDimension (const double &dimension)
 
const double getSpacing () const
 
void setSystem (System *system)
 
const SystemgetSystem () const
 
void operator>> (Spectrum1D &spectrum)
 
Predicates
bool isValid () const
 
Processor related methods
bool start ()
 
bool finish ()
 
Processor::Result operator() (Composite &composite)
 
- Public Member Functions inherited from BALL::ShiftModule
 ShiftModule ()
 
 ShiftModule (Parameters &parameters, const String &name="")
 
 ShiftModule (const ShiftModule &module)
 
virtual ~ShiftModule ()
 
const ShiftModuleoperator= (const ShiftModule &module)
 
void setName (const String &name)
 
const StringgetName () const
 
void setParameters (Parameters &parameters)
 
const ParametersgetParameters () const
 
virtual void init ()
 
bool isValid () const
 
- Public Member Functions inherited from BALL::UnaryProcessor< Composite >
 UnaryProcessor ()
 
 UnaryProcessor (const UnaryProcessor &)
 
virtual ~UnaryProcessor ()
 

Protected Member Functions

bool init_ () throw (Exception::FileNotFound)
 
bool hasType_ (Atom *a, SPECTRUM_TYPE type)
 

Protected Attributes

std::vector< Peak1Dpeaks_
 
double origin_
 
double dimension_
 
double spacing_
 
SPECTRUM_TYPE type_
 
Parameters parameters_
 
Systemsystem_
 
bool valid_
 
bool compute_shifts_
 Flag for shift computation. More...
 
- Protected Attributes inherited from BALL::ShiftModule
String module_name_
 
Parametersparameters_
 
bool valid_
 

Additional Inherited Members

- Static Public Attributes inherited from BALL::ShiftModule
static const char * PROPERTY__SHIFT
 
static const char * PROPERTY__EXPERIMENTAL__SHIFT
 

Detailed Description

A class representing a complete parameterized 1D NMR shift model.

The model consists of peak list, a system, a spectrum type and parameters

Definition at line 18 of file shiftModel1D.h.

Member Enumeration Documentation

Enumerator
H 
N 
C 
H_ON_BACKBONE 
N_BACKBONE 
C_BACKBONE 

Definition at line 29 of file shiftModel1D.h.

Constructor & Destructor Documentation

BALL::ShiftModel1D::ShiftModel1D ( )

Default Constructor

BALL::ShiftModel1D::ShiftModel1D ( const String filename,
SPECTRUM_TYPE  st,
bool  compute_shifts = true 
)

Detailed Constructor. If compute_shifts is set to false, we assume that the shifts have been previously assigned, and will use the properties as we find them in the system.

BALL::ShiftModel1D::ShiftModel1D ( const String filename,
SPECTRUM_TYPE  st,
double  origin,
double  dimension,
double  spacing,
bool  compute_shifts = true 
)

Detailed Constructor. If compute_shifts is set to false, we assume that the shifts have been previously assigned, and will use the properties as we find them in the system.

BALL::ShiftModel1D::ShiftModel1D ( const ShiftModel1D model)

Copy constructor

virtual BALL::ShiftModel1D::~ShiftModel1D ( )
virtual

Destructor

Member Function Documentation

void BALL::ShiftModel1D::clear ( )
virtual

Clear method.

Reimplemented from BALL::ShiftModule.

bool BALL::ShiftModel1D::finish ( )
virtual

Finish method

Reimplemented from BALL::ShiftModule.

const double& BALL::ShiftModel1D::getDimension ( ) const
inline

Get the dimension

Definition at line 126 of file shiftModel1D.h.

const String& BALL::ShiftModel1D::getFilename ( ) const
inline

Return the parameter filename.

Definition at line 83 of file shiftModel1D.h.

const double& BALL::ShiftModel1D::getOrigin ( ) const
inline

Get the origin

Definition at line 112 of file shiftModel1D.h.

const Parameters& BALL::ShiftModel1D::getParameters ( ) const
inline

Definition at line 90 of file shiftModel1D.h.

const std::vector<Peak1D>& BALL::ShiftModel1D::getPeaks ( ) const
inline

Get the peaks

Definition at line 97 of file shiftModel1D.h.

const double BALL::ShiftModel1D::getSpacing ( ) const
inline

Get the spacing

Definition at line 140 of file shiftModel1D.h.

const System* BALL::ShiftModel1D::getSystem ( ) const
inline

Return the system

Definition at line 154 of file shiftModel1D.h.

bool BALL::ShiftModel1D::hasType_ ( Atom a,
SPECTRUM_TYPE  type 
)
protected
bool BALL::ShiftModel1D::init_ ( ) throw (Exception::FileNotFound)
protected
bool BALL::ShiftModel1D::isValid ( ) const

Validity flag

Processor::Result BALL::ShiftModel1D::operator() ( Composite composite)
virtual

Application method

Reimplemented from BALL::UnaryProcessor< Composite >.

void BALL::ShiftModel1D::operator>> ( Spectrum1D spectrum)
void BALL::ShiftModel1D::setDimension ( const double dimension)
inline

Set the dimension

Definition at line 133 of file shiftModel1D.h.

void BALL::ShiftModel1D::setFilename ( const String filename) throw (Exception::FileNotFound)

Set the parameter filename.

void BALL::ShiftModel1D::setOrigin ( const double origin)
inline

Set the origin

Definition at line 119 of file shiftModel1D.h.

void BALL::ShiftModel1D::setPeaks ( std::vector< Peak1D peaks)
inline

Set the peaks

Definition at line 104 of file shiftModel1D.h.

void BALL::ShiftModel1D::setSystem ( System system)
inline

Set the system

Definition at line 147 of file shiftModel1D.h.

bool BALL::ShiftModel1D::start ( )
virtual

Start method

Reimplemented from BALL::ShiftModule.

Member Data Documentation

bool BALL::ShiftModel1D::compute_shifts_
protected

Flag for shift computation.

Definition at line 234 of file shiftModel1D.h.

double BALL::ShiftModel1D::dimension_
protected

Definition at line 210 of file shiftModel1D.h.

double BALL::ShiftModel1D::origin_
protected

Definition at line 206 of file shiftModel1D.h.

Parameters BALL::ShiftModel1D::parameters_
protected

Definition at line 222 of file shiftModel1D.h.

std::vector<Peak1D> BALL::ShiftModel1D::peaks_
protected

Definition at line 202 of file shiftModel1D.h.

double BALL::ShiftModel1D::spacing_
protected

Definition at line 214 of file shiftModel1D.h.

System* BALL::ShiftModel1D::system_
protected

Definition at line 226 of file shiftModel1D.h.

SPECTRUM_TYPE BALL::ShiftModel1D::type_
protected

Definition at line 218 of file shiftModel1D.h.

bool BALL::ShiftModel1D::valid_
protected

Definition at line 231 of file shiftModel1D.h.