270 likes | 418 Views
Warren Demonstration. Overview. Starting Warren. First we start the RETSINA java DemoDisplay as an applet. The DemoDisplay is a visualization agent that allows us to see agents interacting. Starting the Warren Agents.
E N D
Warren Demonstration Overview
Starting Warren • First we start the RETSINA java DemoDisplay as an applet. • The DemoDisplay is a visualization agent that allows us to see agents interacting.
Starting the Warren Agents • Now that the DemoDisplay is running, we can start the Matchmaker and the agents and show them registering with the Matchmaker. First the Matchmaker comes up. • The Matchmaker is an information agent that helps make connections between agents that request services and agents that provide services.
Starting the Warren Agents • Next, three of the Warren related agents– iNews, iYahoo, and iEdgar– come up and start to register their advertisements with the Matchmaker. • iNews gathers breaking news articles in real time, from the web. • iYahoo gathers stock prices and other stock related information, again in real time from the web. • iEdgar harvests Financial Data Summaries from SEC 10-k filings, from the EDGAR web site.
Starting the Warren Agents • While the first three agents are still registering, the rest of the Warren agents—the RiskCritic, the Comptroller, and the FdsHistoryAgent—come up and start to register with the Matchmaker. • TheRiskCritic evaluates portfolios for financial risk using a well known stock market risk measure referred to as "beta". • The Comptroller is in charge of maintaining records of a users portfolio, and buying and selling the users' stocks. • The FdsHistoryAgent gathers data from multiple years of Financial Data Summaries and presents a historical view of the data.
Starting the Warren Agents • Now all of the information agents are running and have finished registering their advertisements with the Matchmaker.
Starting the Warren Applet • Now that the Matchmaker and all of the information agents used by Warren are running and displaying their interactions on the DemoDisplay, we can start one or more instances of the Warren applet. • The Warren applet acts as the representative of and interface to the user in the Multi-Agent System (MAS). It provides a GUI to the user, and uses the information agents to gather and present stock market related information.
Starting the Warren Applet • The first thing the Warren applet does is ask the user for userid/password information.
Starting The Warren Applet • As soon as the applet has a userid/password pair, it sends a message to the Matchmaker, asking the Matchmaker to match its request with an advertisement describing the ability to load and save portfolios. • The Matchmaker responds with the name of the Comptroller. • The applet then sends a message to the Comptroller asking for the user's portfolio.
Starting the Warren Applet • The applet then uses the Matchmaker to match its requests with agents that can provide current stock price information, and that can advise on portfolio risk. The Matchmaker responds with the names of the iYahoo agent and the RiskCritic agent.
Starting the Warren Applet • The applet sends a series of messages to the iYahoo agent to monitor the price of each of the stocks in the user's portfolio. • The iYahoo agent gets the current stock price and other information for each stock from the web and sends that information messages to the applet. • The applet then updates the current information in the Comptroller agent. • Until it receives a message canceling the monitor request, the iYahoo agent will continue to send relevant stock information messages to the applet agent as the stock prices change in real time.
The Warren Applet • The applet also sends a message to the RiskCritic asking it to monitor the user's portfolio and advise the applet of any changes to the risk status. • The RiskCritic sends a monitor message to the Comptroller asking to be informed of any changes to the portfolio. • As the portfolio changes, either due to new price and beta (risk) information from the iYahoo agent or due to user decisions to buy or sells tocks, the Comptroller agent informs the RiskCritic of the new state of the portfolio. • The RiskCritic makes its risk evaluation of the portfolio and sends it to the applet.
The Warren Applet • The Warren agent applet displays the user's portfolio along with the latest stock prices and the RiskCritic's evaluation of the portfolio, and allows the user to gather more information.
Using Warren to Buy Shares in a Stock • The user decides to buy some shares of stock, in this case IBM. • The user clicks on the "Buy Stock" button and a dialog pops up. • The user enters the ticker symbol of the stock and how many shares they wish to purchase, and clicks "Buy."
Using Warren to Buy Shares in a Stock • The Warren applet sends a message to the Matchmaker asking it to match for those agents capable of executing a stock buy. • The Matchmaker responds with the name of the iYahoo agent. • The Warren applet then sends a message to the iYahoo agent to buy the stock in question.
Using Warren to Buy Shares in a Stock • The iYahoo agent responds with a message confirming that the stock has been purchased, and the price at which it was purchased. • The applet then tells the Comptroller to add 300 shares of IBM to the portfolio. • The Comptroller informs the RiskCritic of the change. • The RiskCritic evaluates the risk of the portfolio and informs the applet.
Using Warren to Buy Shares in a Stock • In this case, buying 300 shares of IBM has raised the risk of the portfolio; • in fact, the purchase raised it past the user-defined limit for risk; • the RiskCritic advises the user to invest in more conservative stocks if he wishes to remain within his target risk.
Using Warren to Buy Shares in a Stock • The user clicks the "Sell Stocks" button, enters IBM and 300, and clicks "Sell." • The process described earlier happens again, but this time for selling stocks.
Using Warren to Buy Shares in a Stock And now the RiskCritic is once again satisfied that the user is within risk parameters.
Financial Data Summary (FDS) • The Financial Data Summary (FDS) is a section of the 10-k filing required of all corporations by the S.E.C. • The FDS agent is able to retrieve the FDS from the 10-k filings available on the S.E.C. web site. • From a list of all stocks in his/her portfolio and in their prospective stocks list, the user selects the stock for which he/she wishes to retrieve the FDS.
Financial Data Summary (FDS) • The applet queries the Matchmaker to find an agent capable of retrieving the FDS. • The matchmaker replies with the name of the iEdgar agent. • The applet then sends a retrieval request to the iEdgar agent and displays the response from the iEdgar agent.
FDS History • If the user would like to examine an historical view of FDS data over several years, • he/she clicks the History button. • Again, he/she selects the stock of interest from the portfolio and the list of prospective stocks.
FDS History • The applet queries the Matchmaker to find an agent capable of retrieving the FDS History. • The Matchmaker replies with the name of the FdsHistoryAgent. • The then applet sends a retrieval request to the FdsHistoryAgent. • The appletdisplays the response from the FdsHistoryAgent agent.
Warren News • The BreakingNews Agent retrieves the most recent available news for the key string from the web and sends it back to the applet.
Warren News • The user may select articles to see their summaries. • The user may also select an article and click on the "Full Story" button to bring up the full news article, as follows: