KJB
|
#include <bbb_activity_library.h>
Public Member Functions | |
Activity_library (const std::string &lib_dp) | |
Constructor. More... | |
const std::string & | activity_name (size_t a) const |
Get the name of the a-th activity. More... | |
size_t | num_activities () const |
Get number of activities avialable. More... | |
const std::string & | role_name (size_t r) const |
Get the name of the r-th role. More... | |
size_t | num_roles () const |
Get number of roles avialable. More... | |
bool | is_intentional (const std::string &act) const |
Is the given activity intentional?. More... | |
bool | is_physical (const std::string &act) const |
Is the given activity physical?. More... | |
template<class Iter > | |
void | intentional_names (Iter out) const |
Get a list of the intentional activity names. More... | |
template<class Iter > | |
void | physical_names (Iter out) const |
Get a list of the physical activity names. More... | |
const Sd_map::mapped_type & | group_concentration (const std::string &act) const |
Get the concentration parameter for an activity. More... | |
const Sv_map::mapped_type & | role_distribution (const std::string &act) const |
Get the distribution over roles for an activity. More... | |
gp::Sqex | trajectory_kernel (const std::string &act) const |
Get the trajectory kernel for an activity. More... | |
const Sc_map::mapped_type & | markov_chain (const std::string &role) const |
Get the MC parameters for an activity. More... | |
Vector | sample_parameters (const std::string &name, const std::string &pt_name, const Vector &pt_params) const |
Sample the parameters of an activity. More... | |
bool | has_target (const std::string &act) const |
Returns true if the given activity has a target. More... | |
size_t | role_index (const std::string &role) const |
Get the index of a role (by name). More... | |
kjb::bbb::Activity_library::Activity_library | ( | const std::string & | lib_dp | ) |
Constructor.
|
inline |
Get the name of the a-th activity.
|
inline |
Get the concentration parameter for an activity.
|
inline |
Returns true if the given activity has a target.
|
inline |
Get a list of the intentional activity names.
|
inline |
Is the given activity intentional?.
|
inline |
Is the given activity physical?.
|
inline |
Get the MC parameters for an activity.
|
inline |
Get number of activities avialable.
|
inline |
Get number of roles avialable.
|
inline |
Get a list of the physical activity names.
|
inline |
Get the distribution over roles for an activity.
|
inline |
Get the index of a role (by name).
|
inline |
Get the name of the r-th role.
Vector kjb::bbb::Activity_library::sample_parameters | ( | const std::string & | name, |
const std::string & | pt_name, | ||
const Vector & | pt_params | ||
) | const |
Sample the parameters of an activity.
|
inline |
Get the trajectory kernel for an activity.