Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

ActorManager Class Reference

#include <actor_manager.h>

List of all members.

Static Public Member Functions

static ActorcreateActor (std::string actor)
static void destroy ()
static ActorfindActor (std::string actor)
static bool isAlive (std::string actor)
static void relayToActors (std::string topic, ros::Message *message)
static void removeActor (std::string actor)

Private Member Functions

 ActorManager ()

Static Private Member Functions

static ActorManagergetInstance ()

Private Attributes

std::map< std::string, Actor * > actors_

Static Private Attributes

static ActorManagerinstance_ = NULL

Detailed Description

The ActorManager class is responsible for allowing a specified Actor to be queried, added, or removed from the ActorManager.

Author:
Brett Ponsler (bponsler (at) wpi (dot) edu)

Definition at line 57 of file actor_manager.h.


Constructor & Destructor Documentation

ActorManager::ActorManager (  )  [private]

Create the ActorManager

Definition at line 44 of file actor_manager.cpp.


Member Function Documentation

Actor * ActorManager::createActor ( std::string  actor  )  [static]

Create an Actor in the ActorManager.

Parameters:
actor The Actor's ID to create
Returns:
The Actor

Definition at line 67 of file actor_manager.cpp.

void ActorManager::destroy (  )  [static]

Destroy the ActorManager.

Definition at line 49 of file actor_manager.cpp.

Actor * ActorManager::findActor ( std::string  actor  )  [static]

Find an Actor in the Actor Manager.

Parameters:
actor The ID of the Actor to find
Returns:
The Actor

Definition at line 89 of file actor_manager.cpp.

ActorManager * ActorManager::getInstance (  )  [static, private]

Get the instance of the ActorManager class.

Returns:
The instance

Definition at line 59 of file actor_manager.cpp.

bool ActorManager::isAlive ( std::string  actor  )  [static]

Determine if a particular Actor is alive.

Parameters:
actor The ID of the Actor
Returns:
True if alive, false otherwise

Definition at line 97 of file actor_manager.cpp.

void ActorManager::relayToActors ( std::string  topic,
ros::Message *  message 
) [static]

Relay a message to all of the actors.

Parameters:
topic The topic
message The message

Definition at line 102 of file actor_manager.cpp.

void ActorManager::removeActor ( std::string  actor  )  [static]

Remove an Actor from the Actor Manager.

Parameters:
actor The ID of the Actor to remove

Definition at line 83 of file actor_manager.cpp.


Member Data Documentation

std::map<std::string, Actor*> ActorManager::actors_ [private]

The map of Actor IDs to actors.

Definition at line 60 of file actor_manager.h.

ActorManager * ActorManager::instance_ = NULL [static, private]

The instance of the ActorManager class.

Definition at line 63 of file actor_manager.h.


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

engagement_recognition
Author(s): Brett Ponsler (bponsler (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:35:49 2011