軟體代理人開發工具之設計
全文
(2) The Design of A Software Agent Development Tool Student. Ding-Hsin Huang. Advisor. Chyan-Goei Chung. A Thesis Submitted to Department of Computer Science and Information Engineering College of Electrical Engineering and Computer Science National Chiao Tung University in Partial Fulfillment of the Requirements for the Degree of Master of Science in Computer Science and Information Engineering July 2004 Hsinchu, Taiwan, Republic of China. i.
(3) [2]. [13][17] [1][8][18]. IBM. Aglets. [1][19]. Aglets. i.
(4) The Design of A Software Agent Development Tool Student : Ding Hsin Huang. Adviser: Chyan-Goei Chung. Institute of Computer Science and Information Engineering College of Electrical Engineering and Computer Science Nation Chiao Tung University. Abstract Software agent is a program that has its own goal and execution thread. Software agent can act as a human-being that has the ability to work against any trouble and cooperate with other agents to achieve its goal. Software agent has four characteristics: autonomous, collaboration, learning human behaviors, and executing tasks anywhere in network by mobility. Therefore, software agent programs have been applied to developing large-scale multi-thread distributed system, such as data collection, network management, and network transaction. To accelerate the development of software agent-based system, there have been some development tools. However, these agent development tools just focused on coding level by providing agent classes to support user to write agent source code. There are no agent development tools to give an overall support from agent system analysis, agent behavior design, to agent system execution and validation. This thesis has design an agent system development tool that supports incremental development process and help user to analysis, design, and validate agent programs. At agent system design phase, our tool can support users to define agent system architecture, including the goal of agent, the tasks of agent, the relations between agents, mobility of agent, and learning ability of agent. At design and implementation phase, our tool will provide proper template code for user to apply. At validation phase, our tool supports user to define agent system deployment model and execute agent programs in order to validate the execution results. Our tool, which is based on IBM Aglets System, provides more services including architecture analysis tool and system validation tool. Users are able to increase agent system development performance and quality with our tool.. ii.
(5) ....................................................................................................................... iiiii. ...................................................................................................................... v ............................................................................................................. 1 1.1. ........................................................................................ 1. 1.2. .................................................................................................... 4 ...................................................................... 5. 2.1. .................................................................................... 5. 2.2. ............................................................................. 7 2.2.1. .............................................................. 7. 2.2.2. .............................................................. 8. 2.2.3. ......................................................... 13. 2.2.4. ................................................. 18. 2.3. ........................................................................... 19. 2.4. ........................................................... 23. 2.5. ........................................................... 30 2.5.1. ................................................. 30. 2.5.2. ......................................................... 36 ............................................................ 39. 3.1. AgentIDE. ........................................ 39. 3.2 AgentIDE. ............................................................................. 40 ................................................................ 45. 4.1. ................................................................... 45. 4.2. ........................................................................... 58 iii.
(6) 4.3. .................................................................................................. 59 ........................................................................ 66. 5.1. .................................................... 66. 5.2. ........................................................................... 77. 5.3. .................................................................................................. 79 ........................................................................ 84. 6.1. ........................................................................... 84. 6.2. ........................................................................... 88. 6.3. .................................................................................................. 90 ................................................................................................... 93. 7.1 7.2. –. ................................................................. 93 .................................................................................................. 93. ..........................................................................................................107 ...............................................................................................................109. iv.
(7) 1-1. ........................................................................................... 2 ..................................................................................................... 7. 2-2 2-3 Java. ................................................................. 8 Reflection ..................................................... 9. 2-4 Weak Mobility 2-5. ........................................................................... 9 ...................................................................... 10. 2-6 2-7. ............................................11 ............................11. 2-8 2-9. .............................................................. 12 .............................................................. 13. 2-10 2-11. Proxy. ........................................... 14 ............................................................................ 14. 2-12 Synchronous Send / Get Reply ................................................................... 15 2-13 Asynchronous Send / Asynchronous Get Reply........................................... 16 2-14 Synchronous Message Handling ................................................................. 16 2-15 Synchronous Message Handling ................................................................. 17 2-16 Parallel Message Handling ......................................................................... 17 2-17 ............................................................ 18 2-18 2-19. .................................................................... 19 ............................................................ 20. 2-20 (Provider - Requestor) .............................................................. 20 2-21 ........................................................................ 21 2-22 ............................................................................... 22 2-23 ........................................................ 23 2-24 ........................................................................... 23 2-25 ............................................. 24 2-26 ............................................................ 25 2-27 ................................................................. 25 2-28 ............................................................................... 26 2-29 ........................................................................... 28 2-30 .................................................................... 29 2-31 IBM Aglet .................................................................. 32 2-32 AgentBuilder ............................................................. 34 2-33 AgentBuilder .................................................. 35 v.
(8) 2-34. ........................................................................... 38. 3-1 3-2. (Refine) AgemtIDE. 3-3 AgentIDE 4-1. .......................................... 40 ................................................ 41. ....................................... 43 ................................................................................. 45. 4-2 4-3. .................................................................. 46 ............................................................................. 46. 4-4 4-5. .................................................................................................... 47 ................................................................................. 47. 4-6. ...................................................................... 48. 4-7 4-8 4-9. ..................................................................................... 48 ............................................................................................. 49 ...................................................................................... 49. 4-10 4-11. ................................................................................... 50 Naming Server .............................................. 51. 4-12 Naming Server 4-13 Meeting Manager Auction Server Buy 4-14 4-15. Requestor. “Lookup”. “Tell” .................................. 51 ............................................................... 52 Proxy ....................................................................... 52 Proxy ....................................................... 54 ................................................................................... 54. 4-16 4-17 4-18. ....................................................................................... 56 ............................................................................... 57 ........................................................................... 57. 4-19 4-20. ........................................................................... 58 ................................................................ 60. 5-1 ..................................................................................... 66 5-2 .................................................................. 69 5-3 ....................................................................... 70 5-4 ................................................................... 71 5-5 ............................................................... 72 5-5 Itinerary Pattern ......................................................... 73 5-6 ................................................................................. 74 5-7 One Shot Pattern ....................................................... 75 5-8 First Step Control Pattern ................................................ 76 5-9 Step by Step Control Pattern......................................................................... 77 5-10 ........................................................................... 78 5-11 ................................................................ 80 6-1 ......................................................................................... 84 vi.
(9) 6-2. ............................................................................. 85. 6-3 6-4. ................................................................................. 86 .......................................................... 86. 6-5 6-6. .................................................................. 87 .......................................................... 88. 6-7 6-8. .......................................................................... 89 ...................................................................... 90. 7-1 7-2. ................................................................................. 94 ............................................................................................. 94. 7-3. ......................................................................................... 95. 7-4 7-5 7-6. ................................................................................. 96 ................................................................................. 96 ............................................................................................. 97. 7-7 7-8. BuyerServer SellerServer BuyerServer SellerServer. 7-9 7-10 7-11 SellerAgent 7-12 Buyer 7-13 Buyer. AuctionServer ............ 97 ................................... 98. .............................................................. 98 ........................................................................ 99 ................................100. AuctionServer Seller. ........................................100 ...................................................101. 7-14 7-15 7-16. ..........................................................................101 Buyer ............................................................102 ........................................102. 7-17 7-18. ..............................................................................................103 ..........................................................................103. 7-19 ..................................................................................................104 7-20 BuyerServer ..................................................................105 7-21 Buyer Context1 AuctionServer ............................105 7-22 BuyerServer SellerServer ............................106. vii.
(10) 1.1. 80 [2][3][4]. (Autonomous). [6][14][15]. ”. ” ”. ”. ”. ”. 1.
(11) 1-1. 1-1. ”. ”. IBM Voyager [18]. Aglets [1][19]. Reticular System. ObjectSpace AgentBuilder [8][9]. 2.
(12) (Provider-Requestor) (Master-Slave). AgentIDE. AgentIDE. AgentIDE. AgentIDE. 3.
(13) 1.2. AgentIDE. AgentIDE. ”. AgentIDE. ”. AgentIDE. ”. ” (Architecture Editor). ” (Code Editor). ”. ” (Deployment Manager). ”. 4.
(14) 2.1. 5.
(15) 6.
(16) 2.2 [1][2]. 2.2.1 (Autonomous). C. “run” 7. “main()”.
(17) Agent Server. 2-2. 2-2. 2.2.2 (Mobility). Java. Java. ( Object Serialization). reflection reflection 2-3. 8. [22].
(18) 2-3 Java. Reflection. Java (Execution Stack). Agent Server Agent Server. Agent Server. 2-4. Weak Mobility. 2-4 Weak Mobility 9.
(19) Weak Mobility. 2-5. Agent Server Agent Server. 2-5. 10.
(20) 2-6. onCreation, run, onArrival. onDispatching onCreation onCreation. 2-6. 2-1 2-7. 2-7 11. onArrival.
(21) “wait” Agent Server. (dispatch) Agent Server Agent Server. Server “wait”. onDispatching. onDispatching. Server Server. (Itinerary). (Itinerary). Itinerary onCreation. 2-8. onCreation 2-8. onCreation 2-9. onArrival. 2-8 12. run.
(22) 2-9. onArrival. 2.2.3. [1] Agent Server. Agent Server Agent Server Agent. Server. Proxy. 13.
(23) 2-10. Proxy. (Message handler). Agent Server. Agent Server wait. Agent. Server. Message handler. Message handler. Message handler 2-11. “handleMessage”. 2-11. 14. Agent.
(24) Agent Server Agent Server (. wait. ) (Reply). Agent Server. Agent Server. Agent Server. 1 > Synchronous Send / Get Reply Synchronous Send. Reply. 2-12 Synchronous Send / Get Reply > Asynchronous Send / Asynchronous Get Reply Asynchronous Send. Synchronous Send. Asynchronous Send Reply. 15. Server.
(25) 2-13 Asynchronous Send / Asynchronous Get Reply 2 > Synchronized Message Handling (. 2-14). 2-15 ”one” ”two” ”three”. 2-14 Synchronous Message Handling. 16.
(26) 2-15 Synchronous Message Handling. > Parallel Message Handling (. 2-16). exitMonitor. 2-17. 2-16 Parallel Message Handling 17.
(27) 2-17. 2.2.4 (Learning). (Knowledge Base) (Fixed – Knowledge base) (Changeable – Knowledge base). (Fixed - Knowledge base). 1. (Owner) 18.
(28) 2-16 2.. ”. " (Connect). 2-18. 2-18. 2.3. (Provider - Requestor). (Master – slave). (Single Agent System) (Multi – Agent System). 19.
(29) (Multi – Agent System). 2-19. 2-19. (Provider – Requestor) Agent. Requestor Provider Agent. 2-20. (Provider - Requestor). (Master – Slave). 20.
(30) Master Agent. Slave. Agent. Master Agent. Slave. Agent Slave. Master Agent. Slave Agent. Slave. ”Master Agent Agent. Master. ”. Slave Agent. 2-21. Slave. Master Agent. Slave Agent. Slave Agent Master Agent. Slave Agent. (Group) Slave Agent 2-22. 2-21. 21.
(31) 2-22. 2-23. Master Agent Master Agent. Master Agent. Slave Agent. 2-24. 22.
(32) 2-23. 2-24. 2.4 [10]. 2.3. 23.
(33) 2-25. (Top Agent). ”. ”. Top-Down. 2-26. 2-25. 24.
(34) 2-26. 2-27. 2-27. 25.
(35) Top Level Agent Top-Level Agent Top-Level Agent. 2-28. 2-28. Step 1 Step 2 (Top Level Agents) Step 3 Step 4. Step 5 26.
(36) Step 6. Step 7 Step 4. Architecture Analysis Phase. ’ (method) (Design Class). 2-29. 27.
(37) 2-29. 2-30. Architecture Analysis Phase Agent Class Analysis Phase. Agent Task Analysis. 28.
(38) 2-30. Top-Down. 29.
(39) 2.5. 2.5.1 2.5.2. 2.5.1 (1) IBM Aglets IBM Aglets [1][19]. IBM. Java. Aglets 30.
(40) Aglet Java. Weak Mobility. Aglets. Aglet. Aglet. AgletContext. Aglet. AgletContext. Agent Server. Agent Server. Agent. Server. IBM Aglets. 2.2 run(). IBM Aglets. Aglet handleMessage() Agent Server IBM Aglets 2-31. 31.
(41) 2-31 IBM Aglet. IBM Aglets “Agent-Based”. (2) ObejctSpace Voyager ObjectSace. Voyager. [18] Voyager. Java. Voyager. Java “Remote Object Computing”. Voyager Voyager “Remote Object Computing”. 32.
(42) Voyager. Voyager. IBM Aglets. Voyager. IBM Aglets Voyager RMI. (3) Reticular System AgentBuilder. 33.
(43) 2-32 AgentBuilder. 34.
(44) 2-33 AgentBuilder. 35.
(45) 2.5.2. 36.
(46) 2-34. 37.
(47) 2-34. 38.
(48) Agent-Based Programming Support Agent Characteristic Development Process. Friendly User Interface. Incremental. Portable Code. AgentIDE (Agent Integrated Development Environment) 3.1. AgentIDE. 3.2. AgentIDE. 3.1. AgentIDE Top-Down (Incremental). AgentIDE 1. 39.
(49) 2. (Task) 3-1. 3-1. (Refine). 3. 4. 3.2 AgentIDE 3-2. AgnetIDE. AgentIDE AgentIDE. 40.
(50) 3-2. 1. 2. AgemtIDE. (Architecture Editor). (Code Editor). 41.
(51) 3. (Deployment Manager). (Scenario). 4. IBM Aglets Platform AgentIDE. IBM Aglets IBM Aglets. (1) IBM Agelts. Java-Based. 2.5. (2) IBM Aglets. 2.0.2 AgentIDE. AgentIDE. 42.
(52) (Console). AgentIDE 3-3. 3-3 AgentIDE 43.
(53) 3.1 AgentIDE. Top-Down AgentIDE. AgentIDE. 44.
(54) 4.1. 1. 4-1. 4-1 45.
(55) 2. (Goal Description) 4-2 “. ”. 4-2. 4-3. 4-3. 3. 4-4 46.
(56) “Task Specification” 4-5. 4-4. 4-5. 47. 4-6.
(57) 4-6. 4. (Provider – Requestor). “. ”. 4-7. 48.
(58) 5. (Master – Slave) “. 4-8. ”. 4-9. 4-8. 4-9. 6 4-10 ” “1. 1”. ”1. ”. ”. ” ” 1”. ” “. 49. ”. ”. ”.
(59) 4-10. “Identify Naming Server” Naming Server IP Address Proxy Proxy. Naming Server Naming Server “Register” Provider 4-11. 50. Requestor. Naming Server.
(60) 4-11. Naming Server. 4-11. AuctionServer. Naming Server. AuctionServer Seller. (Lookup) Server. Proxy Naming Server. (Tell) Seller. Seller. 4-12. Naming Server. Buyer. Buyer. 4-12 Naming Server. “Lookup” 51. Auction. “Tell”.
(61) Requestor. Provider. Proxy. Naming Server. Provider (Master). 4-13. Proxy. 4-13 Meeting Manager Auction Server. Buy. Proxy. ” ”Send by Multicast”. ”. ”Send By Proxy”. Multicast. Proxy. Multicast. “Send By Proxy” Proxy. Requestor. Provider Proxy. Requestor. Provider Proxy 1. By Agent Server Support Requestor Server. Provider. Agent Agent Server. 52.
(62) 2. Master Assigned Provider. Requestor. Proxy. Requestor. Requestor. Agents). (Ancestor. Provider. Naming Server. Provider Requestor. Provider 3. Master. Proxy. Use Multicast to Ask Provider. Requestor Requestor. Multicast. Provider 4. Requestor Create Provider Requestor Requestor. Provider. Provider. Proxy 5. Provider has register to Requestor Proxy. 6. Requestor. Requestor. By Ask Naming Server Requestor Server. Provider Provider Provider. Naming. Requestor Naming Server. 7. Naming Server Tell Provider Requestor. Naming Server Naming Server. Requestor. Requestor Provider Proxy. 4-14. 53.
(63) 4-14. Requestor. Proxy. 7 4-15. 4-15. “1. 1”. ”1. ” “Control Pattern”. 54.
(64) Master. Slave. 1. None. Master. Slave. 2. First Step Control. 3. Step By Step Control. Master. Slave. Proxy Requestor Proxy. (Master). Provider. Requestor. 8 “. (1). “. 1. ”. “. ”. ”. Itinerary Pattern. (Link-List. or Array) (Itinerary). Itinerary Pattern. 55.
(65) Itinerary Pattern 2. One Shot Pattern “One Shot Pattern” (onCreation). “true” ”false” 3. Dynamic Decision Pattern. Dynamic Decision Pattern Itinerary Pattern Decision Pattern. One Shot Pattern. Itinerary Pattern. Dynamic. Dynamic Decision Pattern. “One Shot Pattern” Pop-Up Menu “Mobility Setup”. 4-16. 4-17. 4-16 56.
(66) 4-17. (2). “. ”. 4-18. 1 2. 4-18. 57.
(67) 9 10. 4.2 4-19. (Editor Panel) (Agent Constructor) (Agent Relation Constructor). 4-19. 1. 58.
(68) 2. (1). (2). (3). (4). Proxy (5). 4.3 Java 1.4.1. Java. 4-20. 59.
(69) 4-20. (1). “AgentData” “AgentData”. 1 2 3 4 5 6. 60. AgentData.
(70) (2). “AgentRelation”. AgentRelation. AgentRelation. 1. AgentRelation. (. ). 2 3. (3). ”ArchitectureEditor” ArchitectureEditor. Java. paintComponent(Graphics g). JPanel JPanle. (. ). ArchitectureEditor Architecture Editor Arechitecture Editor. 1 2 3. (4). “DiagramComponent”. DiagramComponent ,. JComponent. JComponent. DiagrramComponent. JComponent. paintCompoent(Graphcis g) DiagramComponent. AgentData DiagramComponent. 61. java.
(71) 1. AgentData public class AgentData { String agentName;. //. String goal;. //. Vector taskList;. /* TaskData. String activeMobilityPattern. //. String passiveMobilityPattern. //. Vector proxyData;. //. Proxy. int x;. //. x. int y;. //. y. int width;. //. int height;. //. Vector relationships;. // //. AgentRelationship. DiagramComponent component; /* */ }. 2. */. TaskData. public class TaskData { String description;. //. } 62.
(72) 3. MethodData public class MethodData { String methodName;. //. Hashtable args;. //. }. 4. AgentRelationship public class AgentRelationship { // public static int PROVIDER_REQUESTOR = 0; // public static int MASTER_SLAVE = 1; //. Multiplicity. public static int ONE_TO_ONE = 0; public static int ONE_TO_MANY = 1; public static int MANY_TO_ONE = 2; public static int MANY_TO_MANY = 3; int type;. //. int multiplicity;. //. Boolean isRegister;. //. Boolean isLookup;. //. Boolean isTell. //. (. int proxy_get_mechanism; // AgentData startAgent;. //. AgentData endAgent;. //. Provider Proxy. 63. ).
(73) }. 5. ArchitectureEditor. javax.swing.JPanel. public class ArchitectureEditor extends javax.swing.JPanel { //. ArchitectureEditor “. ”. public static int INSERT_AGENT = 0; //. ArchitectureEditor “. ”. public static int CREATE_MS_RELATION = 1; //. ArchitectureEditor “. ”. public static int CREATE_PR_RELATION = 2; Vector agentList;. /*. Vector AgentData */. Vector relationList;. /*. Vector AgentRelationship. Hashtable lineAreas;. /* AgentRelationshep. */ }. 6. “DiagramComponent”. javax.swing.JComponent. JComponent. public class DiagramComponent extends JComponent { 64. */.
(74) AgentData agentData;. //. boolean isSelected;. /* */. boolean isClassShowed;. /* true. */ }. 7. “DiagramMouseAdapter”. java.awt.event.MouseListener. java.awt.event.MouseMotionListener. public class DiagramMouseAdapter implements MouseListener, MouseMotionListener { int original_x,. /* x. int original_y;. */. /* y. int original_w,. */. /* */. int original_h;. /* */. }. 65.
(75) 5.1. 11. 5-1. AgentIDE. 5-1 66.
(76) (1). (Text Editor). (2). (Task Specification). (3). (Agent Constraints). (4). (Output Window) (Compiler). .class. 12. (1). (Task Specification). (2) (Concurrent message handling. Sequential Message. handling) (Send By. (3) Multicast. Send By Proxy). (4) 67.
(77) (5) (6). 13. (i). onCreation(Object init). (ii). run(). (iii). handleMessage(Message msg). (iv). onArrival. (v). onDispatching. (vi). onDisposing. onCreation() run() onDisposing(). Provider. orArrival(). handleMessage(). onDispatching(). 14. Multicast Multicast. 68.
(78) 5-2. 5-2. (1). Requestor. (i). 69.
(79) 5-3. 5-3. (ii). 5-4. 70.
(80) 5-4. (iii). 5-5. 71.
(81) 5-5. (2). Itinerary Pattern. One Shot. Pattern Dynamic Generated Next hop Pattern First Step Control. Step by Step Control. AgentIDE. (i) Itinerary Pattern. “. 72. ”.
(82) 5-4. ”Apply Itinerary Pattern”. onCreation ”. ”. 5-6. 5-5. Itinerary Pattern. 73. 5-5.
(83) 5-6. (ii) One Shot Pattern. onCreation run 5-7. 74.
(84) 5-7. One Shot Pattern. (iii) Dynamic Decision Pattern. Dynamic Decision Pattern. (3). 1. First Step Control Pattern. First Step Control Pattern 75. 5-8.
(85) 5-8. 2. First Step Control Pattern. Step by Step Control Pattern. Step by Step Control Pattern. 76. 5-9.
(86) 5-9 Step by Step Control Pattern. 15 (Compile). 5.2 5-10 (Editor Panel). (Compiler Controller). (Task Specification Panel). 77.
(87) 5-10. 1. 2. (Editor Panel). (Compiler Controller) Java. 3. (Task Specification Panel). 78.
(88) 4. “Project Source File” XML. TemplateGenerator <Template> <Name>. </Name>. <Insert> <Position>. </Position>. <code> <args> <Meaning> <Type> </args> ; <br> ; <br> </code> </Insert> </Template>. 5.3 5-11. 79. </Meaning> </Type>.
(89) 5-11. (1). “CodeEditor”. java. 1 2 (2). “TaskSpecPanel”. (3). “TextEditor”. ”TextEditor”. (4). “OutPanel”. (5). “CompilerController”. “OutPanel”. 80.
(90) 1. (6). “TemplateGenerator”. (7). “TemplatePattern”. CodeEditor public class CodeEditor extends JPanel { Vector openedSource;. //. TextEditor textEditor;. //. TaskSpecPanel taskPanel;. /* */. OutputPanel outputPanel;. //. CompilerController compiler;. //. }. 2. TextEditor public class TextEditor extends JTextArea. {. AgentData agentData;. //. JPopUpMenu popUpMenu;. /* AgentData */. String tempCode;. //. Parser parser;. /* 81.
(91) */ Vector variables;. /* */. Vector functions;. /* */. TemplateGenerator;. //. } 3. TemplateGenerator public class TemplateGenerator { Hashtable hashTable;. /* TemplatePattern. } 4. TemplatePattern public class TemplatePattern { String patternName;. //. Hashtable insertCode;. /* */. }. 5. TaskSpecPanel public class TaskSpecPanel extends JPanel { AgentData agentData;. //. JTextArea taskSpecArea;. //. DefaultListModel constraintsListModel;. /* String */. 82. */.
(92) JList constraintsList;. //. }. 6. OutputPanel public class OutputPanel extends Jpanel { JTextArea output;. //. }. 7. CompilerController public class CompilerController { String compilerLocation;. // Java. Vector libs;. /*. String */. String destinationLocation;. /*. .class */. }. 83.
(93) 6.1. (Script File). 1. 6-1. 6-1 84.
(94) 6-1. “Execute”. 2 “Add Agent Context” 6-2. 6-2. 3 “Add Agent”. 6-3. 6-4. 85.
(95) 6-3. 6-4. 4. 6-4 86.
(96) 5 6-5. 6-5. 6. “ ”. 87.
(97) 7 6-6. 6-6. 6.2 6-7 “Deployment Manager Panel”. “Agent Server”. 88.
(98) 6-7. 1 Deployment Manager Panel. Deployment Manager Panel. Deployment Manager Panel. Deployment. Manager Panel. 2. Agent Server Controller. Deployment Manager Panel “ ”. Server Controller Deployment Manager Panel 89. ”. ”. ” ”. Agent.
(99) 6.3 6-8. Output Panel. DepolymentPanel. DeploymentManager. AgentController. Script java.io. Serializable. ACInst ance. AgentInstance. 6-8. (1). “ACInstance” Agent Context Instance. 1 2 3 (2). “AgentInstance” 1 2. (3). “Script”. ACInstance 90. AgentInstance. AgentContext.
(100) “Script”. 1 2 3. (4). “AgentController” AgentController. (5). ”DeploymentManager”. (6). “DeploymentPanel”. Java. UI. “Script”. (7). 1. “OutputPanel”. Agent Context. ACInstance public class ACInstance { String name;. //. int portNamber;. //. Vector agentList;. //. } 91.
(101) 2. AgentInstance public class AgentInstance { String classType;. //. int sequenceNumber;. //. }. 3. Script public class Script { Vector acList;. //. Vector agentList;. //. }. 4. AgentController public class AgentController { Script script;. //AgentController. }. 92.
(102) ”. 7.1. ”. AgentIDE. –. 1. 2. 3. 4. 5.. 6. 7.. 8.. 7.2 AgentIDE “File”. 7-1. 93.
(103) 7-1. 7-2. 7-2. 94.
(104) BuyerServer SellerServer AuctionServer 7-3. 7-3. 7-4. BuyerServer. 95. BuyerServer.
(105) 7-4. 7-5. 96.
(106) SellerServer. AuctionServer. AuctionServer AuctionServer “. BuyerServer BuyerServer. SellerServer. ”. 7-6. 7-6. 7-7. BuyerServer SellerServer 97. AuctionServer.
(107) BuyerServer. 7-8. SellerServer. 7-9. 7-8. BuyerServer. SellerServer. 7-9 98.
(108) BuyerServer Buyer. SellerServer. AuctionServer. AuctionServer. Seller. 7-10. 7-10. Seller. AuctionServer. “ 7-11. AuctionServer. ” 7-12 7-13 BuyerAgent. 99. SellerAgent. Buyer.
(109) 7-11 SellerAgent. 7-12 Buyer. AuctionServer. 100.
(110) 7-13 Buyer. Seller Buyer. Seller. AuctionServer 7-14. 7-14. 7-15 7-16. 101.
(111) 7-15. Buyer. 7-16. 102.
(112) “ 7-17. 7-17. , 7-18. 7-19. 7-18. 103. ”.
(113) 7-19. BuyerServer. SellerServer. BuyerServer. SellerServer AuctionServer. BuyerServer. 104. Buyer. Seller 7-20.
(114) 7-20 BuyerServer. “OK” Buyer. BuyerServer. BuyerServer 7-21. 7-21 Buyer Buyer BuyerServer. Context1. AuctionServer. Seller. SellerServer. 7-22. 105.
(115) 7-22. BuyerServer. 106. SellerServer.
(116) (Model). [12][14][15]. (1). (2). (3). (4). 107.
(117) (1) (Design Class). UML [14]. (2) (Visualising Agent Behavior Debug Tool) [16]. 108.
(118) 109.
(119) 110.
(120) 111.
(121)
相關文件
You are given the wavelength and total energy of a light pulse and asked to find the number of photons it
Reading Task 6: Genre Structure and Language Features. • Now let’s look at how language features (e.g. sentence patterns) are connected to the structure
volume suppressed mass: (TeV) 2 /M P ∼ 10 −4 eV → mm range can be experimentally tested for any number of extra dimensions - Light U(1) gauge bosons: no derivative couplings. =>
The temperature angular power spectrum of the primary CMB from Planck, showing a precise measurement of seven acoustic peaks, that are well fit by a simple six-parameter
incapable to extract any quantities from QCD, nor to tackle the most interesting physics, namely, the spontaneously chiral symmetry breaking and the color confinement..
• Formation of massive primordial stars as origin of objects in the early universe. • Supernova explosions might be visible to the most
This kind of algorithm has also been a powerful tool for solving many other optimization problems, including symmetric cone complementarity problems [15, 16, 20–22], symmetric
Continue to serve as statements of curriculum intentions setting out more precisely student achievement as a result of the curriculum.