/home/dko/Projects/mobilec/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

Defines

#define AGENT_T

Typedefs

typedef struct agent_s agent_t
typedef agent_tMCAgent_t
typedef agent_tagent_p

Functions

int agent_AddPersistentVariable (agent_p agent, int task_num, const char *var_name)
agent_p agent_New (void)
agent_p agent_NewBinary (struct mc_platform_s *mc_platform)
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)
void * agent_ChScriptInitVar (ChInterp_t *interp)

Define Documentation

#define AGENT_T

Definition at line 108 of file agent.h.


Typedef Documentation

typedef agent_t* agent_p

Definition at line 111 of file agent.h.

typedef struct agent_s agent_t

Definition at line 109 of file agent.h.

typedef agent_t* MCAgent_t

Definition at line 110 of file agent.h.


Function Documentation

int agent_AddPersistentVariable ( agent_p  agent,
int  task_num,
const char *  var_name 
)
void* agent_ChScriptInitVar ( ChInterp_t *  interp  ) 

Definition at line 491 of file agent.c.

References MC_AclAddReceiver_chdl(), MC_AclAddReplyTo_chdl(), MC_AclDestroy_chdl(), MC_AclGetContent_chdl(), MC_AclGetConversationID_chdl(), MC_AclGetPerformative_chdl(), MC_AclGetProtocol_chdl(), MC_AclGetSender_chdl(), MC_AclNew_chdl(), MC_AclPost_chdl(), MC_AclReply_chdl(), MC_AclRetrieve_chdl(), MC_AclSend_chdl(), MC_AclSetContent_chdl(), MC_AclSetConversationID_chdl(), MC_AclSetPerformative_chdl(), MC_AclSetProtocol_chdl(), MC_AclSetSender_chdl(), MC_AclWaitRetrieve_chdl(), MC_AddAgent_chdl(), MC_AgentAddTask_chdl(), MC_AgentVariableRetrieve_chdl(), MC_AgentVariableSave_chdl(), MC_Barrier_chdl(), MC_BarrierDelete_chdl(), MC_BarrierInit_chdl(), MC_CallAgentFunc_chdl(), MC_ComposeAgent_chdl(), MC_ComposeAgentFromFile_chdl(), MC_ComposeAgentFromFileWithWorkgroup_chdl(), MC_ComposeAgentWithWorkgroup_chdl(), MC_CondBroadcast_chdl(), MC_CondReset_chdl(), MC_CondSignal_chdl(), MC_CondWait_chdl(), MC_DeleteAgent_chdl(), MC_DeleteAgentWG_chdl(), MC_DeregisterService_chdl(), MC_DestroyServiceSearchResult_chdl(), MC_End_chdl(), 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_MigrateAgent_chdl(), MC_MutexLock_chdl(), MC_MutexUnlock_chdl(), MC_PrintAgentCode_chdl(), MC_RegisterService_chdl(), MC_ResumeAgency_chdl(), MC_RetrieveAgent_chdl(), MC_RetrieveAgentCode_chdl(), 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_SyncDelete_chdl(), MC_SyncInit_chdl(), MC_TerminateAgent_chdl(), and MC_TerminateAgentWG_chdl().

Referenced by AP_QUEUE_STD_DEFN_TEMPLATE(), and mc_platform_Initialize().

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 197 of file agent.c.

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

Referenced by MC_ComposeAgentWithWorkgroup().

agent_p agent_NewBinary ( struct mc_platform_s mc_platform  ) 
void agent_RunChScript ( MCAgent_t  agent,
struct mc_platform_s global 
)
void* agent_RunChScriptThread ( void *  agent  ) 
Generated on Tue Dec 28 15:15:27 2010 for Mobile-C by  doxygen 1.6.3