libtrigger.h File Reference

Contains C versions of the trigger functions for the Open Agent Architecture. More...

Go to the source code of this file.

Defines

#define EXTERN   extern

Functions

EXTERN int oaa_CheckTriggers (char *type, ICLTerm *condition_var, char *op)
 Given a trigger type, a mask and an Op (e.g.
EXTERN int oaa_AddTrigger (char *type, ICLTerm *condition, ICLTerm *action, ICLTerm *initial_params, ICLTerm **out_params)
 Adds a trigger according to parameters.
EXTERN int oaa_RemoveTrigger (char *type, ICLTerm *condition, ICLTerm *action, ICLTerm *initial_params, ICLTerm **out_params)
 Removes a trigger from a local or remote agent.
int oaa_add_trigger_local (char *type, ICLTerm *condition, ICLTerm *action, ICLTerm *params)
int oaa_remove_trigger_local (char *type, ICLTerm *condition, ICLTerm *action, ICLTerm *params)


Detailed Description

Contains C versions of the trigger functions for the Open Agent Architecture.

Definition in file libtrigger.h.


Define Documentation

#define EXTERN   extern

Definition at line 36 of file libtrigger.h.


Function Documentation

int oaa_add_trigger_local ( char *  type,
ICLTerm condition,
ICLTerm action,
ICLTerm params 
)

Definition at line 574 of file libtrigger.c.

EXTERN int oaa_AddTrigger ( char *  type,
ICLTerm condition,
ICLTerm action,
ICLTerm initial_params,
ICLTerm **  out_params 
)

Adds a trigger according to parameters.

Type = comm, data, task, time

Condition= comm:event to match, data:data to match, task:solvable to call time:@

Action = Can be any of these:

Params =

Default destination for triggers:

Definition at line 558 of file libtrigger.c.

EXTERN int oaa_CheckTriggers ( char *  type,
ICLTerm condition_var,
char *  op 
)

Given a trigger type, a mask and an Op (e.g.

[send, receive], [add, remove], etc), see if any triggers fire.

Definition at line 99 of file libtrigger.c.

int oaa_remove_trigger_local ( char *  type,
ICLTerm condition,
ICLTerm action,
ICLTerm params 
)

Definition at line 598 of file libtrigger.c.

EXTERN int oaa_RemoveTrigger ( char *  type,
ICLTerm condition,
ICLTerm action,
ICLTerm initial_params,
ICLTerm **  out_params 
)

Removes a trigger from a local or remote agent.

Definition at line 567 of file libtrigger.c.


Generated on Wed May 23 17:20:16 2007 using doxygen 1.5.2