/home/dko/projects/mobilec/trunk/src/include/agent.h File Reference

#include "agent_datastate.h"
#include "agent_task.h"
#include "libmc.h"
#include "message.h"
#include "macros.h"
#include "data_structures.h"
#include "agent_mailbox.h"

Go to the source code of this file.

Data Structures

struct  agent_s

Functions

int agent_AddPersistentVariable (agent_p agent, int task_num, const char *var_name)
agent_p agent_New (void)
agent_p agent_Copy (const agent_p agent)
int agent_Destroy (agent_p agent)
agent_p agent_Initialize (struct mc_platform_s *mc_platform, message_p message, int id)
void agent_RunChScript (MCAgent_t agent, struct mc_platform_s *global)
void * agent_RunChScriptThread (void *agent)


Function Documentation

int agent_AddPersistentVariable ( agent_p  agent,
int  task_num,
const char *  var_name 
)

agent_p agent_Copy ( const agent_p  agent  ) 

int agent_Destroy ( agent_p  agent  ) 

agent_p agent_Initialize ( struct mc_platform_s mc_platform,
message_p  message,
int  id 
)

agent_p agent_New ( void   ) 

Definition at line 193 of file agent.c.

References agent_s::lock, MUTEX_INIT, MUTEX_NEW, and agent_s::run_lock.

Referenced by MC_ComposeAgent().

void agent_RunChScript ( MCAgent_t  agent,
struct mc_platform_s global 
)

void* agent_RunChScriptThread ( void *  agent  ) 

Definition at line 399 of file agent.c.

References agent_s::agent_interp, mc_platform_s::ams, COND_SIGNAL, agent_s::datastate, agent_s::id, mc_platform_s::interp_options, interpreter_variable_data_Destroy(), interpreter_variable_data_Initialize(), interpreter_variable_data_InitializeFromAgent(), MC_AclAddReceiver_chdl(), MC_AclAddReplyTo_chdl(), MC_AclDestroy_chdl(), MC_AclNew_chdl(), MC_AclPost_chdl(), MC_AclReply_chdl(), MC_AclRetrieve_chdl(), MC_AclSend_chdl(), MC_AclSetContent_chdl(), MC_AclSetPerformative_chdl(), MC_AclSetSender_chdl(), MC_AclWaitRetrieve_chdl(), MC_AddAgent_chdl(), MC_AGENT_NEUTRAL, MC_AgentVariableRetrieve_chdl(), MC_AgentVariableSave_chdl(), MC_Barrier_chdl(), MC_BarrierDelete_chdl(), MC_BarrierInit_chdl(), MC_CallAgentFunc_chdl(), MC_ComposeAgent_chdl(), MC_CondBroadcast_chdl(), MC_CondReset_chdl(), MC_CondSignal_chdl(), MC_CondWait_chdl(), MC_DeleteAgent_chdl(), MC_DeregisterService_chdl(), MC_DestroyServiceSearchResult_chdl(), MC_End_chdl(), MC_EXEC_AGENT, MC_FindAgentByID_chdl(), MC_FindAgentByName_chdl(), MC_GetAgentID_chdl(), MC_GetAgentName_chdl(), MC_GetAgentStatus_chdl(), MC_GetAgentXMLString_chdl(), MC_GetTimeOfDay_chdl(), MC_HaltAgency_chdl(), MC_MutexLock_chdl(), MC_MutexUnlock_chdl(), agent_s::mc_platform, mc_platform, MC_PrintAgentCode_chdl(), MC_RegisterService_chdl(), MC_ResumeAgency_chdl(), MC_RetrieveAgent_chdl(), MC_RetrieveAgentCode_chdl(), MC_RETURN_AGENT, MC_SaveData_chdl(), MC_SearchForService_chdl(), MC_SemaphorePost_chdl(), MC_SemaphoreWait_chdl(), MC_SendAgentMigrationMessage_chdl(), MC_SendAgentMigrationMessageFile_chdl(), MC_SendSteerCommand_chdl(), MC_SetAgentStatus_chdl(), MC_SetDefaultAgentStatus_chdl(), mc_platform_s::MC_signal, mc_platform_s::MC_signal_cond, mc_platform_s::MC_signal_lock, MC_SyncDelete_chdl(), MC_SyncInit_chdl(), MC_TerminateAgent_chdl(), MC_WAIT_FINISHED, MC_WAIT_MESSGSEND, MUTEX_LOCK, MUTEX_UNLOCK, agent_s::name, SIGNAL, and agent_datastate_s::task_progress.

Referenced by agent_RunChScript().


Generated on Thu Nov 13 14:22:57 2008 for Mobile-C by  doxygen 1.5.5