Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
protocols::frag_picker::scores::PValuedFragmentScoreManager Class Reference

holds particular score components, weights and calculates the total score for a fragment candidate More...

#include <PValuedFragmentScoreManager.hh>

Inheritance diagram for protocols::frag_picker::scores::PValuedFragmentScoreManager:
Inheritance graph
[legend]
Collaboration diagram for protocols::frag_picker::scores::PValuedFragmentScoreManager:
Collaboration graph
[legend]

Public Member Functions

 PValuedFragmentScoreManager ()
 creates an empty manager More...
 
bool score_fragment_from_cache (FragmentCandidateOP, FragmentScoreMapOP)
 calculates all the small scores for a given fragment More...
 
bool score_fragment (FragmentCandidateOP, FragmentScoreMapOP)
 calculates all the small scores for a given fragment More...
 
void describe_fragments (utility::vector1< std::pair< FragmentCandidateOP, scores::FragmentScoreMapOP > > const &, std::ostream &)
 prints a flat table with all scores for all the fragments in a given vector More...
 
- Public Member Functions inherited from protocols::frag_picker::scores::FragmentScoreManager
virtual ~FragmentScoreManager ()
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 
 FragmentScoreManager ()
 creates an empty manager More...
 
FragmentScoreMapOP create_empty_map ()
 creates an empty score map More...
 
void add_scoring_method (FragmentScoringMethodOP, Real)
 registers a new scoring method in this manager More...
 
Size count_components ()
 says how many scoring methods have already been registered More...
 
FragmentScoringMethodOP get_component (Size index)
 Returns a desired scoring method. More...
 
utility::vector1< Realget_weights ()
 returns a vector of weights that are used to compute the total score More...
 
void show_scoring_methods (std::ostream &out)
 prints a nice table showing the registered scores More...
 
Real total_score (FragmentScoreMapOP)
 calculates the total score More...
 
void use_late_scoring_for_zeros (const bool if_true)
 those score metohods that have weight = 0.0 will be computed after the fragments are picked More...
 
bool if_late_scoring_for_zeros ()
 says if late scoring is used or not More...
 
bool score_zero_scores (FragmentCandidateOP, FragmentScoreMapOP)
 calculates all these small scores for a given fragment whose weight is 0.0 More...
 
void register_score_maker (MakeFragmentScoringMethodOP)
 registers a maker object that will be used to create a scoring method object More...
 
void create_scoring_method (std::string const &, Size, Real, Real, bool, FragmentPickerOP, std::string)
 creates a new scoring method object More...
 
void create_scores (std::string const &, FragmentPickerOP)
 reads a config file and creates scoring methods More...
 
void do_caching (VallChunkOP chunk)
 calls do_caching() for each FragmentScoringMethod object, if it is possible More...
 
void clean_up ()
 calls clean_up() for each FragmentScoringMethod object, if it is possible More...
 
void set_width (FragmentScoringMethodOP which_score, Size width)
 sets up a new number of characters spend to print fragment score value More...
 
void set_precision (FragmentScoringMethodOP which_score, Size precision)
 sets up a new precision used to print fragment score value More...
 

Private Attributes

utility::vector1
< utility::vector1
< AdaptiveScoreHistogramOP > > 
statistics_
 

Additional Inherited Members

- Public Attributes inherited from protocols::frag_picker::scores::FragmentScoreManager
Size default_width_
 default width used to print a score value, equal to 6 More...
 
Size default_precision_
 default precision used to print a score value, equal to 1 More...
 
- Static Public Attributes inherited from protocols::frag_picker::scores::FragmentScoreManager
static const Size TOTAL_PRECISION = 3
 precision used to display the total score for each fragment More...
 
- Protected Attributes inherited from protocols::frag_picker::scores::FragmentScoreManager
utility::vector1
< FragmentScoringMethodOP
scores_
 
std::map
< FragmentScoringMethodOP,
Size
width_
 
std::map
< FragmentScoringMethodOP,
Size
precision_
 

Detailed Description

holds particular score components, weights and calculates the total score for a fragment candidate

Detailed: a fragment picker object needs exactly one fragment manager to pick fragments. Adding new scoring methods
is supposed to be done FragmentPicker, which calls proper method from this class.

Definition at line 34 of file PValuedFragmentScoreManager.hh.

Constructor & Destructor Documentation

protocols::frag_picker::scores::PValuedFragmentScoreManager::PValuedFragmentScoreManager ( )
inline

creates an empty manager

Definition at line 38 of file PValuedFragmentScoreManager.hh.

Member Function Documentation

void protocols::frag_picker::scores::PValuedFragmentScoreManager::describe_fragments ( utility::vector1< std::pair< FragmentCandidateOP, scores::FragmentScoreMapOP > > const &  pairs,
std::ostream &  out 
)
virtual
bool protocols::frag_picker::scores::PValuedFragmentScoreManager::score_fragment ( FragmentCandidateOP  candidate,
FragmentScoreMapOP  empty_map 
)
virtual

calculates all the small scores for a given fragment

results are properly stored inside a FragmentScoreMap object

Reimplemented from protocols::frag_picker::scores::FragmentScoreManager.

Definition at line 90 of file PValuedFragmentScoreManager.cc.

References protocols::frag_picker::scores::FragmentScoreManager::score_fragment(), protocols::frag_picker::scores::FragmentScoreManager::scores_, and statistics_.

bool protocols::frag_picker::scores::PValuedFragmentScoreManager::score_fragment_from_cache ( FragmentCandidateOP  candidate,
FragmentScoreMapOP  empty_map 
)
virtual

calculates all the small scores for a given fragment

results are properly stored inside a FragmentScoreMap object

Reimplemented from protocols::frag_picker::scores::FragmentScoreManager.

Definition at line 111 of file PValuedFragmentScoreManager.cc.

References protocols::frag_picker::scores::FragmentScoreManager::score_fragment_from_cache(), protocols::frag_picker::scores::FragmentScoreManager::scores_, and statistics_.

Member Data Documentation

utility::vector1<utility::vector1<AdaptiveScoreHistogramOP> > protocols::frag_picker::scores::PValuedFragmentScoreManager::statistics_
private

The documentation for this class was generated from the following files: