jade.core
Class Profile

java.lang.Object
  |
  +--jade.core.Profile
Direct Known Subclasses:
ProfileImpl

public abstract class Profile
extends java.lang.Object

This class allows retrieving configuration-dependent classes.

Version:
1.0, 22/11/00
Author:
Federico Bergenti, Giovanni Caire - TILAB

Field Summary
static java.lang.String ACLCODECS
          This constant is the key of the property whose value contains the list of ACLCODECSs that have to be launched at bootstrap time.
static java.lang.String AGENTS
          This constant is the name of the property whose value contains the list of agents that have to be launched at bootstrap time
static java.lang.String AUTHORITY_CLASS
           
static java.lang.String CONTAINER_NAME
          This constant is the key of the property whose value contains the desired name of the container.
static java.lang.String FILE_DIR
          This constant is the key of the property whose value contains the name of the directory where all the files generated by JADE should be put.
static java.lang.String IMTP
          This constant is the key of the property whose value identifies the IMTP Manager to be created by ProfileImpl
static java.lang.String J2SE
           
static java.lang.String JVM
          This constant is the key of the property whose value contains the indication about the type of JVM.
static java.lang.String MAIN
          This constant is the name of the property whose value contains a boolean indicating if this is the Main Container or a peripheral container.
static java.lang.String MAIN_HOST
          This constant is the name of the property whose value is the name (or the IP address) of the network host where the JADE Main Container is running.
static java.lang.String MAIN_PORT
          This constant is the name of the property whose value contains an integer representing the port number where the Main Container is listening for container registrations.
static java.lang.String MAIN_PROTO
          This constant is the name of the property whose value is a String indicating the protocol to use to connect to the Main Container.
static java.lang.String MAINAUTH_CLASS
           
static java.lang.String MIDP
           
static java.lang.String MTPS
          This constant is the key of the property whose value contains the list of MTPs that have to be launched at bootstrap time.
static java.lang.String OWNER
           
static java.lang.String PASSWD_FILE
           
static java.lang.String PJAVA
           
static java.lang.String PLATFORM_ID
          This constant is the name of the property whose value contains the unique platform ID of a JADE platform.
static java.lang.String POLICY_FILE
           
static java.lang.String PWD_DIALOG_CLASS
           
static java.lang.String PWD_HASH_ALGORITHM
           
 
Constructor Summary
Profile()
           
 
Method Summary
protected abstract  jade.core.acc getAcc()
           
protected abstract  IMTPManager getIMTPManager()
           
protected abstract  jade.core.MobilityManager getMobilityManager()
           
protected abstract  jade.core.NotificationManager getNotificationManager()
           
abstract  java.lang.String getParameter(java.lang.String key, java.lang.String aDefault)
          Retrieve a String value from the configuration properties.
protected abstract  jade.core.Platform getPlatform()
           
protected abstract  jade.core.ResourceManager getResourceManager()
           
abstract  List getSpecifiers(java.lang.String key)
          Retrieve a list of Specifiers from the configuration properties.
abstract  void setParameter(java.lang.String key, java.lang.String value)
          Assign the given value to the given property name.
abstract  void setSpecifiers(java.lang.String key, List value)
          Assign the given value to the given property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN

public static final java.lang.String MAIN
This constant is the name of the property whose value contains a boolean indicating if this is the Main Container or a peripheral container.

MAIN_PROTO

public static final java.lang.String MAIN_PROTO
This constant is the name of the property whose value is a String indicating the protocol to use to connect to the Main Container.

MAIN_HOST

public static final java.lang.String MAIN_HOST
This constant is the name of the property whose value is the name (or the IP address) of the network host where the JADE Main Container is running.

MAIN_PORT

public static final java.lang.String MAIN_PORT
This constant is the name of the property whose value contains an integer representing the port number where the Main Container is listening for container registrations.

MAINAUTH_CLASS

public static final java.lang.String MAINAUTH_CLASS

AUTHORITY_CLASS

public static final java.lang.String AUTHORITY_CLASS

POLICY_FILE

public static final java.lang.String POLICY_FILE

PASSWD_FILE

public static final java.lang.String PASSWD_FILE

OWNER

public static final java.lang.String OWNER

PWD_HASH_ALGORITHM

public static final java.lang.String PWD_HASH_ALGORITHM

PWD_DIALOG_CLASS

public static final java.lang.String PWD_DIALOG_CLASS

PLATFORM_ID

public static final java.lang.String PLATFORM_ID
This constant is the name of the property whose value contains the unique platform ID of a JADE platform. Agent GUIDs in JADE are made by a platform-unique nickname, the '@' character and the platform ID.

AGENTS

public static final java.lang.String AGENTS
This constant is the name of the property whose value contains the list of agents that have to be launched at bootstrap time

MTPS

public static final java.lang.String MTPS
This constant is the key of the property whose value contains the list of MTPs that have to be launched at bootstrap time. This list must be retrieved via the getSpecifiers(MTPS) method.

IMTP

public static final java.lang.String IMTP
This constant is the key of the property whose value identifies the IMTP Manager to be created by ProfileImpl

CONTAINER_NAME

public static final java.lang.String CONTAINER_NAME
This constant is the key of the property whose value contains the desired name of the container. If this container name exists already, then a default name is assigned by the platform. The name of the main-container is always assigned by the platform and cannot be changed.

ACLCODECS

public static final java.lang.String ACLCODECS
This constant is the key of the property whose value contains the list of ACLCODECSs that have to be launched at bootstrap time. This list must be retrieved via the getSpecifiers(ACLCODECS) method.

JVM

public static final java.lang.String JVM
This constant is the key of the property whose value contains the indication about the type of JVM.

J2SE

public static final java.lang.String J2SE

PJAVA

public static final java.lang.String PJAVA

MIDP

public static final java.lang.String MIDP

FILE_DIR

public static final java.lang.String FILE_DIR
This constant is the key of the property whose value contains the name of the directory where all the files generated by JADE should be put. The defaul value is the current directory.
Constructor Detail

Profile

public Profile()
Method Detail

getPlatform

protected abstract jade.core.Platform getPlatform()
                                           throws ProfileException

getIMTPManager

protected abstract IMTPManager getIMTPManager()
                                       throws ProfileException

getAcc

protected abstract jade.core.acc getAcc()
                                 throws ProfileException

getMobilityManager

protected abstract jade.core.MobilityManager getMobilityManager()
                                                         throws ProfileException

getResourceManager

protected abstract jade.core.ResourceManager getResourceManager()
                                                         throws ProfileException

getNotificationManager

protected abstract jade.core.NotificationManager getNotificationManager()
                                                                 throws ProfileException

getParameter

public abstract java.lang.String getParameter(java.lang.String key,
                                              java.lang.String aDefault)
Retrieve a String value from the configuration properties. If no parameter corresponding to the specified key is found, return the provided default.
Parameters:
key - The key identifying the parameter to be retrieved among the configuration properties.

getSpecifiers

public abstract List getSpecifiers(java.lang.String key)
                            throws ProfileException
Retrieve a list of Specifiers from the configuration properties. Agents, MTPs and other items are specified among the configuration properties in this way. If no list of Specifiers corresponding to the specified key is found, an empty list is returned.
Parameters:
key - The key identifying the list of Specifires to be retrieved among the configuration properties.

setParameter

public abstract void setParameter(java.lang.String key,
                                  java.lang.String value)
Assign the given value to the given property name.
Parameters:
key - is the property name
value - is the property value

setSpecifiers

public abstract void setSpecifiers(java.lang.String key,
                                   List value)
Assign the given value to the given property name.
Parameters:
key - is the property name
value - is the property value