?? brokermodel.java
字號:
package trader;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface BrokerModel extends Remote {
// Broker model state change listener registration methods
/* -------------------------------------------------------------
* Adds requester to the list of objects to be notified when an
* object(Customer, Portfolio or Stock) in the broker model
* alters state
*/
public void addChangeListener(BrokerView bv)
throws BrokerException,RemoteException;
// iteration 1 Customer segment broker model methods
// Customer segment state change methods
/**-------------------------------------------------------------
* Adds the Customer to the broker model
*/
public void addCustomer(Customer cust)
throws BrokerException,RemoteException;
/**-------------------------------------------------------------
* Deletes the customer from the broker model
*/
public void deleteCustomer(Customer cust)
throws BrokerException,RemoteException;
/**-------------------------------------------------------------
* Updates the customer in the broker model
*/
public void updateCustomer(Customer cust)
throws BrokerException,RemoteException;
//modified by ourteam 051228
//begin
public void addPortfolio(Portfolio port)
throws BrokerException,RemoteException;
/**-------------------------------------------------------------
* Deletes the customer from the broker model
*/
public void deletePortfolio(Portfolio port)
throws BrokerException,RemoteException;
//end
// Customer segment state query methods
/**-------------------------------------------------------------
* Given an id, returns the Customer from the model
*/
//modified by ourteam 051228
//begin
public Customer getCustomer(String id,String name,String addr)
throws BrokerException,RemoteException;
//modified by ourteam 051228
//begin
public Portfolio getPortfolio(String id,String name,Share[] shares)
throws BrokerException,RemoteException;
//end
public Stock getStock(String symbol,String price)
throws BrokerException,RemoteException;
//end
/**-------------------------------------------------------------
* Returns all customers in the broker model
*/
public Customer[] getAllCustomers()
throws BrokerException,RemoteException;
public Stock[] getAllStocks()
throws BrokerException,RemoteException;
// Portfolio segment - TBD in future iteration
// Add Portfolio segment state change methods
// Add Portfolio segment state query methods
// Stock segment - TBD in future iteration
// Add Stock segment state change methods
// Add Stock segment state query methods
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -