📄 profile.java
字号:
/*****************************************************************
JADE - Java Agent DEvelopment Framework is a framework to develop
multi-agent systems in compliance with the FIPA specifications.
Copyright (C) 2000 CSELT S.p.A.
GNU Lesser General Public License
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation,
version 2.1 of the License.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*****************************************************************/
package jade.core;
//#MIDP_EXCLUDE_BEGIN
import java.net.InetAddress;
import java.net.UnknownHostException;
//#MIDP_EXCLUDE_END
import jade.util.Logger;
import jade.util.leap.List;
import jade.util.leap.Properties;
/**
* This class allows retrieving configuration-dependent classes.
*
* @author Federico Bergenti
* @author Giovanni Caire - TILAB
* @version 1.0, 22/11/00
*/
public abstract class Profile {
/**
This constant is the name of the property whose value contains a
boolean indicating if this is the Main Container or a peripheral
container.
*/
public static final String MAIN = "main";
/**
This constant is the name of the property whose value is a String
indicating the protocol to use to connect to the Main Container.
*/
public static final String MAIN_PROTO = "proto";
/**
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.
*/
public static final String MAIN_HOST = "host";
/**
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.
*/
public static final String MAIN_PORT = "port";
/**
This constant is the name of the property whose Boolean value
tells whether to activate the automatic main container detection mechanism.
By means of this mechanism a peripheral container is able to automatically detect the
main container host and port at startup time. The mechanism is based on IP multicast communication
and must be activated on both the main container, that publishes its host and port on a given
multicast address (by default 239.255.10.99, port 1199), and on peripheral containers.
The default for this option is <code>true</code> on Main Containers and <code>false</code>
on peripheral containers
*/
public static final String DETECT_MAIN = "detect-main";
/**
This constant is the name of the property whose value contains
the host name the container must bind on. The host name must
refer to the local machine, and is generally needed only when
multiple network interfaces are present or a non-default name is
desired.
*/
public static final String LOCAL_HOST = "local-host";
/**
This constant is the name of the TCP port the container node must
listen to for incoming IMTP messages.
*/
public static final String LOCAL_PORT = "local-port";
/**
This constant is the name of the property whose Boolean value
tells whether a local Service Manager is exported by this
container (only when using JADE support for fault-tolerant
platform configurations).
*/
public static final String LOCAL_SERVICE_MANAGER = "backupmain";
/**
This constant is the name of the property whose Boolean value
tells whether startup options should be dumped. Default is false
*/
public static final String DUMP_OPTIONS = "dump-options";
//#APIDOC_EXCLUDE_BEGIN
public static final String MASTER_NODE_NAME = "master-node-name";
public static final String BE_BASE_NAME = "be-base-name";
public static final String BE_REPLICA_ZERO_ADDRESS = "be-replica-zero-address";
public static final String BE_REPLICA_INDEX = "be-replica-index";
public static final String BE_MEDIATOR_ID = "be-mediator-id";
public static final String OWNER = "owner";
// On J2SE and pJava, install mobility and notification services by default
//#J2ME_EXCLUDE_BEGIN
public static final String DEFAULT_SERVICES = "jade.core.mobility.AgentMobilityService;jade.core.event.NotificationService";
public static final String DEFAULT_SERVICES_NOMOBILITY = "jade.core.event.NotificationService";
//#J2ME_EXCLUDE_END
// On PJAVA the Notification service is not supported
//#DOTNET_EXCLUDE_BEGIN
/*#PJAVA_INCLUDE_BEGIN
public static final String DEFAULT_SERVICES = "jade.core.mobility.AgentMobilityService";
public static final String DEFAULT_SERVICES_NOMOBILITY = "";
#PJAVA_INCLUDE_END*/
//#DOTNET_EXCLUDE_END
// On DOTNET the Notification service is supported
/*#DOTNET_INCLUDE_BEGIN
public static final String DEFAULT_SERVICES = "jade.core.mobility.AgentMobilityService;jade.core.event.NotificationService";
public static final String DEFAULT_SERVICES_NOMOBILITY = "jade.core.event.NotificationService";
#DOTNET_INCLUDE_END*/
// On MIDP, no additional services are installed by default
/*#MIDP_INCLUDE_BEGIN
public static final String DEFAULT_SERVICES = "";
#MIDP_INCLUDE_END*/
//#APIDOC_EXCLUDE_END
/**
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.
*/
public static final String PLATFORM_ID = "platform-id";
/**
This constant is the name of the property whose value contains
the user authentication type to be used to login to the JADE platform.
*/
public static final String USERAUTH_KEY = "userauth-key";
/**
This constant is the name of the property whose value contains the
list of agents that have to be launched at bootstrap time
*/
public static final String AGENTS = "agents";
/**
This constants is the name of the property whose value contains
the list of kernel-level services that have to be launched at
bootstrap time
*/
public static final String SERVICES = "services";
/**
This constant is the name of the property whose value contains the
list of addresses through which the platform <i>Service
Manager</i> can be reached.
*/
public static final String REMOTE_SERVICE_MANAGER_ADDRESSES = "smaddrs";
/**
* 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 <code>getSpecifiers(MTPS)<code>
* method.
*/
public static final String MTPS = "mtps";
/**
* This constant is the key of the property whose value
* identifies the IMTP Manager to be created by ProfileImpl
**/
public static final String IMTP = "imtp";
/**
* 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.
**/
public static final String CONTAINER_NAME = "container-name";
/**
* 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 <code>getSpecifiers(ACLCODECS)<code>
* method.
*/
public static final String ACLCODECS = "aclcodecs";
/**
This constant is the key of the property whose value (true or false)
indicates whether or not this platform accepts foreign agents i.e.
agents whose names are not of the form <local-name>@<platform-name>.
*/
public static final String ACCEPT_FOREIGN_AGENTS = "accept-foreign-agents";
//#APIDOC_EXCLUDE_BEGIN
/**
* This constant is the key of the property whose value contains the
* indication about the type of JVM.
*/
public static final String JVM = "jvm";
public static final String J2SE = "j2se";
public static final String PJAVA = "pjava";
public static final String MIDP = "midp";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -