![]() |
Rosetta Protocols
2014.35
|
#include <RationalMonteCarlo.hh>
Public Member Functions | |
RationalMonteCarlo (moves::MoverOP mover, ScoreFunctionOP score, core::Size num_trials, core::Real temperature, bool recover_low) | |
void | apply (Pose &pose) |
Applies the underlying mover to <pose> the specified number of times. More... | |
std::string | get_name () const |
Returns this mover's name. More... | |
bool | recover_low () const |
moves::MoverOP | mover () const |
core::Size | num_trials () const |
core::Real | temperature () const |
const core::scoring::ScoreFunction & | score_function () const |
void | reset (const core::pose::Pose &pose) |
Updates the last accepted and lowest scoring pose members of the MonteCarlo member variable to the score of the specified pose. More... | |
const core::pose::Pose & | lowest_score_pose () const |
const core::pose::Pose & | last_accepted_pose () const |
void | set_mover (moves::MoverOP mover) |
void | set_recover_low (bool recover_low) |
void | set_num_trials (core::Size num_trials) |
void | set_temperature (core::Real temperature) |
void | enable_autotemp (core::Real quench) |
void | disable_autotemp () |
void | set_score_function (core::scoring::ScoreFunctionOP score) |
Updates the score function. Before calling this method, make sure that apply() has been called at least once on a non-empty pose. More... | |
core::Size | add_trigger (const RationalMonteCarloTrigger &trigger) |
Registers the specified trigger with this instance. Returns a unique identifier for referring to this trigger in subsequent operations. More... | |
void | remove_trigger (core::Size trigger_id) |
Unregisters the trigger with the given unique identifier. More... | |
![]() | |
Mover () | |
virtual | ~Mover () |
virtual MoverSP | create () |
virtual void | apply (core::io::serialization::PipeMap &pmap) |
virtual void | parse_state (SerializableState const &state) |
virtual void | parse_def (utility::lua::LuaObject const &def, utility::lua::LuaObject const &score_fxns, utility::lua::LuaObject const &tasks, MoverCacheSP cache) |
virtual void | save_state (SerializableState &state) |
Mover (std::string const &type_name) | |
sets the type for a mover; name_ has been removed (2010/05/14) More... | |
Mover (Mover const &other) | |
Mover & | operator= (Mover const &other) |
assignment operator More... | |
virtual core::Real | last_proposal_density_ratio () |
std::string const & | type () const |
void | set_type (std::string const &setting) |
std::string | get_current_tag () const |
A tag is a unique identifier used to identify structures produced by this Mover. get_current_tag() returns the tag, and set_current_tag( std::string tag ) sets the tag. This functionality is not intended for use with the 2008 job distributor. More... | |
void | set_current_tag (std::string const &new_tag) |
virtual void | set_input_pose (PoseCOP pose) |
setter for poses contained for rms More... | |
virtual void | set_native_pose (PoseCOP pose) |
setter for native poses contained for rms -— we should get rid of this method? it is widely used, but a bit unsafe More... | |
PoseCOP | get_input_pose () const |
PoseCOP | get_native_pose () const |
virtual void | test_move (Pose &pose) |
: Unit test support function. Apply one move to a given pose. Allows extra test specific functions to be called before applying More... | |
void | type (const std::string &type_in) |
virtual MoverOP | clone () const |
Return a clone of the Mover object. More... | |
virtual void | parse_my_tag (TagCOP tag, basic::datacache::DataMap &data, Filters_map const &filters, Movers_map const &movers, Pose const &pose) |
Called by MoverFactory when constructing new Movers. Takes care of the specific mover's parsing. More... | |
std::string | get_type () const |
MoverStatus | get_last_move_status () const |
end parser interface, start Job Distributor interface///////////// More... | |
void | reset_status () |
resets status to SUCCESS, meant to be used before an apply(). The job distributor (august 08 vintage) uses this to ensure non-accumulation of status across apply()s. More... | |
virtual core::pose::PoseOP | get_additional_output () |
Mechanism by which a mover may return multiple output poses from a single input pose. More... | |
virtual void | clear_info () |
Strings container can be used to return miscellaneous info (as std::string) from a mover, such as notes about the results of apply(). The job distributor (Apr 09 vintage) will check this function to see if your protocol wants to add string info to the Job that ran this mover. One way this can be useful is that later, a JobOutputter may include/append this info to an output file. More... | |
virtual Strings & | info () |
non-const accessor More... | |
virtual Strings const & | info () const |
const accessor More... | |
virtual bool | reinitialize_for_each_job () const |
Inform the Job Distributor (August '08 vintage) whether this object needs to be freshly regenerated on each use. More... | |
virtual bool | reinitialize_for_new_input () const |
Inform the Job Distributor (August '08 vintage) whether this object needs to be regenerated when the input pose is about to change, (for example, if the Mover has special code on the first apply() that is only valid for that one input pose). More... | |
virtual MoverOP | fresh_instance () const |
Generates a new Mover object freshly created with the default ctor. More... | |
void | set_current_job (protocols::jobdist::BasicJobCOP job) |
jobdist::BasicJobCOP | get_current_job () const |
virtual void | show (std::ostream &output=std::cout) const |
Outputs details about the Mover, including current settings. More... | |
Protected Member Functions | |
void | fire_all_triggers (const Pose &pose) |
Executes all triggers attached to this instance. The order of trigger execution is undefined. Do not assume, depend, or in any way rely upon a partiular ordering. More... | |
![]() | |
void | set_last_move_status (MoverStatus status) |
nonvirtual setter for MoverStatus last_status_. Protected means that only the mover itself will be able to change its own status. The job distributor (august 08 vintage) is aware of status set with this function and will do what the MoverStatus says. More... | |
Private Types | |
typedef core::pose::Pose | Pose |
typedef core::scoring::ScoreFunctionOP | ScoreFunctionOP |
Private Attributes | |
moves::MoverOP | mover_ |
Underlying mover. More... | |
moves::MonteCarloOP | mc_ |
Determines whether applications of the base mover should be accepted by applying the Metropolis criterion to the pose. More... | |
core::Size | num_trials_ |
Number of times to execute the underlying mover in calls to apply() More... | |
bool | recover_low_ |
Determines whether the low scoring pose should be recovered at the conclusion of the apply() method. More... | |
Triggers | triggers_ |
Collection of function callbacks. More... | |
core::Size | next_trigger_id_ |
Next trigger id to be assigned. More... | |
Additional Inherited Members | |
![]() | |
typedef utility::tag::TagCOP | TagCOP |
typedef core::pose::Pose | Pose |
typedef core::pose::PoseCOP | PoseCOP |
typedef protocols::filters::Filters_map | Filters_map |
typedef std::list< std::string > | Strings |
![]() | |
static std::string | name () |
static void | register_options () |
Overload this static method if you access options within the mover. More... | |
|
private |
protocols::simple_moves::rational_mc::RationalMonteCarlo::RationalMonteCarlo | ( | moves::MoverOP | mover, |
ScoreFunctionOP | score, | ||
core::Size | num_trials, | ||
core::Real | temperature, | ||
bool | recover_low | ||
) |
References protocols::viewer::add_monte_carlo_viewer(), and mc_.
Size protocols::simple_moves::rational_mc::RationalMonteCarlo::add_trigger | ( | const RationalMonteCarloTrigger & | trigger | ) |
Registers the specified trigger with this instance. Returns a unique identifier for referring to this trigger in subsequent operations.
References next_trigger_id_, and triggers_.
|
virtual |
Applies the underlying mover to <pose> the specified number of times.
Implements protocols::moves::Mover.
References protocols::moves::MonteCarlo::boltzmann(), fire_all_triggers(), mc_, mover_, num_trials(), recover_low(), protocols::moves::MonteCarlo::recover_low(), protocols::moves::MonteCarlo::reset(), protocols::moves::MonteCarlo::reset_counters(), protocols::moves::MonteCarlo::score_function(), and protocols::moves::MonteCarlo::show_counters().
Referenced by protocols::star::StarAbinitio::apply().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::disable_autotemp | ( | ) |
References mc_, and protocols::moves::MonteCarlo::set_autotemp().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::enable_autotemp | ( | core::Real | quench | ) |
References mc_, and protocols::moves::MonteCarlo::set_autotemp().
Referenced by protocols::star::StarAbinitio::apply().
|
protected |
|
virtual |
Returns this mover's name.
Implements protocols::moves::Mover.
const Pose & protocols::simple_moves::rational_mc::RationalMonteCarlo::last_accepted_pose | ( | ) | const |
References protocols::moves::MonteCarlo::last_accepted_pose(), and mc_.
const Pose & protocols::simple_moves::rational_mc::RationalMonteCarlo::lowest_score_pose | ( | ) | const |
References protocols::moves::MonteCarlo::lowest_score_pose(), and mc_.
MoverOP protocols::simple_moves::rational_mc::RationalMonteCarlo::mover | ( | ) | const |
References mover_.
Referenced by set_mover().
Size protocols::simple_moves::rational_mc::RationalMonteCarlo::num_trials | ( | ) | const |
References num_trials_.
Referenced by apply(), and set_num_trials().
bool protocols::simple_moves::rational_mc::RationalMonteCarlo::recover_low | ( | ) | const |
References recover_low_.
Referenced by apply(), and set_recover_low().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::remove_trigger | ( | core::Size | trigger_id | ) |
Unregisters the trigger with the given unique identifier.
References triggers_.
void protocols::simple_moves::rational_mc::RationalMonteCarlo::reset | ( | const core::pose::Pose & | pose | ) |
Updates the last accepted and lowest scoring pose members of the MonteCarlo member variable to the score of the specified pose.
References mc_, and protocols::moves::MonteCarlo::reset().
const ScoreFunction & protocols::simple_moves::rational_mc::RationalMonteCarlo::score_function | ( | ) | const |
References mc_, and protocols::moves::MonteCarlo::score_function().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::set_mover | ( | moves::MoverOP | mover | ) |
References mover(), and mover_.
Referenced by protocols::star::configure_rmc().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::set_num_trials | ( | core::Size | num_trials | ) |
References num_trials(), and num_trials_.
Referenced by protocols::star::configure_rmc().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::set_recover_low | ( | bool | recover_low | ) |
References recover_low(), and recover_low_.
Referenced by protocols::star::configure_rmc().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::set_score_function | ( | core::scoring::ScoreFunctionOP | score | ) |
Updates the score function. Before calling this method, make sure that apply() has been called at least once on a non-empty pose.
References mc_, and protocols::moves::MonteCarlo::score_function().
Referenced by protocols::star::configure_rmc().
void protocols::simple_moves::rational_mc::RationalMonteCarlo::set_temperature | ( | core::Real | temperature | ) |
References mc_, and protocols::moves::MonteCarlo::set_temperature().
Referenced by protocols::star::configure_rmc().
Real protocols::simple_moves::rational_mc::RationalMonteCarlo::temperature | ( | ) | const |
References mc_, and protocols::moves::MonteCarlo::temperature().
|
private |
Determines whether applications of the base mover should be accepted by applying the Metropolis criterion to the pose.
Referenced by apply(), disable_autotemp(), enable_autotemp(), last_accepted_pose(), lowest_score_pose(), RationalMonteCarlo(), reset(), score_function(), set_score_function(), set_temperature(), and temperature().
|
private |
Underlying mover.
Referenced by apply(), mover(), and set_mover().
|
private |
Next trigger id to be assigned.
Referenced by add_trigger().
|
private |
Number of times to execute the underlying mover in calls to apply()
Referenced by num_trials(), and set_num_trials().
|
private |
Determines whether the low scoring pose should be recovered at the conclusion of the apply() method.
Referenced by recover_low(), and set_recover_low().
|
private |
Collection of function callbacks.
Referenced by add_trigger(), fire_all_triggers(), and remove_trigger().