Agent Class Reference

Inheritance diagram for Agent:
Inheritance graph
[legend]
Collaboration diagram for Agent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Access functions

std::string getName ()
 get the name of the agent
std::string getName ()
 get the name of the agent
member functions

virtual bool pickAndExecuteAnAction ()
bool isAsleep ()
void acquire ()
void run ()
void Do (std::string msg)
virtual bool pickAndExecuteAnAction ()
bool isAsleep ()
void acquire ()
void run ()
void Do (std::string msg)

Protected Member Functions

void stateChanged ()
 I'm Rick James.
void stateChanged ()
 updates the agent's stateChange

Protected Attributes

pthread_mutex_t itsStateChangedLock
std::string itsName
 the name of the agent
std::string itsLastAction

Constructors and Destructors



volatile int stateChange
 indicates that the agent's state has changed
 Agent (std::string name)
virtual ~Agent ()
 Agent (std::string name)
virtual ~Agent ()

Detailed Description

Definition at line 45 of file Agent.H.


Member Function Documentation

std::string Agent::getName (  )  [inline]

get the name of the agent

std::string Agent::getName (  )  [inline]

get the name of the agent

Definition at line 95 of file Agent.H.

References itsName.

void Agent::stateChanged (  )  [protected]

updates the agent's stateChange

void Agent::stateChanged (  )  [protected]

I'm Rick James.

Definition at line 73 of file Agent.C.

References stateChange.

Referenced by CaptainAgent::msgGoThroughGateComplete().


Member Data Documentation

the name of the agent

Definition at line 89 of file Agent.H.

Referenced by getName().

volatile int Agent::stateChange

indicates that the agent's state has changed

Definition at line 53 of file Agent.H.

Referenced by stateChanged().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:05 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3