Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
protocols::genetic_algorithm::EntityRandomizer Class Referenceabstract

#include <EntityRandomizer.hh>

Inheritance diagram for protocols::genetic_algorithm::EntityRandomizer:
Inheritance graph
[legend]

Public Types

typedef
utility::pointer::shared_ptr
< EntityRandomizer
OP
 
typedef
utility::pointer::shared_ptr
< EntityRandomizer const > 
COP
 
typedef Entity::OP EntityOP
 
typedef Entity::COP EntityCOP
 

Public Member Functions

 EntityRandomizer ()
 
 ~EntityRandomizer () override
 
virtual EntityOP random_entity ()
 
virtual void mutate (Entity &entity)=0
 
virtual void crossover (Entity &entity1, Entity &entity2)
 randomly swap [1, N-1] traits between two entities More...
 
virtual core::Size entity_length () const
 
virtual void set_mutation_rate (core::Real rate)
 
virtual core::Real mutation_rate () const
 
virtual core::Size library_size () const =0
 
virtual EntityCOP entity_template () const
 
virtual void set_entity_template (EntityCOP entity)
 

Protected Member Functions

virtual void set_entity_length (core::Size length)
 

Private Attributes

core::Size entity_length_
 
core::Real mutation_rate_
 
EntityCOP entity_template_
 

Member Typedef Documentation

typedef utility::pointer::shared_ptr< EntityRandomizer const > protocols::genetic_algorithm::EntityRandomizer::COP

Constructor & Destructor Documentation

protocols::genetic_algorithm::EntityRandomizer::EntityRandomizer ( )
protocols::genetic_algorithm::EntityRandomizer::~EntityRandomizer ( )
overridedefault

Member Function Documentation

void protocols::genetic_algorithm::EntityRandomizer::crossover ( Entity entity1,
Entity entity2 
)
virtual

randomly swap [1, N-1] traits between two entities

References protocols::genetic_algorithm::Entity::set_traits(), and protocols::genetic_algorithm::Entity::traits().

virtual core::Size protocols::genetic_algorithm::EntityRandomizer::entity_length ( ) const
inlinevirtual
EntityCOP protocols::genetic_algorithm::EntityRandomizer::entity_template ( ) const
virtual

References entity_template_.

virtual core::Size protocols::genetic_algorithm::EntityRandomizer::library_size ( ) const
pure virtual
virtual void protocols::genetic_algorithm::EntityRandomizer::mutate ( Entity entity)
pure virtual
virtual core::Real protocols::genetic_algorithm::EntityRandomizer::mutation_rate ( ) const
inlinevirtual
Entity::OP protocols::genetic_algorithm::EntityRandomizer::random_entity ( )
virtual
void protocols::genetic_algorithm::EntityRandomizer::set_entity_length ( core::Size  length)
protectedvirtual
void protocols::genetic_algorithm::EntityRandomizer::set_entity_template ( EntityCOP  entity)
virtual

References entity_template_.

virtual void protocols::genetic_algorithm::EntityRandomizer::set_mutation_rate ( core::Real  rate)
inlinevirtual

References mutation_rate_.

Referenced by random_entity().

Member Data Documentation

core::Size protocols::genetic_algorithm::EntityRandomizer::entity_length_
private
EntityCOP protocols::genetic_algorithm::EntityRandomizer::entity_template_
private
core::Real protocols::genetic_algorithm::EntityRandomizer::mutation_rate_
private

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