![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
The connections to every configured worker, plus the agent partition. More...
#include <line/solvers/ag/ag_worker_client.h>
Public Member Functions | |
| AgWorkerPool (const std::vector< std::string > &endpoints, double timeout_seconds) | |
| ~AgWorkerPool () | |
| AgWorkerPool (const AgWorkerPool &)=delete | |
| AgWorkerPool & | operator= (const AgWorkerPool &)=delete |
| template<class Payload> | |
| void | ensure_assigned (std::size_t num_agents, Payload payload) |
| Connect and ship the static half of each owned agent, once. | |
| void | sweep (const std::vector< double > &x, std::vector< std::vector< double > > &pi, std::vector< bool > &pending) |
| One sweep. | |
The connections to every configured worker, plus the agent partition.
Definition at line 80 of file ag_worker_client.h.
|
inline |
Definition at line 82 of file ag_worker_client.h.
Referenced by AgWorkerPool(), operator=(), and line::ag::solver_ag().
|
inline |
Definition at line 94 of file ag_worker_client.h.
|
delete |
References AgWorkerPool().
|
inline |
Connect and ship the static half of each owned agent, once.
payload maps an agent index to its wire description.
Definition at line 104 of file ag_worker_client.h.
Referenced by line::ag::ag_sweep_cluster().
|
delete |
References AgWorkerPool().
|
inline |
One sweep.
Fills pi for every agent a live worker answered for and clears its pending flag; the rest are left to the caller.
Definition at line 137 of file ag_worker_client.h.
Referenced by line::ag::ag_sweep_cluster().