-
21
pages
-
English
-
Documents
Description
TutorialontuPrologagentsinDCaseLPToshowhowtuPrologagentscaneasilybeprogrammedandexecutedinDCaseLP,wewillgothrough,stepbystep,thecreationandimplementationofasmallMAS1prototypewhosecomponentsarebothJavaandtuPrologagents.The MAS we are about to create will represent a simple distributed market place where there are agents willing to buy fruit and agents wishing to sell it. Tosimplify our example, we will suppose that the fruit sold in the market is onlyoranges, apples and kiwi; moreover, there are only 3 shops and only 2 peoplebuying. The shops where people buy and the people themselves can all be rep resented by agents. We will call buyer1 and buyer2 the agents representing thepeople,whilewewilladdresswithseller, seller1and seller2theagentsrepresent ing the shops. Thus, our MAS consists of 5 agents. These agents could be Java,tuProlog or Jess agents. We will programme the behaviour of 4 of these agentsusing tuProlog, while we will use Java for the remaining one, for example theagent seller.Whatisthenextstep?The next step we will carry out is to determine what kind of interactions cantake place among our agents. All the interactions among the agents will implysending/receivingmessagesthroughtheJADEplatformsinwhichtheagentsaredeployed. So, what type of messages do we want to consider? Well, given thatour example is simple, we can probably expect the agents that sell fruit to mainlyreceive2differenttypesof requestsfromthebuyers:• ...
-
Publié par
-
Langue
English