/home/dko/Projects/mobilec/src/include/fipa_comm.h File Reference

#include <fipa_acl.h>

Go to the source code of this file.

Data Structures

struct  fipa_comm_message_check_t
struct  fipa_comm_reply_t
struct  fipa_comm_action_t
struct  fipa_comm_performative_t
struct  fipa_list_t
struct  fipa_comm_protocol_cn_t
struct  fipa_comm_protocol_t
struct  fipa_comm_t

Defines

#define false   0
#define MC_NUM_PERFORMATIVES   23

Typedefs

typedef int(* fipa_comm_callback )(char *received_content, char **reply_content)
typedef int(* protocol_contract_net_callback )(int numBids, char **bids, char *winners)
typedef struct
fipa_comm_message_check_t 
fipa_comm_message_check_s
typedef struct
fipa_comm_message_check_t
fipa_comm_message_check_p
typedef struct fipa_comm_reply_t fipa_comm_reply_s
typedef struct fipa_comm_reply_tfipa_comm_reply_p
typedef struct fipa_comm_action_t fipa_comm_action_s
typedef struct fipa_comm_action_tfipa_comm_action_p
typedef struct
fipa_comm_performative_t 
fipa_comm_performative_s
typedef struct
fipa_comm_performative_t
fipa_comm_performative_p
typedef struct fipa_list_t fipa_list_s
typedef struct fipa_list_tfipa_list_p
typedef struct
fipa_comm_protocol_cn_t 
fipa_comm_protocol_cn_s
typedef struct
fipa_comm_protocol_cn_t
fipa_comm_protocol_cn_p
typedef struct
fipa_comm_protocol_t
fipa_comm_protocol_p
typedef struct fipa_comm_protocol_t fipa_comm_protocol_s
typedef struct fipa_comm_t fipa_comm_s
typedef struct fipa_comm_tfipa_comm_p
typedef struct fipa_comm_t MCFIPAComm_s
typedef struct fipa_comm_tMCFIPAComm_p

Enumerations

enum  fipa_comm_type_e {
  FIPA_COMM_ACTION, FIPA_COMM_CHECK, FIPA_COMM_REPLY, FIPA_COMM_CALLBACK,
  FIPA_COMM_END
}
enum  fipa_comm_logic_type_e { FIPA_COMM_LOGIC_ERROR = -1, FIPA_COMM_LOGIC_OR, FIPA_COMM_LOGIC_AND }
enum  fipa_comm_check_type_e {
  FIPA_COMM_CHECK_ERROR = -1, FIPA_COMM_CHECK_SENDER_NAME, FIPA_COMM_CHECK_SENDER_ADDRESS, FIPA_COMM_CHECK_CONTENT,
  FIPA_COMM_CHECK_CONVERSATIONID, FIPA_COMM_CHECK_LANGUAGE, FIPA_COMM_CHECK_ONTOLOGY, FIPA_COMM_CHECK_ENCODING
}
enum  fipa_comm_action_type_e {
  FIPA_COMM_ACTION_ERROR = -1, FIPA_COMM_ACTION_BOTH, FIPA_COMM_ACTION_REPLY, FIPA_COMM_ACTION_CALLBACK,
  FIPA_COMM_ACTION_NONE
}
enum  fipa_comm_protocol_cn_state_e {
  FIPA_COMM_PROTOCOL_CN_ERROR = -1, FIPA_COMM_PROTOCOL_CN_START, FIPA_COMM_PROTOCOL_CN_CFP, FIPA_COMM_PROTOCOL_CN_BID,
  FIPA_COMM_PROTOCOL_CN_RESULT, FIPA_COMM_PROTOCOL_CN_DONE
}

Functions

