![]() |
Rosetta Protocols
2014.35
|
represents a single pool used by quota selector More...
#include <QuotaPool.hh>
Public Member Functions | |
QuotaPool (std::string pool_name, Real quota_fraction) | |
Creates a pool of a given size and name. More... | |
virtual | ~QuotaPool () |
virtual bool | could_be_accepted (ScoredCandidate) const =0 |
virtual Size | total_size () const =0 |
Says how many fragments (in total) may fit into this pool. More... | |
virtual Size | current_size () const =0 |
Says how many fragments are currently in this pool. More... | |
virtual Size | size_left () const =0 |
Says how many fragments can still be inserted into this pool. More... | |
virtual void | clear ()=0 |
Makes the pool empty by removing all candidates. More... | |
virtual void | push (ScoredCandidate)=0 |
Push a fragment candidate into the pool container. More... | |
virtual Size | count_candidates () const =0 |
Check how many candidates have been already collected for a given position. More... | |
std::string const & | get_pool_name () const |
returns the name assigned to this quota pool More... | |
virtual void | show_availability (std::ostream &where) const |
prints information on which fragments can be accepted by this pool and how many of them More... | |
Real | get_fraction () const |
returns the fraction of this quota pool in the entire population of fragments More... | |
virtual void | set_fraction (Real new_fraction) |
Sets the fraction of this quota pool in the entire population of fragments. More... | |
virtual Real | quota_score (ScoredCandidate candidate) const |
provides the score for a candidate that was used to sort a quota pool More... | |
![]() | |
virtual bool | add (ScoredCandidate)=0 |
Insert a fragment candidate to the container. More... | |
virtual void | insert (Size, CandidatesCollectorOP)=0 |
inserts candidates from another collector Candidates may or may not get inserted depending on the candidate and type of storage More... | |
virtual Size | count_candidates (Size) const =0 |
Check how many candidates have been already collected for a given position. More... | |
virtual Size | query_length () const =0 |
Check the size of query sequence that this object knows. This is mainly to be ale to check if it is the same as in the other parts of fragment picking machinery. More... | |
virtual ScoredCandidatesVector1 & | get_candidates (Size position_in_query)=0 |
virtual void | print_report (std::ostream &output, scores::FragmentScoreManagerOP scoring) const =0 |
Describes what has been collected. More... | |
Private Attributes | |
std::string | pool_name_ |
Real | quota_fraction_ |
represents a single pool used by quota selector
|
inline |
Creates a pool of a given size and name.
name | - name assigned to this pool. This in general may be any string that later allows one control pool's behavior from a flag file |
References pool_name_, and quota_fraction_.
|
inlinevirtual |
|
pure virtual |
Makes the pool empty by removing all candidates.
Implements protocols::frag_picker::CandidatesCollector.
Implemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
|
pure virtual |
|
pure virtual |
Check how many candidates have been already collected for a given position.
Implements protocols::frag_picker::CandidatesCollector.
Implemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
|
pure virtual |
Says how many fragments are currently in this pool.
Implemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
|
inline |
returns the fraction of this quota pool in the entire population of fragments
References quota_fraction_.
|
inline |
returns the name assigned to this quota pool
References pool_name_.
Referenced by protocols::frag_picker::quota::SecondaryStructurePool::print_report(), protocols::frag_picker::quota::ABEGO_SS_Pool::print_report(), and protocols::frag_picker::quota::TorsionBinPool::show_availability().
|
pure virtual |
Push a fragment candidate into the pool container.
Implemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
|
inlinevirtual |
provides the score for a candidate that was used to sort a quota pool
Reimplemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
|
inlinevirtual |
Sets the fraction of this quota pool in the entire population of fragments.
Reimplemented in protocols::frag_picker::quota::SecondaryStructurePool, and protocols::frag_picker::quota::ABEGO_SS_Pool.
References quota_fraction_.
Referenced by protocols::frag_picker::quota::ABEGO_SS_Pool::set_fraction(), and protocols::frag_picker::quota::SecondaryStructurePool::set_fraction().
|
inlinevirtual |
prints information on which fragments can be accepted by this pool and how many of them
Reimplemented in protocols::frag_picker::quota::TorsionBinPool.
References pool_name_, and size_left().
|
pure virtual |
Says how many fragments can still be inserted into this pool.
Implemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
Referenced by show_availability().
|
pure virtual |
Says how many fragments (in total) may fit into this pool.
Implemented in protocols::frag_picker::quota::ABEGO_SS_Pool, and protocols::frag_picker::quota::SecondaryStructurePool.
|
private |
Referenced by get_pool_name(), QuotaPool(), and show_availability().
|
private |
Referenced by get_fraction(), QuotaPool(), and set_fraction().