Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

Inheritance diagram for protocols::frag_picker::scores::ConstScore:
Inheritance graph
[legend]

Public Member Functions

 ConstScore (core::Size priority, core::Real lowest_acceptable_value, bool use_lowest)
 
bool score (FragmentCandidateOP f, FragmentScoreMapOP empty_map) override
 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 (core::Size priority, core::Real lowest_acceptable_value, bool use_lowest, std::string name)
 
std::string & get_score_name ()
 Returns a name of this scoring method. More...
 
core::Size get_id ()
 Returns an integer index assigned to this scoring method by a scoring manager. More...
 
void set_id (core::Size id)
 Sets a new integer index for this scoring method. More...
 
core::Size get_priority ()
 Returns a priority of this scoring method. More...
 
core::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 (core::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
core::Size id_
 
core::Size priority_
 
std::string name_
 
core::Real lowest_acceptable_value_
 
bool use_lowest_
 

Detailed Description

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

The total ConstScore for a fragment = n_frag_res * score_const

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

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

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: