celeboss.plugin
Interface PortfolioPlugin

All Known Implementing Classes:
AbstractRobotTrader

public interface PortfolioPlugin

This class represnts the interface that the main tool has with any plugin that works on a Portfolio. This may be an automaticed trading tools to automatically buy and sell shares. Each tool instance manages a single portfolio.

Version:
1.0
Author:
bevans

Method Summary
 void setContext(Portfolio portfolio)
          This method is invoked to set the context of any newly created robot trader.
 void shutdown()
          The trading tool is to be shutdown, this may be in response to the main CelebOSS closing.
 

Method Detail

setContext

public void setContext(Portfolio portfolio)
This method is invoked to set the context of any newly created robot trader. This is invoked immediately after the default constructor.

Parameters:
portfolio - Portfolio to manage.

shutdown

public void shutdown()
The trading tool is to be shutdown, this may be in response to the main CelebOSS closing.