fipa_comm_p mc_FIPAComm_New ()
int mc_FIPAComm_HandleMessage (fipa_comm_p fcomm, fipa_acl_message_p acl)
int mc_FIPAComm_HandleMessageOnce (fipa_comm_p fcomm)
int mc_FIPAComm_HandleMessageWait (fipa_comm_p fcomm)
void mc_FIPAComm_Destroy (fipa_comm_p)
int mc_FIPAComm_RegisterPerformative (fipa_comm_p fcomm, enum fipa_performative_e type)
int mc_FIPAComm_DeregisterPerformative (fipa_comm_p fcomm, enum fipa_performative_e type)
int mc_FIPAComm_SetDefaultReply (fipa_comm_p fcomm, enum fipa_performative_e type, char *content)
int mc_FIPAComm_SetPerformativeDefaultReply (fipa_comm_p fcomm, enum fipa_performative_e ptype, enum fipa_performative_e rtype, char *content)
int mc_FIPAComm_SetAgent (fipa_comm_p fcomm, void *agent, char *agent_name, char *agent_address)
int mc_FIPAComm_RegisterAction (fipa_comm_p fcomm, enum fipa_performative_e pType, enum fipa_comm_action_type_e aType,...)
int mc_FIPAComm_RegisterActionS (fipa_performative_e type, fipa_comm_action_p act)
fipa_comm_protocol_p mc_FIPAProtocol_New ()
int mc_FIPAComm_RegisterProtocolCallback (fipa_comm_p fcomm, enum fipa_protocol_e protocolType, fipa_comm_callback func)
int mc_FIPAComm_RegisterProtocol (fipa_comm_p fcomm, enum fipa_protocol_e protocolType, char *protocolID, void *info, char *network)
void fipa_comm_protocol_info_COPY (fipa_comm_protocol_p proto, void *info)
int fipa_list_Add (fipa_list_p *list, fipa_acl_message_p acl)
int mc_FIPAComm_StartProtocol (fipa_comm_p fcomm, enum fipa_protocol_e type, char *id)
int mc_FIPAComm_HandleProtocol (fipa_comm_p fcomm, fipa_acl_message_p acl)
fipa_comm_protocol_p mc_FIPAComm_AddNewProtocol (fipa_comm_p fcomm, enum fipa_protocol_e type, char *id)
int mc_FIPAComm_FSM_CN (fipa_comm_p fcomm, fipa_acl_message_p acl)
fipa_comm_protocol_p mc_FIPAComm_NewProtocol (enum fipa_protocol_e type, char *id)
int mc_FIPAComm_SetProtocolState (fipa_comm_protocol_p protocol, char state)

Define Documentation

#define false   0

Definition at line 11 of file fipa_comm.h.

#define MC_NUM_PERFORMATIVES   23

Definition at line 14 of file fipa_comm.h.


Typedef Documentation

Definition at line 109 of file fipa_comm.h.

Definition at line 108 of file fipa_comm.h.

typedef int(* fipa_comm_callback)(char *received_content, char **reply_content)

Definition at line 17 of file fipa_comm.h.

Definition at line 80 of file fipa_comm.h.

Definition at line 79 of file fipa_comm.h.

typedef struct fipa_comm_t* fipa_comm_p

Definition at line 193 of file fipa_comm.h.

Definition at line 121 of file fipa_comm.h.

Definition at line 120 of file fipa_comm.h.

Definition at line 156 of file fipa_comm.h.

Definition at line 155 of file fipa_comm.h.

Definition at line 172 of file fipa_comm.h.

Definition at line 173 of file fipa_comm.h.

Definition at line 93 of file fipa_comm.h.

Definition at line 92 of file fipa_comm.h.

typedef struct fipa_comm_t fipa_comm_s

Definition at line 192 of file fipa_comm.h.

typedef struct fipa_list_t* fipa_list_p

Definition at line 141 of file fipa_comm.h.

typedef struct fipa_list_t fipa_list_s

Definition at line 140 of file fipa_comm.h.

typedef struct fipa_comm_t* MCFIPAComm_p

Definition at line 195 of file fipa_comm.h.

typedef struct fipa_comm_t MCFIPAComm_s

Definition at line 194 of file fipa_comm.h.

typedef int(* protocol_contract_net_callback)(int numBids, char **bids, char *winners)

Definition at line 18 of file fipa_comm.h.


Enumeration Type Documentation

Enumerator:
FIPA_COMM_ACTION_ERROR 
FIPA_COMM_ACTION_BOTH 
FIPA_COMM_ACTION_REPLY 
FIPA_COMM_ACTION_CALLBACK 
FIPA_COMM_ACTION_NONE 

Definition at line 45 of file fipa_comm.h.

Enumerator:
FIPA_COMM_CHECK_ERROR 
FIPA_COMM_CHECK_SENDER_NAME 
FIPA_COMM_CHECK_SENDER_ADDRESS 
FIPA_COMM_CHECK_CONTENT 
FIPA_COMM_CHECK_CONVERSATIONID 
FIPA_COMM_CHECK_LANGUAGE 
FIPA_COMM_CHECK_ONTOLOGY 
FIPA_COMM_CHECK_ENCODING 

Definition at line 34 of file fipa_comm.h.

Enumerator:
FIPA_COMM_LOGIC_ERROR 
FIPA_COMM_LOGIC_OR 
FIPA_COMM_LOGIC_AND 

Definition at line 28 of file fipa_comm.h.

Enumerator:
FIPA_COMM_PROTOCOL_CN_ERROR 
FIPA_COMM_PROTOCOL_CN_START 
FIPA_COMM_PROTOCOL_CN_CFP 
FIPA_COMM_PROTOCOL_CN_BID 
FIPA_COMM_PROTOCOL_CN_RESULT 
FIPA_COMM_PROTOCOL_CN_DONE 

Definition at line 127 of file fipa_comm.h.

Enumerator:
FIPA_COMM_ACTION 
FIPA_COMM_CHECK 
FIPA_COMM_REPLY 
FIPA_COMM_CALLBACK 
FIPA_COMM_END 

Definition at line 20 of file fipa_comm.h.


Function Documentation

void fipa_comm_protocol_info_COPY ( fipa_comm_protocol_p  proto,
void *  info 
)
int fipa_list_Add ( fipa_list_p list,
fipa_acl_message_p  acl 
)
fipa_comm_protocol_p mc_FIPAComm_AddNewProtocol ( fipa_comm_p  fcomm,
enum fipa_protocol_e  type,
char *  id 
)
int mc_FIPAComm_DeregisterPerformative ( fipa_comm_p  fcomm,
enum fipa_performative_e  type 
)
void mc_FIPAComm_Destroy ( fipa_comm_p   ) 
int mc_FIPAComm_FSM_CN ( fipa_comm_p  fcomm,
fipa_acl_message_p  acl 
)
int mc_FIPAComm_HandleMessage ( fipa_comm_p  fcomm,
fipa_acl_message_p  acl 
)
int mc_FIPAComm_HandleMessageOnce ( fipa_comm_p  fcomm  ) 
int mc_FIPAComm_HandleMessageWait ( fipa_comm_p  fcomm  ) 
int mc_FIPAComm_HandleProtocol ( fipa_comm_p  fcomm,
fipa_acl_message_p  acl 
)
fipa_comm_p mc_FIPAComm_New (  ) 
fipa_comm_protocol_p mc_FIPAComm_NewProtocol ( enum fipa_protocol_e  type,
char *  id 
)
int mc_FIPAComm_RegisterAction ( fipa_comm_p  fcomm,
enum fipa_performative_e  pType,
enum fipa_comm_action_type_e  aType,
  ... 
)
int mc_FIPAComm_RegisterActionS ( fipa_performative_e  type,
fipa_comm_action_p  act 
)
int mc_FIPAComm_RegisterPerformative ( fipa_comm_p  fcomm,
enum fipa_performative_e  type 
)
int mc_FIPAComm_RegisterProtocol ( fipa_comm_p  fcomm,
enum fipa_protocol_e  protocolType,
char *  protocolID,
void *  info,
char *  network 
)
int mc_FIPAComm_RegisterProtocolCallback ( fipa_comm_p  fcomm,
enum fipa_protocol_e  protocolType,
fipa_comm_callback  func 
)
int mc_FIPAComm_SetAgent ( fipa_comm_p  fcomm,
void *  agent,
char *  agent_name,
char *  agent_address 
)
int mc_FIPAComm_SetDefaultReply ( fipa_comm_p  fcomm,
enum fipa_performative_e  type,
char *  content 
)
int mc_FIPAComm_SetPerformativeDefaultReply ( fipa_comm_p  fcomm,
enum fipa_performative_e  ptype,
enum fipa_performative_e  rtype,
char *  content 
)
int mc_FIPAComm_SetProtocolState ( fipa_comm_protocol_p  protocol,
char  state 
)
int mc_FIPAComm_StartProtocol ( fipa_comm_p  fcomm,
enum fipa_protocol_e  type,
char *  id 
)
fipa_comm_protocol_p mc_FIPAProtocol_New (  ) 
Generated on Tue Dec 28 15:15:27 2010 for Mobile-C by  doxygen 1.6.3