Venice 0.7beta

org.mov.main
Class CommandManager

java.lang.Object
  extended by org.mov.main.CommandManager

public class CommandManager
extends java.lang.Object

This class manages the tasks that can be initiated from menus and toolbars. Each task is launched in a separate thread.

Author:
Dan Makovec

Method Summary
 void ann()
          Open up a new artificial neural network module.
 void exportPreferences()
          Displays an import file dialog that allows the user to export preferences from the application into an XML file.
 void exportQuotes()
          Displays the export quotes modules that allows the user to export quotes from the application.
 void ga()
          Open up a new genetic algorithm module.
 DesktopManager getDesktopManager()
           
static CommandManager getInstance()
          Return the static CommandManager for this application
 void gp()
          Open up a new genetic programming module.
 void graphAdvanceDecline()
          Graph the advance/decline market indicator
 void graphIndexBySymbol(java.util.List symbols)
          Displays a graph of closing prices for an index, based on a list of symbols.
 void graphPortfolio(Portfolio portfolio)
          Graph the given portfolio.
 void graphPortfolio(Portfolio portfolio, EODQuoteBundle quoteBundle)
          Graph the given portfolio.
 void graphPortfolio(Portfolio portfolio, EODQuoteBundle quoteBundle, TradingDate startDate, TradingDate endDate)
          Graph the given portfolio inbetween the given dates.
 void graphPortfolio(java.lang.String portfolioName)
          Graph the given portfolio.
 void graphStockBySymbol(java.util.List symbols)
          Displays a graph closing prices for stock(s), based on their code.
 void importPreferences()
          Displays an import file dialog that allows the user to import preferences into the application from an XML file.
 void importQuotes()
          Displays the import quotes modules that allows the user to import quotes into the application.
 ModuleFrame newANNResultTable()
          Open up a result table that will display a summary of results from artificial neural network.
 ModuleFrame newGAResultTable()
          Open up a result table that will display a summary of results from genetic algorithm.
 ModuleFrame newGPResultTable(GPPageInitialPopulation GPPageInitialPopulation)
          Open up a result table that will display a summary of results from genetic programming.
 ModuleFrame newPaperTradeResultTable()
          Open up a result table that will display a summary of results from paper trading.
 void newPortfolio()
          Open up a dialog to create and then display a new portfolio.
 void newWatchScreen()
          Open up a dialog to create and then display a new watch screen.
 void openAboutDialog()
          Opens the about dialog box.
 void openHelp()
          Opens the help module at the default page.
 void openLicenseDialog()
          Display a dialog to the user showing Venice's license.
 void openPortfolio(Portfolio portfolio)
          Display the portfolio to the user
 void openPortfolio(Portfolio portfolio, EODQuoteBundle quoteBundle)
          Display the portfolio to the user
 void openPortfolio(java.lang.String portfolioName)
          Display the portfolio with the given name to the user.
 void openPreferences()
          Opens up an instance of the preferences module at the last visited page.
 void openPreferences(int page)
          Opens up an instance of the preferences module at the given page.
 void openWatchScreen(java.lang.String watchScreenName)
          Display the watch screen to the user
 void openWatchScreen(WatchScreen watchScreen)
          Display the watch screen to the user
 void paperTrade()
          Open up a new paper trade module.
 void setDesktopManager(DesktopManager desktopManager)
           
 void syncIDQuotes()
          Displays the intra-day quote quote sync module that allows the user to automatically download new intra-day quotes into the application.
 void tablePortfolio(Portfolio portfolio)
           
 void tablePortfolio(Portfolio portfolio, EODQuoteBundle quoteBundle)
           
 void tablePortfolio(Portfolio portfolio, EODQuoteBundle quoteBundle, TradingDate startDate, TradingDate endDate)
           
 void tablePortfolio(java.lang.String portfolioName)
           
 void tableStocks(int type)
           
 void tableStocks(java.util.List symbols)
           
 void tableStocksByDate(int type)
           
 void tableStocksByRule(int type)
           
 void tableTransactions(Portfolio portfolio, EODQuoteBundle quoteBundle)
          Display the transactions to the user, opening portfolio window
 void tileFramesArrange()
          Allocate as square a shape as possible to open infternal frames
 void tileFramesCascade()
          Arrange all open internal frames in a cascading fashion
 void tileFramesHorizontal()
          Tile all the open internal frames horizontally
 void tileFramesVertical()
          Tile all the open internal frames vertically
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CommandManager getInstance()
Return the static CommandManager for this application


getDesktopManager

public DesktopManager getDesktopManager()

setDesktopManager

public void setDesktopManager(DesktopManager desktopManager)

tileFramesHorizontal

public void tileFramesHorizontal()
Tile all the open internal frames horizontally


tileFramesVertical

public void tileFramesVertical()
Tile all the open internal frames vertically


tileFramesCascade

public void tileFramesCascade()
Arrange all open internal frames in a cascading fashion


tileFramesArrange

public void tileFramesArrange()
Allocate as square a shape as possible to open infternal frames


tableTransactions

public void tableTransactions(Portfolio portfolio,
                              EODQuoteBundle quoteBundle)
Display the transactions to the user, opening portfolio window

Parameters:
portfolio - the portfolio
quoteBundle - fully loaded quote bundle

tableStocks

