libqicore-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
qi::Behavior Class Reference

#include <behavior.hpp>

Classes

struct  TransitionPtr
 

Public Types

typedef std::map< std::string,
AnyObject > 
ObjectMap
 
typedef std::map< std::string,
TransitionPtr > 
TransitionMap
 

Public Member Functions

 Behavior (qi::SessionPtr session)
 
 ~Behavior ()
 
AnyObject makeObject (const std::string &model, const std::string &factory, const qi::BehaviorModel::ParameterMap &params)
 
void loadObjects (bool debugmode)
 
void unloadObjects ()
 
void setTransitions (bool debugmode, qi::MetaCallType type=qi::MetaCallType_Auto)
 
void removeTransitions ()
 
void loadFile (const std::string &path)
 
void loadString (const std::string &data)
 
AnyObject object (const std::string &name)
 
qi::AnyValue call (const std::string &objUid, const std::string &fun, std::vector< qi::AnyValue > args)
 
void setModel (const qi::BehaviorModel &model)
 
qi::SessionPtr session ()
 
qi::BehaviorModel & model ()
 
ObjectMap & objects ()
 
TransitionMap & transitions ()
 
void start ()
 
void stop ()
 

Public Attributes

qi::Signal< const std::string
&, qi::AnyValue > 
onTransition
 Triggered when a transition occurrs, if transitions were set in debug mode. More...
 
qi::Signal< const std::string
&, const std::string & > 
onTaskError
 Triggered when one of the tasks enter/leave an error state. More...
 
qi::Signal< const std::string
&, bool > 
onTaskRunning
 Triggered when one of the tasks's running property changes state. More...
 
qi::Signal< void > onStart
 
qi::Signal< void > onStop
 

Detailed Description

Definition at line 74 of file behavior.hpp.

Member Typedef Documentation

typedef std::map<std::string, AnyObject> qi::Behavior::ObjectMap

Definition at line 77 of file behavior.hpp.

typedef std::map<std::string, TransitionPtr> qi::Behavior::TransitionMap

Definition at line 91 of file behavior.hpp.

Constructor & Destructor Documentation

qi::Behavior::Behavior ( qi::SessionPtr  session)
inline

Definition at line 94 of file behavior.hpp.

qi::Behavior::~Behavior ( )
inline

Definition at line 95 of file behavior.hpp.

Member Function Documentation

qi::AnyValue qi::Behavior::call ( const std::string &  objUid,
const std::string &  fun,
std::vector< qi::AnyValue >  args 
)
void qi::Behavior::loadFile ( const std::string &  path)
void qi::Behavior::loadObjects ( bool  debugmode)
void qi::Behavior::loadString ( const std::string &  data)
AnyObject qi::Behavior::makeObject ( const std::string &  model,
const std::string &  factory,
const qi::BehaviorModel::ParameterMap &  params 
)
qi::BehaviorModel& qi::Behavior::model ( )
inline

Definition at line 116 of file behavior.hpp.

AnyObject qi::Behavior::object ( const std::string &  name)
ObjectMap& qi::Behavior::objects ( )
inline

Definition at line 117 of file behavior.hpp.

void qi::Behavior::removeTransitions ( )
qi::SessionPtr qi::Behavior::session ( )
inline

Definition at line 115 of file behavior.hpp.

void qi::Behavior::setModel ( const qi::BehaviorModel &  model)
inline

Definition at line 114 of file behavior.hpp.

void qi::Behavior::setTransitions ( bool  debugmode,
qi::MetaCallType  type = qi::MetaCallType_Auto 
)
void qi::Behavior::start ( )
inline

Definition at line 125 of file behavior.hpp.

void qi::Behavior::stop ( )
inline

Definition at line 126 of file behavior.hpp.

TransitionMap& qi::Behavior::transitions ( )
inline

Definition at line 118 of file behavior.hpp.

void qi::Behavior::unloadObjects ( )

Member Data Documentation

qi::Signal<void> qi::Behavior::onStart

Definition at line 128 of file behavior.hpp.

qi::Signal<void> qi::Behavior::onStop

Definition at line 129 of file behavior.hpp.

qi::Signal<const std::string&, const std::string&> qi::Behavior::onTaskError

Triggered when one of the tasks enter/leave an error state.

Definition at line 109 of file behavior.hpp.

qi::Signal<const std::string&, bool> qi::Behavior::onTaskRunning

Triggered when one of the tasks's running property changes state.

Definition at line 111 of file behavior.hpp.

qi::Signal<const std::string&, qi::AnyValue> qi::Behavior::onTransition

Triggered when a transition occurrs, if transitions were set in debug mode.

Definition at line 107 of file behavior.hpp.


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