Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

AddAgent.c File Reference

An agent that adds two integers together. More...

#include <stdio.h>
#include <libicl.h>
#include <liboaa.h>

Go to the source code of this file.

Defines

#define AGENT_NAME   "AddAgent_C"

Functions

int add_callback (ICLTerm *goal, ICLTerm *params, ICLTerm *solutions)
 Satisfies add(Addend1, Addendd2, Sum) goals.

int setup_oaa_connection (int argc, char *argv[])
 Setups up the the connection between this agent and the facilitator.

int main (int argc, char *argv[])


Detailed Description

An agent that adds two integers together.

Its single solvable is add(Addend1, Addend2, Sum).

Definition in file AddAgent.c.


Define Documentation

#define AGENT_NAME   "AddAgent_C"
 

Definition at line 7 of file AddAgent.c.


Function Documentation

int add_callback ICLTerm goal,
ICLTerm params,
ICLTerm solutions
 

Satisfies add(Addend1, Addendd2, Sum) goals.

Parameters:
goal the goal
params parameters
solutions the solutions list; this callback will add the satisfied goal to this list if the callback is successful.
Returns:
TRUE if successful

Definition at line 84 of file AddAgent.c.

int main int  argc,
char *  argv[]
 

Definition at line 12 of file AddAgent.c.

int setup_oaa_connection int  argc,
char *  argv[]
 

Setups up the the connection between this agent and the facilitator.

Parameters:
argc passed in but not used in this implementation
argv passed in but not used in this implementation
Returns:
TRUE if successful

Definition at line 38 of file AddAgent.c.


Generated on Thu Nov 3 22:22:22 2005 using doxygen 1.3.5