資源描述:
《jade編程入門》由會員上傳分享,免費在線閱讀,更多相關內容在教育資源-天天文庫。
1、JADETUTORIAL(教程)JADEPROGRAMMINGFORBEGINNERS(玉編程基礎入門)USAGERESTRICTEDACCORDINGTOLICENSEAGREEMENT.(基于許可證的用法限制)JADE-JavaAgentDEvelopmentFramework(開發(fā)框架)isaframeworktodevelopmulti-agentsystems(多代理系統(tǒng))incompliancewiththeFIPAspecifications(遵從FIPA規(guī)范).JADEsuccessfullypassedthe1stFIPAinteroperabilitytest(相互操作
2、性測試)inSeoul(Jan.99)andthe2ndFIPAinteroperabilitytestinLondon(Apr.01).Copyright(版權)(C)2000CSELTS.p.A.(C)2001TILabS.p.A.(C)2002TILabS.p.A.Thislibraryisfreesoftware(這是一個自由軟件庫);youcanredistribute(重新分配)itand/ormodifyitunderthetermsoftheGNULesserGeneralPublicLicenseaspublished(在發(fā)表GNU公共許可證的前提下)bytheFreeS
3、oftwareFoundation,version2.1oftheLicense(自由軟件基金會授權的2.1版本).Thislibraryisdistributedinthehopethatitwillbeuseful,butWITHOUTANYWARRANTY(無任何擔保);withouteventheimpliedwarranty(隱含保證)ofMERCHANTABILITY(merchantability適銷性)orFITNESS(fitness針對性)FORAPARTICULARPURPOSE(particularpurpose特定用途).SeetheGNULesserGenera
4、lPublicLicenseformoredetails.Youshouldhavereceivedacopyof(副本)theGNULesserGeneralPublicLicensealongwiththislibrary;ifnot,writetotheFreeSoftwareFoundation,Inc.(公司),59TemplePlace(59寺廣場)-Suite(套房)330,Boston,MA(麻?。?2111-1307,USA.TABLEOFCONTENTS(目錄)1JADEOVERVIEW(概述)1.1ContainersandPlatforms(集裝箱和平臺)1.2AM
5、SandDF(AgentManagementSystemandDirectoryFacilitator代理管理系統(tǒng)和目錄誘導者)2THE“BOOKTRADING”EXAMPLE(“圖書交易”例子)3CREATINGJADEAGENTS–THEAGENTCLASS(創(chuàng)造玉代理-代理類)3.1Agentidentifiers(代理標識符)3.2Runningagents(運行代理)3.3Agenttermination(代理終止)3.4Passingargumentstoanagent(傳參給代理)4AGENTTASKS–THEBEHAVIOURCLASS(代理任務-類得行為)4.1Behav
6、ioursscheduling(安排)andexecution(執(zhí)行)4.2One-shotbehaviours,cyclicbehavioursandgenericbehaviours(單次行為,循環(huán)行為和一般行為)4.3Schedulingoperationsatgivenpointsintime(在給定的時間安排操作點)4.4Behavioursrequiredinthebooktradingexample(在書本交易例子中需要的行為)4.4.1Book-buyeragentbehaviours(買書代理的行為)4.4.2Book-selleragentbehaviours(賣書代理
7、的行為)5AGENTCOMMUNICATION–THEACLMESSAGECLASS(代理溝通-aclmessage類)5.1TheACLlanguage()5.2Sendingmessages(發(fā)送消息)5.3Thebooktradingexamplemessages(圖書貿易例子中的消息)5.4Receivingmessages5.5Blockingabehaviour(封鎖一個行為)waitingforamessa