public void tableStocks(int type)

tableStocks

public void tableStocks(java.util.List symbols)

tableStocksByDate

public void tableStocksByDate(int type)

tableStocksByRule

public void tableStocksByRule(int type)

openPortfolio

public void openPortfolio(java.lang.String portfolioName)
Display the portfolio with the given name to the user.

Parameters:
portfolioName - name of portfolio to display

openPortfolio

public void openPortfolio(Portfolio portfolio)
Display the portfolio to the user

Parameters:
portfolio - the portfolio

openPortfolio

public void openPortfolio(Portfolio portfolio,
                          EODQuoteBundle quoteBundle)
Display the portfolio to the user

Parameters:
portfolio - the portfolio
quoteBundle - fully loaded quote bundle

paperTrade

public void paperTrade()
Open up a new paper trade module.


gp

public void gp()
Open up a new genetic programming module.


ga

public void ga()
Open up a new genetic algorithm module.


ann

public void ann()
Open up a new artificial neural network module.


newPaperTradeResultTable

public ModuleFrame newPaperTradeResultTable()
Open up a result table that will display a summary of results from paper trading.

Returns:
frame containing paper trade result module

newGPResultTable

public ModuleFrame newGPResultTable(GPPageInitialPopulation GPPageInitialPopulation)
Open up a result table that will display a summary of results from genetic programming.

Returns:
frame containing genetic programmes

newGAResultTable

public ModuleFrame newGAResultTable()
Open up a result table that will display a summary of results from genetic algorithm.

Returns:
frame containing genetic algorithm results

newANNResultTable

public ModuleFrame newANNResultTable()
Open up a result table that will display a summary of results from artificial neural network.

Returns:
frame containing artificial neural network results

newWatchScreen

public void newWatchScreen()
Open up a dialog to create and then display a new watch screen.


openWatchScreen

public void openWatchScreen(java.lang.String watchScreenName)
Display the watch screen to the user

Parameters:
watchScreenName - the name of the watch screen

openWatchScreen

public void openWatchScreen(WatchScreen watchScreen)
Display the watch screen to the user

Parameters:
watchScreen - the watch screen

openPreferences

public void openPreferences()
Opens up an instance of the preferences module at the last visited page.


openPreferences

public void openPreferences(int page)
Opens up an instance of the preferences module at the given page.

Parameters:
page - the preference page to view.

newPortfolio

public void newPortfolio()
Open up a dialog to create and then display a new portfolio.


graphPortfolio

public void graphPortfolio(java.lang.String portfolioName)
Graph the given portfolio.

Parameters:
portfolioName - the name of the portfolio to graph

graphPortfolio

public void graphPortfolio(Portfolio portfolio)
Graph the given portfolio.

Parameters:
portfolio - the portfolio to graph

graphPortfolio

public void graphPortfolio(Portfolio portfolio,
                           EODQuoteBundle quoteBundle)
Graph the given portfolio.

Parameters:
portfolio - the portfolio
quoteBundle - fully loaded quote bundle

graphPortfolio

public void graphPortfolio(Portfolio portfolio,
                           EODQuoteBundle quoteBundle,
                           TradingDate startDate,
                           TradingDate endDate)
Graph the given portfolio inbetween the given dates.

Parameters:
portfolio - the portfolio to graph
quoteBundle - quote bundle
startDate - date to graph from
endDate - date to graph to

tablePortfolio

public void tablePortfolio(java.lang.String portfolioName)

tablePortfolio

public void tablePortfolio(Portfolio portfolio)

tablePortfolio

public void tablePortfolio(Portfolio portfolio,
                           EODQuoteBundle quoteBundle)

tablePortfolio

public void tablePortfolio(Portfolio portfolio,
                           EODQuoteBundle quoteBundle,
                           TradingDate startDate,
                           TradingDate endDate)

graphAdvanceDecline

public void graphAdvanceDecline()
Graph the advance/decline market indicator


graphStockBySymbol

public void graphStockBySymbol(java.util.List symbols)
Displays a graph closing prices for stock(s), based on their code. The stock(s) is/are determined by a user prompt if a set of symbols is not supplied.

Parameters:
symbols - Optional. Set of symbols to graph.

graphIndexBySymbol

public void graphIndexBySymbol(java.util.List symbols)
Displays a graph of closing prices for an index, based on a list of symbols. The stock(s) is/are determined by a user prompt if a set of symbols is not supplied.

Parameters:
symbols - Optional. Set of symbols to graph.

openAboutDialog

public void openAboutDialog()
Opens the about dialog box.


openLicenseDialog

public void openLicenseDialog()
Display a dialog to the user showing Venice's license.


openHelp

public void openHelp()
Opens the help module at the default page.


importPreferences

public void importPreferences()
Displays an import file dialog that allows the user to import preferences into the application from an XML file.


exportPreferences

public void exportPreferences()
Displays an import file dialog that allows the user to export preferences from the application into an XML file.


importQuotes

public void importQuotes()
Displays the import quotes modules that allows the user to import quotes into the application.


syncIDQuotes

public void syncIDQuotes()
Displays the intra-day quote quote sync module that allows the user to automatically download new intra-day quotes into the application.


exportQuotes

public void exportQuotes()
Displays the export quotes modules that allows the user to export quotes from the application.


Venice 0.7beta