Rosetta
|
#include <bowman.h>
Classes | |
struct | BackEnd |
Public Types | |
using | FunctionSignature = std::map< std::string, ArgumentCSP > |
using | Functions = std::map< std::string, FunctionSignature > |
using | BackEnds = std::map< std::string, BackEnd > |
Signals | |
void | client_connected (std::string const &) |
void | client_disconnected (std::string const &) |
void | specification_received (std::string const &, JSON_CSP const &) |
void | result_received (core::pose::PoseOP const &, JSON_CSP const &) |
void | progress_data_received (core::pose::PoseOP const &, JSON_CSP const &) |
void | back_ends_changed (Bowman const *) |
Public Member Functions | |
~Bowman () | |
void | execute (core::pose::PoseCOP const &, FunctionID const &command, Arguments const &args=Arguments()) |
void | execute (JSON_CSP const &command, std::string back_end="") |
void | abort (std::string back_end="") |
Send an abort signal to back-end, if no back-end specified then signal sent to all connected clients. More... | |
BackEnds const & | back_ends () const |
BackEnds access. More... | |
int | size () const |
BackEnds::const_iterator | begin () const |
BackEnds::const_iterator | end () const |
void | pause (bool) |
access to various HAL options More... | |
Static Public Member Functions | |
static Bowman & | bowman () |
Private Slots | |
void | on_bowman_thread_specification_received (std::string const &, JSON_CSP const &) |
void | on_bowman_thread_client_disconnected (std::string const &) |
void | on_bowman_thread_result_received (JSON_SP const &) |
void | on_bowman_thread_progress_data_received (JSON_SP const &) |
Private Member Functions | |
Bowman (QObject *parent=nullptr) | |
Private Attributes | |
BackEnds | back_ends_ |
protocols::network::HAL_Settings | hal_settings_ |
ui::network::BowmanThread | bowman_thread_ |
Bowman representation in main (GUI) thread store list of currently connected hal's clients and they specifications
using ui::network::Bowman::BackEnds = std::map<std::string, BackEnd> |
using ui::network::Bowman::Functions = std::map<std::string, FunctionSignature> |
using ui::network::Bowman::FunctionSignature = std::map<std::string, ArgumentCSP> |
|
private |
References bowman_thread_, client_connected(), ui::network::BowmanThread::client_connected(), ui::network::BowmanThread::client_disconnected(), hal_settings_, on_bowman_thread_client_disconnected(), on_bowman_thread_progress_data_received(), on_bowman_thread_result_received(), on_bowman_thread_specification_received(), ui::network::BowmanThread::progress_data_received(), ui::network::BowmanThread::result_received(), ui::network::BowmanThread::set_hal_settings(), and ui::network::BowmanThread::specification_received().
|
default |
void ui::network::Bowman::abort | ( | std::string | back_end = "" | ) |
Send an abort
signal to back-end, if no back-end specified then signal sent to all connected clients.
References ui::network::BowmanThread::abort(), compute_difference::b, back_ends_, and bowman_thread_.
Referenced by job_manager.CommandRunner::menu().
|
inline |
|
signal |
|
inline |
References back_ends_.
Referenced by ui::network::BowmanModel::on_bowman_back_ends_changed().
|
static |
Only one inctance of Bowman object should exist per GUI application, use bowman() to get reference to that instance Note: you should only call this after QCoreApplication instance got constructed and before it got destroyed
References compute_difference::b.
Referenced by ui::network::BowmanModel::BowmanModel().
|
signal |
Referenced by Bowman().
|
signal |
Referenced by on_bowman_thread_client_disconnected().
|
inline |
References back_ends_.
Referenced by ui::network::BowmanModel::on_bowman_back_ends_changed().
void ui::network::Bowman::execute | ( | core::pose::PoseCOP const & | pose, |
FunctionID const & | command, | ||
Arguments const & | args = Arguments() |
||
) |
Initiate execution of given command on back_end
. If given PoseOP is empty - do not add pose
as an argument to command If no command.name is specified, - execute null
command If no command.back_end specified, - execute of first avalible back_end
Initiate execution of given command on back_end
. If no command is specified, - execute null
command If no back_end specified, - execute of first avalible back_end
References a, find_lowest_scoring_relaxed_struct::args, compute_difference::b, back_ends_, execute::command, create_a3b_hbs::j, object, and beta_nonlocal::pose.
void ui::network::Bowman::execute | ( | JSON_CSP const & | command, |
std::string | back_end = "" |
||
) |
Initiate execution of given command on back_end
. If no back_end specified, - execute of first avalible back_end
References back_ends_, bowman_thread_, execute::command, and ui::network::BowmanThread::execute().
|
privateslot |
References back_ends_, back_ends_changed(), and client_disconnected().
Referenced by Bowman().
|
privateslot |
References basic::options::OptionKeys::ddg::json, beta_nonlocal::pose, and progress_data_received().
Referenced by Bowman().
|
privateslot |
References basic::options::OptionKeys::ddg::json, beta_nonlocal::pose, and result_received().
Referenced by Bowman().
|
privateslot |
References a, arg(), find_lowest_scoring_relaxed_struct::args, back_ends_, back_ends_changed(), ui::network::Argument::create(), create_a3b_hbs::f, basic::options::OptionKeys::ddg::json, and specification_received().
Referenced by Bowman().
void ui::network::Bowman::pause | ( | bool | state | ) |
access to various HAL options
References bowman_thread_, hal_settings_, and ui::network::BowmanThread::set_hal_settings().
|
signal |
Referenced by on_bowman_thread_progress_data_received().
|
signal |
Referenced by on_bowman_thread_result_received().
|
inline |
References back_ends_.
|
signal |
Referenced by on_bowman_thread_specification_received().
|
private |
Referenced by abort(), back_ends(), begin(), end(), execute(), on_bowman_thread_client_disconnected(), on_bowman_thread_specification_received(), and size().
|
private |
|
private |