Rosetta 3.4
Public Member Functions | Static Public Attributes
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]
Collaboration diagram for protocols::frag_picker::scores::ConstScore:
Collaboration graph
[legend]

List of all members.

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.

Static Public Attributes

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

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 
) [inline, virtual]

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines