![]() |
Rosetta
3.8
|
Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input. More...
#include <ArchiveBase.hh>
Public Member Functions | |
virtual | ~AbstractArchiveBase () |
Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
AbstractArchiveBase (BaseArchiveManagerAP ptr) | |
AbstractArchiveBase () | |
virtual bool | finished () const =0 |
is archive converged ? More... | |
virtual void | initialize ()=0 |
virtual bool | still_interested (jd2::archive::Batch const &) const |
old-batches might be outdated and should not be computed anymore return true for this query if this is the case for old_batch More... | |
virtual void | generate_batch ()=0 |
create a new batch with manager().start_new_batch() and manager().finalize_batch(); More... | |
virtual core::Size | generate_batch (jd2::archive::Batch &, core::Size) |
create a batch for the current stage, return ct != 0 if more batches should be created at current stage. (e.g., harvest_batches) More... | |
virtual void | idle ()=0 |
do some computations on archive that can be done while we are waiting More... | |
virtual void | read_structures (core::io::silent::SilentFileData &returned_decoys, core::io::silent::SilentFileData &alternative_decoys, Batch const &batch)=0 |
read 'returned_decoys' from 'batch' into archive. More... | |
virtual void | save_to_file (std::string suffix="")=0 |
save archive to file .. you can put 'suffix' at end of dirname to save other snapshots than the 'current' More... | |
virtual void | save_status (std::ostream &) const =0 |
virtual bool | restore_from_file ()=0 |
restore archive More... | |
virtual void | init_from_decoy_set (core::io::silent::SilentFileData const &sfd)=0 |
void | set_name (std::string const &set) |
set name of archive ( used also for save_to_file and restore_from_file ) More... | |
std::string const & | name () const |
BaseArchiveManager & | manager () |
access to the ArchiveManager (control of batches) More... | |
virtual void | set_manager (BaseArchiveManagerAP manager) |
Protected Member Functions | |
BaseArchiveManagerAP | manager_ptr () |
Private Attributes | |
BaseArchiveManagerAP | manager_ |
std::string | name_ |
Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input.
This job distributor is meant for running jobs where the machine you are using has a large number of processors, the number of jobs is much greater than the number of processors, or the runtimes of the individual jobs could vary greatly. It dedicates the head node (whichever processor gets processor rank #0) to handling job requests from the slave nodes (all nonzero ranks). Unlike the MPIWorkPartitionJobDistributor, this JD will not work at all without MPI and the implementations of all but the interface functions have been put inside of ifdef directives. Generally each function has a master and slave version, and the interface functions call one or the other depending on processor rank.
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
|
inline |
|
inline |
|
pure virtual |
is archive converged ?
Implemented in protocols::jd2::archive::ArchiveBase, protocols::abinitio::IterativeBase, and protocols::abinitio::IterativeAbrelax.
|
pure virtual |
create a new batch with manager().start_new_batch() and manager().finalize_batch();
Implemented in protocols::jd2::archive::ArchiveBase, protocols::abinitio::IterativeBase, protocols::abinitio::IterativeAbrelax, protocols::abinitio::HedgeArchive, protocols::abinitio::IterativeFullatom, and protocols::jd2::archive::VarianceStatisticsArchive.
Referenced by protocols::jd2::archive::ArchiveManager::go().
|
inlinevirtual |
create a batch for the current stage, return ct != 0 if more batches should be created at current stage. (e.g., harvest_batches)
Reimplemented in protocols::abinitio::IterativeBase, protocols::abinitio::IterativeAbrelax, and protocols::abinitio::IterativeFullatom.
|
pure virtual |
do some computations on archive that can be done while we are waiting
Implemented in protocols::jd2::archive::ArchiveBase, protocols::abinitio::IterativeBase, and protocols::abinitio::IterativeAbrelax.
Referenced by protocols::jd2::archive::ArchiveManager::idle().
|
pure virtual |
Implemented in protocols::jd2::archive::ArchiveBase, protocols::jd2::archive::EvaluatedArchive, protocols::abinitio::IterativeBase, protocols::abinitio::IterativeAbrelax, protocols::abinitio::HedgeArchive, and protocols::jd2::archive::VarianceStatisticsArchive.
Referenced by protocols::jd2::archive::ArchiveManager::go().
|
pure virtual |
|
inline |
access to the ArchiveManager (control of batches)
References manager_.
Referenced by protocols::abinitio::IterativeBase::collect_hedgeing_decoys_from_batches(), protocols::abinitio::IterativeBase::generate_batch(), protocols::abinitio::IterativeBase::increment_stage(), protocols::abinitio::IterativeBase::reassign_noesy_data(), protocols::abinitio::IterativeBase::rescore_nonlocal_archive(), and set_manager().
|
inlineprotected |
References manager_.
Referenced by protocols::abinitio::IterativeBase::increment_stage().
|
inline |
References name_.
Referenced by protocols::abinitio::IterativeBase::add_core_evaluator(), protocols::jd2::archive::VarianceStatisticsArchive::add_evaluated_structure(), protocols::jd2::archive::EvaluatedArchive::add_evaluation(), protocols::abinitio::IterativeBase::collect_hedge_structures(), protocols::jd2::archive::NormalizedEvaluatedArchive::determine_score_variations(), protocols::abinitio::IterativeBase::gen_evaluation_output(), protocols::abinitio::IterativeBase::gen_noe_assignments(), protocols::abinitio::IterativeBase::generate_batch(), protocols::abinitio::IterativeAbrelax::idle(), protocols::jd2::archive::NormalizedEvaluatedArchive::initialize(), protocols::jd2::archive::EvaluatedArchive::read_structures(), protocols::abinitio::IterativeBase::read_structures(), protocols::abinitio::HedgeArchive::remove_pending_decoys(), protocols::jd2::archive::EvaluatedArchive::rescore(), protocols::jd2::archive::ArchiveBase::restore_from_file(), protocols::abinitio::HedgeArchive::restore_status(), protocols::abinitio::IterativeBase::restore_status(), protocols::abinitio::HedgeArchive::save_pending_decoys(), protocols::jd2::archive::ArchiveBase::save_to_file(), protocols::jd2::archive::EvaluatedArchive::select_score(), protocols::jd2::archive::EvaluatedArchive::set_weight(), protocols::abinitio::IterativeBase::setup_filter_cst(), and protocols::abinitio::IterativeBase::update_noesy_filter_files().
|
pure virtual |
read 'returned_decoys' from 'batch' into archive.
Implemented in protocols::jd2::archive::ArchiveBase, protocols::abinitio::IterativeBase, protocols::jd2::archive::EvaluatedArchive, and protocols::abinitio::IterativeAbrelax.
Referenced by protocols::jd2::archive::BaseArchiveManager::read_returning_decoys().
|
pure virtual |
restore archive
Implemented in protocols::jd2::archive::ArchiveBase, protocols::jd2::archive::EvaluatedArchive, protocols::jd2::archive::NormalizedEvaluatedArchive, protocols::abinitio::IterativeAbrelax, and protocols::abinitio::IterativeCentroid.
Referenced by protocols::jd2::archive::ArchiveManager::restore_archive().
|
pure virtual |
|
pure virtual |
save archive to file .. you can put 'suffix' at end of dirname to save other snapshots than the 'current'
Implemented in protocols::jd2::archive::EvaluatedArchive, protocols::jd2::archive::ArchiveBase, protocols::jd2::archive::NormalizedEvaluatedArchive, protocols::abinitio::IterativeAbrelax, and protocols::abinitio::IterativeCentroid.
Referenced by protocols::jd2::archive::ArchiveManager::save_archive().
|
inlinevirtual |
Reimplemented in protocols::abinitio::IterativeAbrelax.
References manager(), and manager_.
Referenced by protocols::abinitio::IterativeAbrelax::set_manager().
|
inline |
set name of archive ( used also for save_to_file and restore_from_file )
References name_.
Referenced by protocols::abinitio::HedgeArchive::HedgeArchive(), protocols::abinitio::IterativeBase::IterativeBase(), and protocols::jd2::archive::VarianceStatisticsArchive::VarianceStatisticsArchive().
|
inlinevirtual |
old-batches might be outdated and should not be computed anymore return true for this query if this is the case for old_batch
Reimplemented in protocols::abinitio::IterativeBase, and protocols::abinitio::IterativeAbrelax.
Referenced by protocols::jd2::archive::ArchiveBase::count_structure(), protocols::jd2::archive::BaseArchiveManager::finalize_batch(), and protocols::abinitio::IterativeBase::still_interested().
|
private |
Referenced by manager(), manager_ptr(), and set_manager().
|
private |
Referenced by name(), and set_name().