com.agentfactory.platform.util
Class PlatformConfigReader

java.lang.Object
  extended by com.agentfactory.platform.util.PlatformConfigReader

public class PlatformConfigReader
extends java.lang.Object

Read in an Agent Factory Platform Configurtion File. A platform configuration file specifies: (a) details of platform services to be activated; (b) language and GUI plugins to be loaded; and (c) basic information about the platform including its name. The PlatformConfigReader is instantiated by the AgentPlatform during start-up and is disposed of once the Agent Platform is fully constructed. TODO - robertr - 25/08/04 - describe the syntax of a platform config file. The notions of default components, sleep time, and actuator threading are all options passed to the interpreter.


Field Summary
static int CLASS_LOG_LEVEL
          The class debug level.
static java.lang.String UNKNOWN
           
 
Constructor Summary
PlatformConfigReader(java.lang.String filename)
          create a new configuration file reader using given file
 
Method Summary
 void buildInterpreterEntry(java.util.StringTokenizer tok)
          Build an entry for an agent interpreter.
 java.util.Hashtable getInterpreters()
          Get the hashtable of interpreters that were read in by the configuration file reader.
 java.lang.String getName()
          This is used by the Platform Specific Actuator.
 java.lang.String getPlatformDomain()
           
 java.util.Vector getPlatformGUIs()
           
 java.util.Vector getSecurityPolicies()
           
 java.util.Vector getServices()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_LOG_LEVEL

public static final int CLASS_LOG_LEVEL
The class debug level.

See Also:
Constant Field Values

UNKNOWN

public static final java.lang.String UNKNOWN
See Also:
Constant Field Values
Constructor Detail

PlatformConfigReader

public PlatformConfigReader(java.lang.String filename)
                     throws java.io.IOException
create a new configuration file reader using given file

Parameters:
filename - the name of the configuration file
Throws:
java.io.IOException
Method Detail

buildInterpreterEntry

public void buildInterpreterEntry(java.util.StringTokenizer tok)
Build an entry for an agent interpreter. All the elements are pulled from the string tokenizer and packed into an InterpreterDescriptor object. This object is then added to the hashtable of interpreters using the agent type as key. Expected Syntax: *

Parameters:
tok -

getInterpreters

public java.util.Hashtable getInterpreters()
Get the hashtable of interpreters that were read in by the configuration file reader.

Returns:
Hashtable - the collection of all interpreters read in by the input parser.

getServices

public java.util.Vector getServices()

getPlatformGUIs

public java.util.Vector getPlatformGUIs()

getName

public java.lang.String getName()
This is used by the Platform Specific Actuator.


getPlatformDomain

public java.lang.String getPlatformDomain()

getSecurityPolicies

public java.util.Vector getSecurityPolicies()