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 () |
Definition at line 45 of file Agent.H.
std::string Agent::getName | ( | ) | [inline] |
get the name of the agent
std::string Agent::getName | ( | ) | [inline] |
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().
std::string Agent::itsName [protected] |
volatile int Agent::stateChange |
indicates that the agent's state has changed
Definition at line 53 of file Agent.H.
Referenced by stateChanged().