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

#include "dynstring.h"

Go to the source code of this file.

Data Structures

struct  fipa_acl_message_s
struct  fipa_message_string_s
struct  fipa_url_sequence_s
struct  fipa_agent_identifier_set_s
struct  fipa_agent_identifier_s
struct  fipa_expression_s
union  fipa_expression_s::content_u
struct  fipa_word_s
struct  fipa_string_s
struct  fipa_DateTime_s
struct  fipa_url_s
struct  fipa_number_s

Typedefs

typedef enum fipa_expression_type_e fipa_expression_type_t
typedef struct fipa_acl_message_s fipa_acl_message_t
typedef fipa_acl_message_tfipa_acl_message_p
typedef struct
fipa_message_string_s 
fipa_message_string_t
typedef fipa_message_string_tfipa_message_string_p
typedef struct fipa_url_sequence_s fipa_url_sequence_t
typedef fipa_url_sequence_tfipa_url_sequence_p
typedef struct
fipa_agent_identifier_set_s 
fipa_agent_identifier_set_t
typedef
fipa_agent_identifier_set_t
fipa_agent_identifier_set_p
typedef struct
fipa_agent_identifier_s 
fipa_agent_identifier_t
typedef fipa_agent_identifier_tfipa_agent_identifier_p
typedef struct fipa_expression_s fipa_expression_t
typedef fipa_expression_tfipa_expression_p
typedef struct fipa_word_s fipa_word_t
typedef fipa_word_tfipa_word_p
typedef struct fipa_string_s fipa_string_t
typedef fipa_string_tfipa_string_p
typedef struct fipa_DateTime_s fipa_DateTime_t
typedef fipa_DateTime_tfipa_DateTime_p
typedef struct fipa_url_s fipa_url_t
typedef fipa_url_tfipa_url_p
typedef struct fipa_number_s fipa_number_t
typedef fipa_number_tfipa_number_p

Enumerations

enum  fipa_performative_e {
  FIPA_ERROR = -1, FIPA_ZERO, FIPA_ACCEPT_PROPOSAL, FIPA_AGREE,
  FIPA_CANCEL, FIPA_CALL_FOR_PROPOSAL, FIPA_CONFIRM, FIPA_DISCONFIRM,
  FIPA_FAILURE, FIPA_INFORM, FIPA_INFORM_IF, FIPA_INFORM_REF,
  FIPA_NOT_UNDERSTOOD, FIPA_PROPOGATE, FIPA_PROPOSE, FIPA_PROXY,
  FIPA_QUERY_IF, FIPA_QUERY_REF, FIPA_REFUSE, FIPA_REJECT_PROPOSAL,
  FIPA_REQUEST, FIPA_REQUEST_WHEN, FIPA_REQUEST_WHENEVER, FIPA_SUBSCRIBE,
  FIPA_ERROR = -1, FIPA_ZERO, FIPA_ACCEPT_PROPOSAL, FIPA_AGREE,
  FIPA_CANCEL, FIPA_CALL_FOR_PROPOSAL, FIPA_CONFIRM, FIPA_DISCONFIRM,
  FIPA_FAILURE, FIPA_INFORM, FIPA_INFORM_IF, FIPA_INFORM_REF,
  FIPA_NOT_UNDERSTOOD, FIPA_PROPOGATE, FIPA_PROPOSE, FIPA_PROXY,
  FIPA_QUERY_IF, FIPA_QUERY_REF, FIPA_REFUSE, FIPA_REJECT_PROPOSAL,
  FIPA_REQUEST, FIPA_REQUEST_WHEN, FIPA_REQUEST_WHENEVER, FIPA_SUBSCRIBE
}
enum  fipa_protocol_e {
  FIPA_PROTOCOL_ERROR = -1, FIPA_PROTOCOL_NONE, FIPA_PROTOCOL_REQUEST, FIPA_PROTOCOL_QUERY,
  FIPA_PROTOCOL_REQUEST_WHEN, FIPA_PROTOCOL_CONTRACT_NET, FIPA_PROTOCOL_ITERATED_CONTRACT_NET, FIPA_PROTOCOL_ENGLISH_AUCTION,
  FIPA_PROTOCOL_DUTCH_AUCTION, FIPA_PROTOCOL_BROKERING, FIPA_PROTOCOL_RECRUITING, FIPA_PROTOCOL_SUBSCRIBE,
  FIPA_PROTOCOL_PROPOSE, FIPA_PROTOCOL_END
}
enum  fipa_expression_type_e {
  FIPA_EXPR_ZERO, FIPA_EXPR_WORD, FIPA_EXPR_STRING, FIPA_EXPR_NUMBER,
  FIPA_EXPR_DATETIME, FIPA_EXPR_EXPRESSION
}

