华东交通大学硕士学位论文智能Agent技术在图书贸易系统中的研究与实现姓名:方锡发申请学位级别:硕士专业:计算机应用技术指导教师:胡应平20070420IAgentAgentAgentAgentAgentFIPAACL1AgentAgentFIPAACLKQMLIEEEFIPAAgentAgentJ2EEFIPAJadeAgentJSP2FIPAAgentJADEAgentJ2EEMVCJADEJSPServletAgentAgentJava3JWSDP2.0Tomcat5.0WARTomcatwebappsAgentAgentJavaAgentFIPAACLServletAgentAgentDFAgentAgentB2CAgentJADEFIPAJ2EEabstractIIImplementationandResearchonIntelligentAgent’sApplicationinBook-TradingSystemABSTRACTIntelligentAgenttecholonogyhasbroughtmanynewsolutionstoapplicationfieldswithitscontinuousdevelopmentinrecentyears.Bymeansofitsintelligencecharacteristicagentcansimulatemanyentitestofinishtheirbusinesssafely.Thisessayputsforwardanewkindofbook-tradingsystemplatformbasedonmulti-agents.Wedesigntwoagents-BuyerAgentandSellerAgent-toimitatethebook-buyerandthebook-seller.TwoagentscommunicateeachotherusingtheFIPAACL,andthenaccomplishthedealonce.Thisessayhasthefollowingcharacteristics:1Firstlytheessayintroducesthebasicconceptionofagent,analysestheagent’sgeneralstructureandcharacteristicsandthenillustratesthetwokindsofAgentCommunicationLanguage-KQMLandFIPAACL,especiallytheFIPAmulti-agentplatformarchitechtureandthecommunicationamongagentsontheplatform.Thisbook-tradingsystemtriesitsbestotintegratethewidelyusedJ2EEarchitecturewiththemulti-agentplatformJADEwhichaccodswiththeFIPAArchitectureandshowitselftocustomersusingJSPtechnology.2Secondlyweputforwardabook-tradingsystemarchitecturebyvitureoftheJADEmulti-agentplatformandJ2EEarchitecture.DuringdesigninganddevelopingthesystemwetakeadvantageoftheJADEdevelopmentpacks,MVCmodelandJSP&Servlettechnology.ThenweimplementstheBuyerAgent,SellerAgentandothersclasses.3Deploymentandrunning.RequirementenvironmentsincludeJWSDP2.0andTomcat5.0ApplicationServer.WARpackageisdeployedunderthefolderwebappofTomcat.Clientssendthebooknametotheserverthroughthebowser,andinreturnwillgetthelowestpriceandthecorrespondingseller.Aboveall,thisessayputsforwardabook-tradingsystemarchitectureandimplementsitinjava.Thebuyerandselleragentsbothhavetheirownbehavioursets.ThetwoagentscommunicatewithFIPAACL.Afteracustomentersabookname,ServletinstancewillestablishthebuyeragentwhichwillsearchtheselleragentsinDF,thencommunicatethemandacquirethelowestpriceandthecorrespondingselleragent.Thatwillclearlyreducecustomers’burdenofnegotiationandinformation-collectinginmoderne-businesstrading,savethetradetimeandimprovetheefficiency.Thisarchitechturenotonlymeetstheneedofbook-trading,butcanapplytoalltraditionalB2Ce-business.KeyWords:multi-agent,JADE,FIPA,J2EE,book-trading____________________________________________________________11.1Internet[1]B2CBrowser/ServerHTTP21[2]Web11Fig.1-1TraditionalE-businessModel1-2/AgentJADEDFAgentAgentAgent212n1-2Fig.1-2PresentBook-tradingModelInternet[3]Agent1.21.2.1AgentB2CAgentBargainFinderFireFlyAuctionBotAgentAgentAuctionBotAgent[9][10]AgentAgentAgentAgletsMagNET[11]AgletsTingpengLiang[12]AgentJeffrey[13]Agent3IECSS[14][15]AgentCyberMarket[16]MobileAgentMobileAgentMobileAgent[17]Agent[18]MobileAgentAgent[9]AgentB2C13AgentAgentAgentAgentAgentAgentAgentAgentAgentAgentAgentAgentAgentAgentAgentAgent13AgentFig.1-3E-businessProcessDiagramBasedOnMobileAgentAgent1.2.2Agent/MASAgentAgentAgentAgentAgentMASAgentJenningsAgent/MASAgent1.2.2.1Agent4AgentAgentAgent[4]AgentBDIAgentMAS1.2.2.2MASAgentAgentAgentAgentAgentAgentAgentMASAgentAgentAgentAgent[4]1.2.2.3/Agent/MASAgent[4]AgentAOP[5][6][7][8]AgentAgent1.31.3.1AgentFIPAAgentAgent1AgentAgentFIPAJ2EE2JADEIEEEFIPAAgentJADEFIPAAgentJADE3J2EEAgentUML5Agent1.3.2AgentAgentAgentFIPAACLAgentJ2EEJADEJ2EEJAVAAgentACLJ2EEAgentAgentAgentAgentJ2EEJSPServletTomcat5.0FIPAFIPAAgentIEEEAgentAgentFIPAAgentJADEFIPAAgentAgentJADEJ2EEAgentUMLAgentAgentServletAgent6AgentDAIDAIDistributedProblemSolvingAgentMultiAgentSystemParallelArtificialIntelligentAgent19771995AgentSmartAgent1995AgentAgentAgentAgentAgentAgentAgentAgent2.1Agent2.1.1AgentAgentAgent1agentFIPAFoundationforIntelligentPhysicalAgentsAgent2AgentWooldridge[4][19]Agentagentagentagentagentagent3[20]agent4HayesRothagent[21]5StuartRussellPeterNovrig[22]761994MinskyCommunicationofACMAgentAgentAgentAgent2.1.2Agent1ReactiveAgentIntentionAgentSocialAgent[20]2[3]agentagentagentagentagent2121agentFig.2-1ClassificationofSoftwareAgent3IBMGilbert1995AgencyIntelligenceMobile[20]22822Fig.2-2DiscriptionofIntelligentAgentAccordingtotheEffectness,IntelligenceandMobilization2.1.3AgentAgentAgentAgentAgentAgentAgentAgentAgent3AgentAgent3Agent239AgentAgent23AgentFig.23TheConstructionofAgentsAction2.1.4AgentAgentAgentAgentAgentAgent[29]AgentAgentBratmanBDIBeliefDesireIntentionTheoryKripkeMooreCohenLevesqueKonoligeRAO[23]MooreAgent[24]AgentAgentMooreAgent[23]BratmanBDIBeliefDesireIntentionTheoryBratman[24][25]1BratmanBDI[25]AgentAgent1987Bratman10DAIBratmanAgentAgentAgentAgent2RaoGeorgeffBDI[26]A.RaoM.GeorgeffBDIBDIRaoGeorgeffCTL3AgentS5KD45KD2.1.5Agentf:P*AAIagent=architecture+program[22][22]242526271124Fig.2-4ASimpleReflexAgent25Fig.2-5AReflexAgentwithInternalState1226Fig.2-6AAgentwithExplicitGoa