celeboss.bot
Class RobotManager

java.lang.Object
  extended byceleboss.bot.RobotManager

public final class RobotManager
extends java.lang.Object

This class managers the various robots that are deployed with any CelebOSS instance. This class will scan the ROBOT_DIR directory to locate any robot traders. Each robot trader has a dedicated subdirectory in this place. Each foudn directory is assumed to contain a complete robot trader, it must contain a file called CONFIG_FILE which describes the details of the robot. These details include a name, icon, class path and main class to execute. The main class must implement the RobotTrader interface.

Version:
1.0
Author:
bevans
See Also:
RobotTrader

Field Summary
static java.lang.String CONFIG_FILE
          The file that each robot directory must contain to describe the configuration
static java.lang.String ROBOT_DIR
          Sub-directory used to hold robots traders
 
Method Summary
 java.util.Collection getAction(Portfolio portfolio)
          Get a list of actions that can be used to trigger the creation of a robot for a specific Portfolio.
static RobotManager getInstance()
          Get the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
The file that each robot directory must contain to describe the configuration

See Also:
Constant Field Values

ROBOT_DIR

public static final java.lang.String ROBOT_DIR
Sub-directory used to hold robots traders

See Also:
Constant Field Values
Method Detail

getInstance

public static RobotManager getInstance()
Get the singleton instance.

Returns:
Robot Manager loaded with known robots.

getAction

public java.util.Collection getAction(Portfolio portfolio)
Get a list of actions that can be used to trigger the creation of a robot for a specific Portfolio. The target Portfolio is specified and a list of complete actions is returned.

Parameters:
portfolio - Target portfolio
Returns:
Collection of Action