TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Types | Public Member Functions | List of all members
cpid::Cpid2kGlobalState Class Reference

Encapsulates information about the participating peers in a cpid2k job. More...

#include <cpid2kworker.h>

Public Types

using Clock = std::chrono::steady_clock
 

Public Member Functions

 Cpid2kGlobalState (std::string prefix, int64_t updateIntervalMs=5 *1000)
 
void update (RedisClient &client)
 
std::string_view prefix () const
 
bool isDone ()
 
std::vector< Cpid2kWorkerInfopeers (std::string_view role)
 Provides information about peers, filtered by role. More...
 
std::vector< std::string > serviceEndpoints (std::string const &serviceName)
 

Detailed Description

Encapsulates information about the participating peers in a cpid2k job.

Member Typedef Documentation

using cpid::Cpid2kGlobalState::Clock = std::chrono::steady_clock

Constructor & Destructor Documentation

cpid::Cpid2kGlobalState::Cpid2kGlobalState ( std::string  prefix,
int64_t  updateIntervalMs = 5 * 1000 
)

Member Function Documentation

bool cpid::Cpid2kGlobalState::isDone ( )
std::vector< Cpid2kWorkerInfo > cpid::Cpid2kGlobalState::peers ( std::string_view  role)

Provides information about peers, filtered by role.

std::string_view cpid::Cpid2kGlobalState::prefix ( ) const
inline
std::vector< std::string > cpid::Cpid2kGlobalState::serviceEndpoints ( std::string const &  serviceName)
void cpid::Cpid2kGlobalState::update ( RedisClient client)

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