edu.memphis.ccrg.lida.framework.initialization
Class AgentStarter

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.initialization.AgentStarter

public class AgentStarter
extends java.lang.Object

This class allows an Agent to be started in these ways using the static methods start() 1. Using the default agent properties path (a String) 2. Using a agent properties path (a String) 3. Using a Properties object created in another class (and/or project). Or using the main method with a Agent properties path (a String) specified in the command line arguments.

Author:
Ryan J McCall, Javier Snaider

Field Summary
static java.lang.String DEFAULT_PROPERTIES_PATH
          Default properties configuation
 
Constructor Summary
AgentStarter()
           
 
Method Summary
static void main(java.lang.String[] args)
          Starts an Agent using the default properties path or the one that is specified in the command line arguments
static void start()
          Load the default properties
static void start(java.util.Properties p)
          Load supplied properties
static void start(java.lang.String propertiesPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROPERTIES_PATH

public static final java.lang.String DEFAULT_PROPERTIES_PATH
Default properties configuation

See Also:
Constant Field Values
Constructor Detail

AgentStarter

public AgentStarter()
Method Detail

main

public static void main(java.lang.String[] args)
Starts an Agent using the default properties path or the one that is specified in the command line arguments

Parameters:
args - the command line arguments

start

public static void start(java.util.Properties p)
Load supplied properties

Parameters:
p - - Properties used for the agent

start

public static void start()
Load the default properties


start

public static void start(java.lang.String propertiesPath)
Parameters:
propertiesPath - - Properties file used for the agent