Functions

int fipa_performative_Compose (dynstring_t *msg, enum fipa_performative_e performative)
int fipa_protocol_Compose (dynstring_t *msg, enum fipa_protocol_e protocol)
fipa_acl_message_tfipa_acl_message_New (void)
int fipa_acl_message_Destroy (fipa_acl_message_t *message)
fipa_acl_message_tfipa_acl_message_Copy (fipa_acl_message_t *src)
int fipa_acl_Compose (dynstring_t **msg, fipa_acl_message_t *acl)
fipa_message_string_tfipa_message_string_New (void)
int fipa_message_string_Destroy (fipa_message_string_t *message)
fipa_message_string_tfipa_message_string_Copy (fipa_message_string_t *src)
fipa_url_sequence_tfipa_url_sequence_New (void)
int fipa_url_sequence_Destroy (fipa_url_sequence_t *sequence)
fipa_url_sequence_tfipa_url_sequence_Copy (fipa_url_sequence_t *src)
int fipa_url_sequence_Compose (dynstring_t *msg, fipa_url_sequence_t *urls)
fipa_agent_identifier_set_tfipa_agent_identifier_set_New (void)
int fipa_agent_identifier_set_Destroy (fipa_agent_identifier_set_t *idset)
fipa_agent_identifier_set_tfipa_agent_identifier_set_Copy (fipa_agent_identifier_set_t *src)
int fipa_agent_identifier_set_Compose (dynstring_t *msg, fipa_agent_identifier_set_t *ids)
fipa_agent_identifier_tfipa_agent_identifier_New (void)
int fipa_agent_identifier_Destroy (fipa_agent_identifier_t *id)
fipa_agent_identifier_tfipa_agent_identifier_Copy (fipa_agent_identifier_t *src)
int fipa_agent_identifier_Compose (dynstring_t *msg, fipa_agent_identifier_t *id)
fipa_expression_tfipa_expression_New (void)
int fipa_expression_Destroy (fipa_expression_t *expr)
fipa_expression_tfipa_expression_Copy (fipa_expression_t *src)
int fipa_expression_Compose (dynstring_t *msg, fipa_expression_t *expr)
fipa_word_tfipa_word_New (void)
int fipa_word_Destroy (fipa_word_t *word)
fipa_word_tfipa_word_Copy (fipa_word_t *src)
int fipa_word_Compose (dynstring_t *msg, fipa_word_t *word)
fipa_string_tfipa_string_New (void)
int fipa_string_Destroy (fipa_string_t *str)
fipa_string_tfipa_string_Copy (fipa_string_t *src)
int fipa_string_Compose (dynstring_t *msg, fipa_string_t *string)
fipa_DateTime_tfipa_DateTime_New (void)
int fipa_DateTime_Destroy (fipa_DateTime_t *dt)
fipa_DateTime_tfipa_DateTime_Copy (fipa_DateTime_t *src)
int fipa_DateTime_Compose (dynstring_t *msg, fipa_DateTime_t *date)
fipa_url_tfipa_url_New (void)
int fipa_url_Destroy (fipa_url_t *url)
fipa_url_tfipa_url_Copy (fipa_url_t *src)
int fipa_url_Compose (dynstring_t *msg, fipa_url_t *url)
fipa_number_tfipa_number_New (void)
int fipa_number_Destroy (fipa_number_t *number)
fipa_number_tfipa_number_Copy (fipa_number_t *src)
int fipa_number_Compose (dynstring_t *msg, fipa_number_t *number)
int fipa_acl_Parse (struct fipa_acl_message_s *acl, fipa_message_string_p message)
int fipa_message_parameter_Parse (struct fipa_acl_message_s *acl, fipa_message_string_p message)
int fipa_protocol_type_Parse (enum fipa_protocol_e *protocol, fipa_message_string_p message)
int fipa_message_type_Parse (enum fipa_performative_e *performative, fipa_message_string_p message)
int fipa_GetAtom (fipa_message_string_p message, char expected_atom)
int fipa_word_Parse (fipa_word_t **word, fipa_message_string_p message)
int fipa_CheckNextToken (const fipa_message_string_p message, const char *token)
int fipa_expression_Parse (fipa_expression_t **expression, fipa_message_string_p message)
int fipa_GetNextWord (char **word, const fipa_message_string_p message)
int fipa_GetWholeToken (char **word, const fipa_message_string_p message)
int fipa_datetime_Parse (fipa_DateTime_p *datetime, fipa_message_string_p message)
int fipa_string_Parse (fipa_string_p *fipa_string, fipa_message_string_p message)
int fipa_agent_identifier_Parse (fipa_agent_identifier_p *aid, fipa_message_string_p message)
int fipa_agent_identifier_set_Parse (fipa_agent_identifier_set_p *agent_ids, fipa_message_string_p message)
int fipa_url_sequence_Parse (fipa_url_sequence_p *urls, fipa_message_string_p message)
int fipa_url_Parse (fipa_url_p *url, fipa_message_string_p message)
struct fipa_acl_message_sfipa_Reply (struct fipa_acl_message_s *acl)

