24 static std::vector<std::string> agent_names(
void);
25 static std::unique_ptr<Agent> make_unique(
const std::string &agent_name);
37 virtual void init(
int level,
const std::vector<int> &fan_in,
bool is_level_root) = 0;
55 std::vector<std::vector<double> > &out_policy) = 0;
67 std::vector<double> &out_sample) = 0;
88 virtual void wait(
void) = 0;
91 virtual std::vector<std::pair<std::string, std::string> >
report_header(
void)
const = 0;
93 virtual std::vector<std::pair<std::string, std::string> >
report_host(
void)
const = 0;
95 virtual std::map<uint64_t, std::vector<std::pair<std::string, std::string> > >
report_region(
void)
const = 0;
99 virtual std::vector<std::function<std::string(
double)> > trace_formats(
void)
const;
114 static int num_policy(
const std::map<std::string, std::string> &dictionary);
119 static int num_policy(
const std::string &agent_name);
127 static int num_sample(
const std::map<std::string, std::string> &dictionary);
132 static int num_sample(
const std::string &agent_name);
140 static std::vector<std::string> policy_names(
const std::map<std::string, std::string> &dictionary);
145 static std::vector<std::string> policy_names(
const std::string &agent_name);
153 static std::vector<std::string> sample_names(
const std::map<std::string, std::string> &dictionary);
158 static std::vector<std::string> sample_names(
const std::string &agent_name);
165 static std::map<std::string, std::string> make_dictionary(
const std::vector<std::string> &policy_names,
166 const std::vector<std::string> &sample_names);
179 static void aggregate_sample(
const std::vector<std::vector<double> > &in_sample,
180 const std::vector<std::function<
double(
const std::vector<double>&)> > &agg_func,
181 std::vector<double> &out_sample);
184 static const std::string m_num_sample_string;
185 static const std::string m_num_policy_string;
186 static const std::string m_sample_prefix;
187 static const std::string m_policy_prefix;
virtual void init(int level, const std::vector< int > &fan_in, bool is_level_root)=0
Set the level where this Agent is active and push signals/controls for that level.