Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how we do he coding of agent

in multi agent environment, specifically for air line reservation.
Posted
Comments
Richard MacCutchan 4-Feb-13 5:02am    
This is not a valid question, you need to provide more specific details of your problem.

I have implemented agent based systems in the past. The principle I have worked to is that there are three levels, Manager, Agent and Worker.

The Manager receives all the requests and ensures they are passed to the correct Agent then passes the replies back to the callers. Simple and easily defined responsibility, can't go too wrong there.
The Agent maintains a FIFO queue of requests and has one or more Workers to manage the work load. When a Worker is free, it receives a new request.
The Workers process the individual requests. This is the only part of the system that changes for different types.

Simple, effective and very expandable. Look out in the coming months and there will be an article on this if I ever get it finished.
 
Share this answer
 
C#
#include<iostream.h>
using namespace std;

int main() {
  int x, y;
  cout<<"what is your height?"<<"\nyour feet: ";
  cin>>x;
  cout<<"your inches: ";
  cin>>y;
  cout<<"your height is: "<<x<<"'"<<" and "<<y<<"''";
  cout<<"\nYou are tall!";

  return 0;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900