Typedef Documentation

Definition at line 136 of file fipa_acl.h.

Definition at line 186 of file fipa_acl.h.

Definition at line 172 of file fipa_acl.h.

Definition at line 246 of file fipa_acl.h.

Definition at line 205 of file fipa_acl.h.

Definition at line 148 of file fipa_acl.h.

Definition at line 268 of file fipa_acl.h.

typedef struct fipa_number_s fipa_number_t

Definition at line 227 of file fipa_acl.h.

typedef struct fipa_string_s fipa_string_t

Definition at line 257 of file fipa_acl.h.

Definition at line 159 of file fipa_acl.h.

typedef struct fipa_url_s fipa_url_t

Definition at line 216 of file fipa_acl.h.

typedef struct fipa_word_s fipa_word_t

Enumeration Type Documentation

Enumerator:
FIPA_EXPR_ZERO 
FIPA_EXPR_WORD 
FIPA_EXPR_STRING 
FIPA_EXPR_NUMBER 
FIPA_EXPR_DATETIME 
FIPA_EXPR_EXPRESSION 

Definition at line 94 of file fipa_acl.h.

Enumerator:
FIPA_ERROR 
FIPA_ZERO 
FIPA_ACCEPT_PROPOSAL 
FIPA_AGREE 
FIPA_CANCEL 
FIPA_CALL_FOR_PROPOSAL 
FIPA_CONFIRM 
FIPA_DISCONFIRM 
FIPA_FAILURE 
FIPA_INFORM 
FIPA_INFORM_IF 
FIPA_INFORM_REF 
FIPA_NOT_UNDERSTOOD 
FIPA_PROPOGATE 
FIPA_PROPOSE 
FIPA_PROXY 
FIPA_QUERY_IF 
FIPA_QUERY_REF 
FIPA_REFUSE 
FIPA_REJECT_PROPOSAL 
FIPA_REQUEST 
FIPA_REQUEST_WHEN 
FIPA_REQUEST_WHENEVER 
FIPA_SUBSCRIBE 
FIPA_ERROR 
FIPA_ZERO 
FIPA_ACCEPT_PROPOSAL 
FIPA_AGREE 
FIPA_CANCEL 
FIPA_CALL_FOR_PROPOSAL 
FIPA_CONFIRM 
FIPA_DISCONFIRM 
FIPA_FAILURE 
FIPA_INFORM 
FIPA_INFORM_IF 
FIPA_INFORM_REF 
FIPA_NOT_UNDERSTOOD 
FIPA_PROPOGATE 
FIPA_PROPOSE 
FIPA_PROXY 
FIPA_QUERY_IF 
FIPA_QUERY_REF 
FIPA_REFUSE 
FIPA_REJECT_PROPOSAL 
FIPA_REQUEST 
FIPA_REQUEST_WHEN 
FIPA_REQUEST_WHENEVER 
FIPA_SUBSCRIBE 

Definition at line 41 of file fipa_acl.h.

Enumerator:
FIPA_PROTOCOL_ERROR 
FIPA_PROTOCOL_NONE 
FIPA_PROTOCOL_REQUEST 
FIPA_PROTOCOL_QUERY 
FIPA_PROTOCOL_REQUEST_WHEN 
FIPA_PROTOCOL_CONTRACT_NET 
FIPA_PROTOCOL_ITERATED_CONTRACT_NET 
FIPA_PROTOCOL_ENGLISH_AUCTION 
FIPA_PROTOCOL_DUTCH_AUCTION 
FIPA_PROTOCOL_BROKERING 
FIPA_PROTOCOL_RECRUITING 
FIPA_PROTOCOL_SUBSCRIBE 
FIPA_PROTOCOL_PROPOSE 
FIPA_PROTOCOL_END 

Definition at line 72 of file fipa_acl.h.


Function Documentation

