⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brokercontroller.java

📁 java写的股票交易系统
💻 JAVA
字号:
package trader;
public interface BrokerController {
//user gesture call back methods
  /* ---------------------------------------------------------------
   * get customer user gesture handle method called by the broker
   * view in response to the get customer button click on the GUI or
   * equivalent user interface.
   * action - set customer display on the gui through the 
   * showDisplay method of the broker view
   */
   
  //modified by ourteam 051228
  //begin
  void handleGetCustomerGesture(String id,String name,String addr);
  //end
  
  /* ---------------------------------------------------------------
   * add new customer user gesture handle method called by the
   * broker view in response to the add customer button click on the
   * GUI or equivalent user interface.
   * action - add the (new) customer customer to the model
   */
  void handleAddCustomerGesture(Customer c);
  
  /* ---------------------------------------------------------------
   * delete customer user gesture  handle method called by
   * the broker view in response to the delete customer 
   * button click on the GUI or equivalent user interface
   * action  - delete the customer from the model
   */
  void handleDeleteCustomerGesture(Customer c);
  
  /* ---------------------------------------------------------------
   * update customer user gesture callback method called by
   * the broker view in response to the update customer 
   * button click on the GUI or equivalent user interface
   * action  - update the customer in the model
   */
  void handleUpdateCustomerGesture(Customer c);
  
  /* ---------------------------------------------------------------
    * get all customers user gesture callback method called
    * the broker view in response to the get all customers 
    * button click on the GUI or equivalent user interface
    * action - set all customers display on the gui through the
    * showDisplay method of the broker view
    */
  void handleGetAllCustomersGesture();

// Portfolio segment - TBD in future iteration
// Add method to handle portfolio related user gesture 
// notifications from the broker view

// Stock segment - TBD in future iteration
// Add method to handle stock related user gesture 
// notifications from the broker view

  void handleGetStockGesture(String symbol,String price);
  void handleGetAllStocksGesture();
  void handleGetPortfolioGesture(String id,String name,Share[] shares);
  void handleAddPortfolioGesture(Portfolio p);
  void handleDeletePortfolioGesture(Portfolio p);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -