============================== Scenario for Agent Interaction ============================== ADK 1.0: The model-based Agent Development Kit Nov. 20, 2001 Notes: All other requirements for air tickets purchasing are assummed satisfied unless they are explicitly stated. ========= 1. normal ========= -- 1 seller agent and 1 buyer agent -- Seller agent [1]: 15 tickets Buyer agent [1]: 1 ticket --------------- expected result --------------- buy 1 ticket from Seller agent [1]. ================= 2. race condition ================= -- 1 seller agent and 2 buyer agents -- Seller agent [1]: 15 tickets Buyer agent [1]: 10 tickets Buyer agent [2]: 10 tickets --------------- expected result --------------- Buyer agent[1] or [2] buy 10 tickets from Seller agent [1]. The other Buyer agent buy 5 tickets from Seller agent [1]. ================= 3. negative reply ================= -- 2 seller agents and 1 buyer agent -- Seller agent [1]: Chicago --> New York, 15 tickets Seller agent [2]: Chicago --> Dayton, 15 tickets Buyer agent [1]: Chicago --> Dayton, 10 tickets --------------- expected result --------------- buy 10 tickets from Seller agent [2]. =============== 4. lowest price =============== -- 2 seller agents and 1 buyer agent -- Seller agent [1]: 5 tickets, lowest price $180 Seller agent [2]: 15 tickets, lowest price $200 Buyer agent [1]: 8 tickets --------------- expected result --------------- buy 5 tickets from Seller agent [1]. buy 3 tickets from Seller agent [2]. ========================================= 5. unfinished goal and newly joined agent ========================================= step 1: -- 1 seller agent and 1 buyer agent Seller agent [1]: 5 tickets Buyer agent [1]: 8 tickets step 2: -- 1 new seller agent joins the Jini community -- Seller agent [2]: 15 tickets --------------- expected result --------------- buy 5 tickets from Seller agent [1]. buy 3 tickets from Seller agent [2]. -- end of demo Conversation between a seller and a buyer in the normal case: BA_e068 (to SA_d4b9): Do you sell air tickets? SA_d4b9: Yes, I do. I am an air ticket seller. BA_e068 (to SA_d4b9): Do you sell tickets from Chicago to Dayton? SA_d4b9: Yes, I sell tickets from Chicago to Dayton. BA_e068 (to SA_d4b9): I want to buy 2 air tickets on 12/05/01. SA_d4b9: Ok, I have 2 air tickets on 12/05/01. BA_e068 (to SA_d4b9): How much does the air ticket cost? SA_d4b9: The air ticket costs $300.0. BA_e068 (to SA_d4b9): May I have a better price? SA_d4b9: The lowest price is $200.0. BA_e068 (to SA_d4b9): Ok, I'll take 2 air tickets from you. BA_e068 (to SA_d4b9): [Confirmation] I'll buy 2 air tickets from Chicago to Dayton on 12/05/01 for $200.0 each.