int fipa_acl_Compose ( dynstring_t **  msg,
fipa_acl_message_t acl 
)
fipa_acl_message_t* fipa_acl_message_Copy ( fipa_acl_message_t src  ) 
int fipa_acl_message_Destroy ( fipa_acl_message_t message  ) 
fipa_acl_message_t* fipa_acl_message_New ( void   ) 

Definition at line 57 of file fipa_acl.c.

Referenced by acc_connection_Thread(), fipa_acl_message_Copy(), fipa_Reply(), and MC_AclNew().

int fipa_acl_Parse ( struct fipa_acl_message_s acl,
fipa_message_string_p  message 
)
int fipa_agent_identifier_Compose ( dynstring_t msg,
fipa_agent_identifier_t id 
)
fipa_agent_identifier_t* fipa_agent_identifier_Copy ( fipa_agent_identifier_t src  ) 
int fipa_agent_identifier_Destroy ( fipa_agent_identifier_t id  ) 
fipa_agent_identifier_t* fipa_agent_identifier_New ( void   ) 
int fipa_agent_identifier_Parse ( fipa_agent_identifier_p aid,
fipa_message_string_p  message 
)
int fipa_agent_identifier_set_Compose ( dynstring_t msg,
fipa_agent_identifier_set_t ids 
)
fipa_agent_identifier_set_t* fipa_agent_identifier_set_Copy ( fipa_agent_identifier_set_t src  ) 
int fipa_agent_identifier_set_Destroy ( fipa_agent_identifier_set_t idset  ) 
fipa_agent_identifier_set_t* fipa_agent_identifier_set_New ( void   ) 
int fipa_agent_identifier_set_Parse ( fipa_agent_identifier_set_p agent_ids,
fipa_message_string_p  message 
)
int fipa_CheckNextToken ( const fipa_message_string_p  message,
const char *  token 
)

Definition at line 695 of file fipa_acl.c.

References fipa_message_string_s::parse.

Referenced by fipa_expression_Parse().

int fipa_DateTime_Compose ( dynstring_t msg,
fipa_DateTime_t date 
)
fipa_DateTime_t* fipa_DateTime_Copy ( fipa_DateTime_t src  ) 
int fipa_DateTime_Destroy ( fipa_DateTime_t dt  ) 
fipa_DateTime_t* fipa_DateTime_New ( void   ) 

Definition at line 384 of file fipa_acl.c.

Referenced by fipa_DateTime_Copy().

int fipa_datetime_Parse ( fipa_DateTime_p datetime,
fipa_message_string_p  message 
)
int fipa_expression_Compose ( dynstring_t msg,
fipa_expression_t expr 
)
fipa_expression_t* fipa_expression_Copy ( fipa_expression_t src  ) 
int fipa_expression_Destroy ( fipa_expression_t expr  ) 
fipa_expression_t* fipa_expression_New ( void   ) 

Definition at line 248 of file fipa_acl.c.

Referenced by fipa_expression_Copy(), and MC_AclSetConversationID().

int fipa_expression_Parse ( fipa_expression_t **  expression,
fipa_message_string_p  message 
)
int fipa_GetAtom ( fipa_message_string_p  message,
char  expected_atom 
)
int fipa_GetNextWord ( char **  word,
const fipa_message_string_p  message 
)

Definition at line 765 of file fipa_acl.c.

References ERR, MC_SUCCESS, and fipa_message_string_s::parse.

int fipa_GetWholeToken ( char **  word,
const fipa_message_string_p  message 
)

Definition at line 813 of file fipa_acl.c.

References MC_SUCCESS, and fipa_message_string_s::parse.

Referenced by fipa_datetime_Parse().

int fipa_message_parameter_Parse ( struct fipa_acl_message_s acl,
fipa_message_string_p  message 
)
fipa_message_string_t* fipa_message_string_Copy ( fipa_message_string_t src  ) 

Definition at line 128 of file fipa_acl.c.

References fipa_message_string_s::message, fipa_message_string_s::parse, and strdup.

int fipa_message_string_Destroy ( fipa_message_string_t message  ) 

Definition at line 118 of file fipa_acl.c.

References fipa_message_string_s::message.

Referenced by acc_connection_Thread().

fipa_message_string_t* fipa_message_string_New ( void   ) 

Definition at line 110 of file fipa_acl.c.

Referenced by acc_connection_Thread().

int fipa_message_type_Parse ( enum fipa_performative_e performative,
fipa_message_string_p  message 
)
int fipa_number_Compose ( dynstring_t msg,
fipa_number_t number 
)

Definition at line 1548 of file fipa_acl.c.

