Rosetta 3.4
Public Member Functions
protocols::moves::RandomMover Class Reference

RandomMover picks a random move and applies it. More...

#include <MoverContainer.hh>

Inheritance diagram for protocols::moves::RandomMover:
Inheritance graph
[legend]
Collaboration diagram for protocols::moves::RandomMover:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RandomMover ()
 APL NOTE: Liz, I'm making up a value of "1.0" here, because you haven't set this value. Is this a reasonable initial value?
 RandomMover (RandomMover const &)
 Copy constructor. Performs a deep copy of all contained movers.
virtual MoverOP clone () const
 clone has to be overridden only if clone invocation is expected.
virtual void apply (core::pose::Pose &pose)
virtual std::string get_name () const
 Each derived class must specify its name. The class name.
core::Real last_proposal_density_ratio ()
void parse_my_tag (utility::tag::TagPtr const tag, protocols::moves::DataMap &, protocols::filters::Filters_map const &, protocols::moves::Movers_map const &, core::pose::Pose const &)
 Called by MoverFactory when constructing new Movers. Takes care of the specific mover's parsing.

Detailed Description

RandomMover picks a random move and applies it.

If nmoves is greater than 1, it repeats this process nmoves times for each call to apply(). This mover supports weights --- the individual moves are sampled with frequency proportional to their weight given with add_mover( mover, weight );


Constructor & Destructor Documentation

protocols::moves::RandomMover::RandomMover ( ) [inline]

APL NOTE: Liz, I'm making up a value of "1.0" here, because you haven't set this value. Is this a reasonable initial value?

Referenced by clone().

protocols::moves::RandomMover::RandomMover ( RandomMover const &  source)

Copy constructor. Performs a deep copy of all contained movers.


Member Function Documentation

void protocols::moves::RandomMover::apply ( core::pose::Pose pose) [virtual]
MoverOP protocols::moves::RandomMover::clone ( ) const [virtual]

clone has to be overridden only if clone invocation is expected.

clone is meant to return an OP'ed deep copy of this object. This really should be a pure virtual in the base class, but adding pure virtuals to Mover would massively disrupt the code. This default implementation crashes at runtime instead of compiletime if you try to call it. If this code is causing you problems, your Mover needs to override this function.

Reimplemented from protocols::moves::Mover.

References RandomMover().

std::string protocols::moves::RandomMover::get_name ( ) const [virtual]

Each derived class must specify its name. The class name.

Implements protocols::moves::Mover.

core::Real protocols::moves::RandomMover::last_proposal_density_ratio ( ) [virtual]

Reimplemented from protocols::moves::Mover.

void protocols::moves::RandomMover::parse_my_tag ( utility::tag::TagPtr const  tag,
protocols::moves::DataMap data,
protocols::filters::Filters_map const &  filters,
protocols::moves::Movers_map const &  movers,
core::pose::Pose const &  pose 
) [virtual]

Called by MoverFactory when constructing new Movers. Takes care of the specific mover's parsing.

Some movers need not be parsed, so we shouldn't stop executions. This, however, calls attention to the lack of this method, which could be due to something as silly as a wrong parameters definition.

Reimplemented from protocols::moves::Mover.

References protocols::moves::MoverContainer::add_mover(), and protocols::moves::find_mover_or_die().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines