IMP  2.0.0
The Integrative Modeling Platform
IMP::core::WriteRestraintScoresOptimizerState Class Reference

#include <IMP/core/model_statistics.h>

+ Inheritance diagram for IMP::core::WriteRestraintScoresOptimizerState:

Public Member Functions

 WriteRestraintScoresOptimizerState (const Restraints &rs, base::TextOutput out)
 
- Public Member Functions inherited from IMP::core::PeriodicOptimizerState
 PeriodicOptimizerState (std::string name)
 
unsigned int get_number_of_updates () const
 Return the number of times update has been called.
 
unsigned int get_period () const
 
virtual void reset ()
 
void set_number_of_updates (unsigned int n)
 Set the counter.
 
void set_period (unsigned int p)
 
void update_always ()
 
- Public Member Functions inherited from IMP::kernel::OptimizerState
 OptimizerState (std::string name="OptimizerState %1%")
 
Optimizerget_optimizer () const
 
virtual void set_is_optimizing (bool)
 
virtual void update ()=0
 Called when the Optimizer accepts a new conformation.
 
- Public Member Functions inherited from IMP::base::Object
virtual void clear_caches ()
 
virtual IMP::base::VersionInfo get_version_info () const =0
 Get information about the module and version of the object.
 
void set_check_level (CheckLevel l)
 
void set_log_level (LogLevel l)
 Set the logging level used in this object. More...
 
void set_was_used (bool tf) const
 
void show (std::ostream &out=std::cout) const
 
const std::string & get_name () const
 
void set_name (std::string name)
 

Protected Member Functions

virtual void do_update (unsigned int call_num)
 

Additional Inherited Members

- Protected Attributes inherited from IMP::kernel::OptimizerState
UncheckedWeakPointer< Optimizeroptimizer_
 

Detailed Description

Periodically call write the scores of the passed restraints to a file. The file starts with a line whose first character is a # with the names of the restraints separated by commas and then has one line per periodic update with comma separated scores for each restraint.

Definition at line 27 of file model_statistics.h.

Member Function Documentation

virtual void IMP::core::WriteRestraintScoresOptimizerState::do_update ( unsigned int  call_number)
protectedvirtual

This method is called every get_period() update calls.

Implements IMP::core::PeriodicOptimizerState.


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