BALL::EmpiricalHSShiftProcessor::PropertiesForShift_ Class Reference

#include <BALL/NMR/empiricalHSShiftProcessor.h>

List of all members.


Public Member Functions

 PropertiesForShift_ (int verbosity_=EmpiricalHSShiftProcessor::VERBOSITY_LEVEL_CRITICAL) throw ()
bool computeProperties_ (Atom *atom, std::set< String > properties) throw ()
std::pair< float, Stringoperator[] (const String &property_name) throw ()

Static Public Member Functions

static bool isDiscrete (String property) throw ()
static bool isMixed (String property) throw ()

Public Attributes

Atomcurrent_atom

Protected Member Functions

float getChiAngle_ (Residue *residue) throw ()
float getChi2Angle_ (Residue *residue) throw ()
char getAminoAcid_ (Residue *residue) throw ()
char getSecondaryStructure_ (Residue *residue) throw ()
float getHA_HBondLen_ (Residue *residue) throw ()
float getHA2_HBondLen_ (Residue *residue) throw ()
float getHN_HBondLen_ (Residue *residue) throw ()
float getO_HBondLen_ (Residue *residue) throw ()
bool hasDisulfidBond_ (Residue *residue) throw ()
bool hasHA_HBond_ (Residue *residue) throw ()
bool hasHA2_HBond_ (Residue *residue) throw ()
bool hasHN_HBond_ (Residue *residue) throw ()
bool hasO_HBond_ (Residue *residue) throw ()

Protected Attributes

std::map< String, floatproperties_real_
std::map< String, Stringproperties_string_

Private Attributes

int verbosity_

Detailed Description

Definition at line 201 of file empiricalHSShiftProcessor.h.


Constructor & Destructor Documentation

BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::PropertiesForShift_ ( int  verbosity_ = EmpiricalHSShiftProcessor::VERBOSITY_LEVEL_CRITICAL  )  throw ()

Default constructor.


Member Function Documentation

bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::computeProperties_ ( Atom atom,
std::set< String properties 
) throw ()

Method to set the atom and to compute all atom's properites as specified in the given set { properties}. The property values are stored either in the map { properties_real_} with property type as key or in the map { properties_string_} with property type as key. The values can be accessed via the [] operator [] given the property type. The angles are given in the range (-180, 180). Note: In case of property type CHI, numerical _and_ alphanumeric values are possible: x e(-180,180) or x e {"ALA", "GLY", "Unknown"} If a certain property value is not available, the property gets the predefined values FLOAT_VALUE_NA or STRING_VALUE_NA. This is needed, to access the default values of the hypersurfaces.

The method fails if the atom does not belong to a residue.

Returns:
bool, false if !a->getResidue()
char BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getAminoAcid_ ( Residue residue  )  throw () [protected]
float BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getChi2Angle_ ( Residue residue  )  throw () [protected]
float BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getChiAngle_ ( Residue residue  )  throw () [protected]
float BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getHA2_HBondLen_ ( Residue residue  )  throw () [protected]
float BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getHA_HBondLen_ ( Residue residue  )  throw () [protected]
float BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getHN_HBondLen_ ( Residue residue  )  throw () [protected]
float BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getO_HBondLen_ ( Residue residue  )  throw () [protected]
char BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::getSecondaryStructure_ ( Residue residue  )  throw () [protected]
bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::hasDisulfidBond_ ( Residue residue  )  throw () [protected]
bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::hasHA2_HBond_ ( Residue residue  )  throw () [protected]
bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::hasHA_HBond_ ( Residue residue  )  throw () [protected]
bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::hasHN_HBond_ ( Residue residue  )  throw () [protected]
bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::hasO_HBond_ ( Residue residue  )  throw () [protected]
static bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::isDiscrete ( String  property  )  throw () [static]

Method to check the type of a property.

Returns:
bool, false if property is of type "PSI" || "PHI" || "HA2L" || "HA1L" || "HNL" || "OHL"|| "CHI"
static bool BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::isMixed ( String  property  )  throw () [static]

Method to check the type of a property.

Returns:
bool, false if property != "CHI" || "CHI2"
std::pair<float, String> BALL::EmpiricalHSShiftProcessor::PropertiesForShift_::operator[] ( const String property_name  )  throw ()

Method to obtain a property's value. A std::pair<float, String> is returned, such that the first element is std::numeric_limits<float>::min() if it is a alphanumeric/discrete property value the second element is the string "invalid" if it is a numeric property value. NOTE: make sure, that all properties (except from CHI) are stored either in properties_real_ or in properties_string_ otherwise the operator is not able to return the correct value!

Returns:
pair<float, String>

Member Data Documentation

A pointer to the atom, whose properties are computed and stored.

Definition at line 212 of file empiricalHSShiftProcessor.h.

Definition at line 260 of file empiricalHSShiftProcessor.h.

Definition at line 262 of file empiricalHSShiftProcessor.h.

Definition at line 282 of file empiricalHSShiftProcessor.h.


Generated on Tue Dec 7 19:12:52 2010 for BALL by  doxygen 1.5.9