References dynstring_Append(), and fipa_number_s::str.

Referenced by fipa_expression_Compose().

fipa_number_t* fipa_number_Copy ( fipa_number_t src  ) 

Definition at line 455 of file fipa_acl.c.

References fipa_number_New(), fipa_number_s::str, and strdup.

Referenced by fipa_expression_Copy().

int fipa_number_Destroy ( fipa_number_t number  ) 

Definition at line 445 of file fipa_acl.c.

References fipa_number_s::str.

Referenced by fipa_expression_Destroy().

fipa_number_t* fipa_number_New ( void   ) 

Definition at line 437 of file fipa_acl.c.

Referenced by fipa_number_Copy().

int fipa_performative_Compose ( dynstring_t msg,
enum fipa_performative_e  performative 
)
int fipa_protocol_Compose ( dynstring_t msg,
enum fipa_protocol_e  protocol 
)
int fipa_protocol_type_Parse ( enum fipa_protocol_e protocol,
fipa_message_string_p  message 
)
struct fipa_acl_message_s* fipa_Reply ( struct fipa_acl_message_s acl  )  [read]
int fipa_string_Compose ( dynstring_t msg,
fipa_string_t string 
)

Definition at line 1511 of file fipa_acl.c.

References fipa_string_s::content, and dynstring_Append().

Referenced by fipa_acl_Compose(), and fipa_expression_Compose().

fipa_string_t* fipa_string_Copy ( fipa_string_t src  ) 

Definition at line 374 of file fipa_acl.c.

References fipa_string_s::content, fipa_string_New(), and strdup.

Referenced by fipa_acl_message_Copy(), and fipa_expression_Copy().

int fipa_string_Destroy ( fipa_string_t str  ) 
fipa_string_t* fipa_string_New ( void   ) 

Definition at line 356 of file fipa_acl.c.

Referenced by fipa_string_Copy(), MC_AclSetContent(), and MC_AclSetConversationID().

int fipa_string_Parse ( fipa_string_p fipa_string,
fipa_message_string_p  message 
)
int fipa_url_Compose ( dynstring_t msg,
fipa_url_t url 
)

Definition at line 1540 of file fipa_acl.c.

References dynstring_Append(), and fipa_url_s::str.

Referenced by fipa_url_sequence_Compose().

fipa_url_t* fipa_url_Copy ( fipa_url_t src  ) 

Definition at line 427 of file fipa_acl.c.

References fipa_url_New(), fipa_url_s::str, and strdup.

Referenced by fipa_acl_envelope_Received_Copy(), and fipa_url_sequence_Copy().

int fipa_url_Destroy ( fipa_url_t url  ) 

Definition at line 417 of file fipa_acl.c.

References fipa_url_s::str.

Referenced by fipa_acl_envelope_Received_Destroy(), and fipa_url_sequence_Destroy().

fipa_url_t* fipa_url_New ( void   ) 
int fipa_url_Parse ( fipa_url_p url,
fipa_message_string_p  message 
)

Definition at line 1172 of file fipa_acl.c.

References fipa_word_s::content, fipa_word_Destroy(), fipa_word_Parse(), and strdup.

Referenced by fipa_url_sequence_Parse().

int fipa_url_sequence_Compose ( dynstring_t msg,
fipa_url_sequence_t urls 
)
fipa_url_sequence_t* fipa_url_sequence_Copy ( fipa_url_sequence_t src  ) 
int fipa_url_sequence_Destroy ( fipa_url_sequence_t sequence  ) 
fipa_url_sequence_t* fipa_url_sequence_New ( void   ) 
int fipa_url_sequence_Parse ( fipa_url_sequence_p urls,
fipa_message_string_p  message 
)
int fipa_word_Compose ( dynstring_t msg,
fipa_word_t word 
)

Definition at line 1503 of file fipa_acl.c.

References fipa_word_s::content, and dynstring_Append().

Referenced by fipa_expression_Compose().

fipa_word_t* fipa_word_Copy ( fipa_word_t src  ) 

Definition at line 346 of file fipa_acl.c.

References fipa_word_s::content, fipa_word_New(), and strdup.

Referenced by fipa_expression_Copy().

int fipa_word_Destroy ( fipa_word_t word  ) 
fipa_word_t* fipa_word_New ( void   ) 

Definition at line 328 of file fipa_acl.c.

Referenced by fipa_word_Copy().

int fipa_word_Parse ( fipa_word_t **  word,
fipa_message_string_p  message 
)
Generated on Tue Dec 28 15:15:27 2010 for Mobile-C by  doxygen 1.6.3