KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::bbb::Activity_library Class Reference

#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...
 

Constructor & Destructor Documentation

kjb::bbb::Activity_library::Activity_library ( const std::string &  lib_dp)

Constructor.

Member Function Documentation

const std::string& kjb::bbb::Activity_library::activity_name ( size_t  a) const
inline

Get the name of the a-th activity.

const Sd_map::mapped_type& kjb::bbb::Activity_library::group_concentration ( const std::string &  act) const
inline

Get the concentration parameter for an activity.

bool kjb::bbb::Activity_library::has_target ( const std::string &  act) const
inline

Returns true if the given activity has a target.

template<class Iter >
void kjb::bbb::Activity_library::intentional_names ( Iter  out) const
inline

Get a list of the intentional activity names.

bool kjb::bbb::Activity_library::is_intentional ( const std::string &  act) const
inline

Is the given activity intentional?.

bool kjb::bbb::Activity_library::is_physical ( const std::string &  act) const
inline

Is the given activity physical?.

const Sc_map::mapped_type& kjb::bbb::Activity_library::markov_chain ( const std::string &  role) const
inline

Get the MC parameters for an activity.

size_t kjb::bbb::Activity_library::num_activities ( ) const
inline

Get number of activities avialable.

size_t kjb::bbb::Activity_library::num_roles ( ) const
inline

Get number of roles avialable.

template<class Iter >
void kjb::bbb::Activity_library::physical_names ( Iter  out) const
inline

Get a list of the physical activity names.

const Sv_map::mapped_type& kjb::bbb::Activity_library::role_distribution ( const std::string &  act) const
inline

Get the distribution over roles for an activity.

size_t kjb::bbb::Activity_library::role_index ( const std::string &  role) const
inline

Get the index of a role (by name).

const std::string& kjb::bbb::Activity_library::role_name ( size_t  r) const
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.

gp::Sqex kjb::bbb::Activity_library::trajectory_kernel ( const std::string &  act) const
inline

Get the trajectory kernel for an activity.


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