org.apache.aries.samples.ariestrader.api
Interface TradeServicesManager


public interface TradeServicesManager

TradeServicesManager interface provides an interface to be used for managing the implementations of TradeServices that are available.


Method Summary
 ArrayList<Integer> getCurrentModes()
          Get CurrentModes that are registered
 MarketSummaryDataBean getMarketSummary()
          Compute and return a snapshot of the current market conditions.
 TradeServices getTradeServices()
          Get the currently selected TradeServices
 

Method Detail

getCurrentModes

ArrayList<Integer> getCurrentModes()
Get CurrentModes that are registered


getTradeServices

TradeServices getTradeServices()
Get the currently selected TradeServices


getMarketSummary

MarketSummaryDataBean getMarketSummary()
                                       throws Exception
Compute and return a snapshot of the current market conditions. This includes the TSIA - and index of the of the top 100 Trade stock quotes. The openTSIA(the index at the open), The volume of shares traded, Top Stocks gain and loss. This is a special version of this function which will cache the results provided by the currently selected TradeServices.

Returns:
A snapshot of the current market summary
Throws:
Exception


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.