BALL::ResidueChecker Class Reference
[Miscellaneous]

Residue Consistency Checker. More...

#include <residueChecker.h>

Inheritance diagram for BALL::ResidueChecker:
Inheritance graph
[legend]

List of all members.


Public Types

enum TestType {
MISSING_ATOMS = 0, EXTRA_ATOMS, ELEMENTS, SUSPECT_BOND_LENGTHS,
NON_INTEGRAL_NET_CHARGE, LARGE_CHARGES, LARGE_NET_CHARGE, NAN_POSITIONS,
OVERLAPPING_ATOMS, STRONGLY_OVERLAPPING_ATOMS, DUPLICATE_ATOM_NAMES, UNKNOWN_RESIDUES,
NUMBER_OF_TESTS
}
Enums. More...

Public Member Functions

ResidueChecker ()
Constructors and Destructors.
ResidueChecker (FragmentDB &fragment_db)
Detailed constructor.
ResidueChecker (const ResidueChecker &residue_checker)
Copy constructor.
virtual ~ResidueChecker ()
Destructor.
void enable (TestType t)
Accessors.
void disable (TestType t)
Disable a specific test.
void enableSelection ()
Enable selection of problematic atoms.
void disableSelection ()
Disable selection of problematic atoms.
bool isSelectionEnabled ()
Return the status of the selection.
bool getStatus () const
Return true if the last application did not produce any warning.
bool isEnabled (TestType t) const
Check whether a specific test is enabled.
Processor::Result operator() (Residue &residue)
Processor-related methods.
bool start ()
start method
bool finish ()
finish method
Explicit tests
bool checkAtomPositions (const Residue &res, const String &res_name)
bool checkCharge (const Residue &res, const String &res_name)
bool checkCompleteness (const Residue &res, const Residue &reference, const String &res_name)
bool checkTemplate (const Residue &res, const Residue &reference, const String &res_name)

Protected Attributes

FragmentDB * fragment_db_
bool status_
BitVector tests_
bool selection_

Detailed Description

Residue Consistency Checker.

This processor checks residues for internal consistency. It identifies missing or superfluous atoms, suspect bond lengths and non-integral or extremely large charges on the residue. Atom positions are checked as well: a warning is printed, if any of the atom's coordinates is not a number (NaN). Warnings are emitted to Log .

The individual tests can be enabled/disabled using the enable and disable methods. Please use the enum TestTypes to refer to the appropriate tests. By default all tests are enabled except for OVERLAPPING_ATOMS.
The following tests are currently implemented:

Member Enumeration Documentation

Enums.

Enum to refer to the individual tests. The values of this enum are used by enable , disable , and isEnabled .


Constructor & Destructor Documentation

BALL::ResidueChecker::ResidueChecker ( )

Constructors and Destructors.

Default constructor


Member Function Documentation

void BALL::ResidueChecker::enable ( TestType t )

Accessors.

Enable a specific test

bool BALL::ResidueChecker::getStatus ( ) const

Return true if the last application did not produce any warning.

The getStatus method may be called after applying the ResidueChecker to a kernel object.

Returns:
bool true if no warnings occured, false otherwise

Generated on Thu Aug 6 18:30:47 2009 for BALL by doxygen 1.5.8