Rosetta
Public Types | Public Member Functions | Private Attributes | List of all members
protocols::pack_daemon::TopEntitySet Class Reference

#include <MultistateFitnessFunction.hh>

Inheritance diagram for protocols::pack_daemon::TopEntitySet:
Inheritance graph
[legend]

Public Types

typedef protocols::genetic_algorithm::Entity Entity
 
typedef protocols::genetic_algorithm::EntityOP EntityOP
 
typedef utility::vector1< core::RealStateEnergies
 
typedef std::pair< StateEnergies, StateEnergiesStateEnergiesAndNPDs
 
typedef std::pair< EntityOP, StateEnergiesAndNPDsEntityAndScore
 
typedef utility::vector1< EntityAndScoreEntityHistory
 

Public Member Functions

 TopEntitySet ()
 
core::Size size () const
 
EntityAndScore const & operator[] (core::Size index) const
 
EntityAndScoreoperator[] (core::Size index)
 
void desired_entity_history_size (core::Size setting)
 
core::Size desired_entity_history_size () const
 
void clear ()
 
std::list< genetic_algorithm::EntityOPupdate_entity_history (Entity const &ent, StateEnergiesAndNPDs const &seanpds, bool &added_new_entity)
 Update the internal history after receiving a new entity; returns the list of entities that are to be discarded. The boolean added_new_entity is set to true if the given entity was added to the the list of top entities. More...
 
core::Size index_of_entity (Entity const &ent) const
 
EntityAndScore pop ()
 remove the worst entity from the set and return it More...
 

Private Attributes

core::Size desired_entity_history_size_
 
core::Size n_tied_for_worst_
 
EntityHistory top_entities_
 

Member Typedef Documentation

◆ Entity

◆ EntityAndScore

◆ EntityHistory

◆ EntityOP

◆ StateEnergies

◆ StateEnergiesAndNPDs

Constructor & Destructor Documentation

◆ TopEntitySet()

protocols::pack_daemon::TopEntitySet::TopEntitySet ( )

Member Function Documentation

◆ clear()

void protocols::pack_daemon::TopEntitySet::clear ( )

◆ desired_entity_history_size() [1/2]

core::Size protocols::pack_daemon::TopEntitySet::desired_entity_history_size ( ) const

◆ desired_entity_history_size() [2/2]

void protocols::pack_daemon::TopEntitySet::desired_entity_history_size ( core::Size  setting)

◆ index_of_entity()

core::Size protocols::pack_daemon::TopEntitySet::index_of_entity ( Entity const &  ent) const

◆ operator[]() [1/2]

TopEntitySet::EntityAndScore & protocols::pack_daemon::TopEntitySet::operator[] ( core::Size  index)

References top_entities_.

◆ operator[]() [2/2]

TopEntitySet::EntityAndScore const & protocols::pack_daemon::TopEntitySet::operator[] ( core::Size  index) const

References top_entities_.

◆ pop()

TopEntitySet::EntityAndScore protocols::pack_daemon::TopEntitySet::pop ( )

remove the worst entity from the set and return it

References top_entities_.

◆ size()

core::Size protocols::pack_daemon::TopEntitySet::size ( ) const

◆ update_entity_history()

std::list< TopEntitySet::EntityOP > protocols::pack_daemon::TopEntitySet::update_entity_history ( Entity const &  ent,
StateEnergiesAndNPDs const &  seanpds,
bool &  added_new_entity 
)

Update the internal history after receiving a new entity; returns the list of entities that are to be discarded. The boolean added_new_entity is set to true if the given entity was added to the the list of top entities.

References desired_entity_history_size_, protocols::genetic_algorithm::Entity::fitness(), n_tied_for_worst_, and top_entities_.

Referenced by protocols::pack_daemon::MultistateFitnessFunction::update_entity_history().

Member Data Documentation

◆ desired_entity_history_size_

core::Size protocols::pack_daemon::TopEntitySet::desired_entity_history_size_
private

◆ n_tied_for_worst_

core::Size protocols::pack_daemon::TopEntitySet::n_tied_for_worst_
private

◆ top_entities_

EntityHistory protocols::pack_daemon::TopEntitySet::top_entities_
private

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