|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.upm.dit.gsi.beast.platform.jade.JadeConnector
public class JadeConnector
Project: beast File: es.upm.dit.gsi.beast.platform.jade.JadeConnector.java Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)
Field Summary | |
---|---|
String |
AGENTS
|
String |
BEAST_MESSENGER
|
String |
MAIN_HOST
|
String |
MAIN_PORT
|
String |
PLATFORM_ID
|
String |
SERVICES
|
String |
TRUE
|
Constructor Summary | |
---|---|
JadeConnector(Logger logger)
|
Method Summary | |
---|---|
void |
createAgent(String agent_name,
String path)
To create one agent in the platform |
void |
createAgent(String agentName,
String path,
String containerName,
Object[] arguments)
To create one agent in the platform |
void |
createContainer(String container)
Create a container in the platform |
jade.wrapper.AgentController |
getAgentID(String agent_name)
To get the platform's ID of a created agent |
jade.wrapper.AgentController |
getAgentsExternalAccess(String agent_name)
Method to get the external access of an agent, necessary to see its behaviour |
Logger |
getLogger()
|
jade.core.Agent |
getMessageService()
Method that allows us sendind messages |
void |
launchPlatform()
It starts the execution of the platform |
void |
stopPlatform()
It stops the execution of the platform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String BEAST_MESSENGER
public final String TRUE
public final String PLATFORM_ID
public final String MAIN_HOST
public final String MAIN_PORT
public final String AGENTS
public final String SERVICES
Constructor Detail |
---|
public JadeConnector(Logger logger)
logger
- Method Detail |
---|
public void launchPlatform()
Connector
launchPlatform
in interface Connector
public void stopPlatform()
Connector
stopPlatform
in interface Connector
public void createAgent(String agent_name, String path)
Connector
createAgent
in interface Connector
agent_name
- The name of the agentpath
- where is the agentpublic void createAgent(String agentName, String path, String containerName, Object[] arguments)
Connector
createAgent
in interface Connector
agentName
- path
- containerName
- arguments
- public void createContainer(String container)
container
- The name of the containerpublic jade.wrapper.AgentController getAgentID(String agent_name)
Connector
getAgentID
in interface Connector
agent_name
- The name of the agent
public jade.core.Agent getMessageService()
Connector
getMessageService
in interface Connector
public jade.wrapper.AgentController getAgentsExternalAccess(String agent_name)
Connector
getAgentsExternalAccess
in interface Connector
agent_name
- The name of the agent
public Logger getLogger()
getLogger
in interface Connector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |