Rosetta Protocols  2014.35
Public Member Functions | Static Public Attributes | List of all members
protocols::frag_picker::scores::ConstScore Class Reference

ConstScore adds a constant to the total score for each position. More...

#include <ConstScore.hh>

Public Member Functions

 ConstScore (Size priority, Real lowest_acceptable_value, bool use_lowest)
 
virtual bool score (FragmentCandidateOP f, FragmentScoreMapOP empty_map)
 Computes the score i.e. returns a constant times the number of residues in a fragment. More...
 
- Public Member Functions inherited from protocols::frag_picker::scores::FragmentScoringMethod
 FragmentScoringMethod (Size priority, Real lowest_acceptable_value, bool use_lowest, std::string name)
 
std::stringget_score_name ()
 Returns a name of this scoring method. More...
 
Size get_id ()
 Returns an integer index assigned to this scoring method by a scoring manager. More...
 
void set_id (Size id)
 Sets a new integer index for this scoring method. More...
 
Size get_priority ()
 Returns a priority of this scoring method. More...
 
Real get_min_allowed_score ()
 Returns the lowest acceptable score value for this scoring method. More...
 
bool get_use_lowest ()
 Returns the boolean choice on using the above lowest acceptable score value. More...
 
void set_min_allowed_score (Real lowest_acceptable_value)
 Sets a new value of the lowest acceptable score. More...
 

Static Public Attributes

static const int CONST_SCORE = 1
 the value used to score each position More...
 

Additional Inherited Members

- Protected Attributes inherited from protocols::frag_picker::scores::FragmentScoringMethod
Size id_
 
Size priority_
 
std::string name_
 
Real lowest_acceptable_value_
 
bool use_lowest_
 

Detailed Description

ConstScore adds a constant to the total score for each position.

Detailed: The total ConstScore for a fragment = n_frag_res * score_const

Constructor & Destructor Documentation

protocols::frag_picker::scores::ConstScore::ConstScore ( Size  priority,
Real  lowest_acceptable_value,
bool  use_lowest 
)
inline

Member Function Documentation

virtual bool protocols::frag_picker::scores::ConstScore::score ( FragmentCandidateOP  f,
FragmentScoreMapOP  empty_map 
)
inlinevirtual

Computes the score i.e. returns a constant times the number of residues in a fragment.

Detailed: the method returns ALWAYS TRUE which is inconsistent with other methods derived from
FragmentScoringMethod base class. The other option (i.e. returning false when a score is too high) doesn't make any sense in this case.

Implements protocols::frag_picker::scores::FragmentScoringMethod.

References CONST_SCORE, and protocols::frag_picker::scores::FragmentScoringMethod::id_.

Member Data Documentation

const int protocols::frag_picker::scores::ConstScore::CONST_SCORE = 1
static

the value used to score each position

Detailed: You don't have to change the value
here as you can always rescale the score by a weight provided in a score configuration file

Referenced by score().


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