es.upm.dit.gsi.beast.platform.jade
Class JadeConnector

java.lang.Object
  extended by es.upm.dit.gsi.beast.platform.jade.JadeConnector
All Implemented Interfaces:
Connector

public class JadeConnector
extends Object
implements Connector

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)

Version:
0.1
Author:
alvarocarrera

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

BEAST_MESSENGER

public final String BEAST_MESSENGER
See Also:
Constant Field Values

TRUE

public final String TRUE
See Also:
Constant Field Values

PLATFORM_ID

public final String PLATFORM_ID
See Also:
Constant Field Values

MAIN_HOST

public final String MAIN_HOST
See Also:
Constant Field Values

MAIN_PORT

public final String MAIN_PORT
See Also:
Constant Field Values

AGENTS

public final String AGENTS
See Also:
Constant Field Values

SERVICES

public final String SERVICES
See Also:
Constant Field Values
Constructor Detail

JadeConnector

public JadeConnector(Logger logger)
Parameters:
logger -
Method Detail

launchPlatform

public void launchPlatform()
Description copied from interface: Connector
It starts the execution of the platform

Specified by:
launchPlatform in interface Connector

stopPlatform

public void stopPlatform()
Description copied from interface: Connector
It stops the execution of the platform

Specified by:
stopPlatform in interface Connector

createAgent

public void createAgent(String agent_name,
                        String path)
Description copied from interface: Connector
To create one agent in the platform

Specified by:
createAgent in interface Connector
Parameters:
agent_name - The name of the agent
path - where is the agent

createAgent

public void createAgent(String agentName,
                        String path,
                        String containerName,
                        Object[] arguments)
Description copied from interface: Connector
To create one agent in the platform

Specified by:
createAgent in interface Connector
Parameters:
agentName -
path -
containerName -
arguments -

createContainer

public void createContainer(String container)
Create a container in the platform

Parameters:
container - The name of the container

getAgentID

public jade.wrapper.AgentController getAgentID(String agent_name)
Description copied from interface: Connector
To get the platform's ID of a created agent

Specified by:
getAgentID in interface Connector
Parameters:
agent_name - The name of the agent
Returns:
The agent's ID

getMessageService

public jade.core.Agent getMessageService()
Description copied from interface: Connector
Method that allows us sendind messages

Specified by:
getMessageService in interface Connector
Returns:
The service to send messages

getAgentsExternalAccess

public jade.wrapper.AgentController getAgentsExternalAccess(String agent_name)
Description copied from interface: Connector
Method to get the external access of an agent, necessary to see its behaviour

Specified by:
getAgentsExternalAccess in interface Connector
Parameters:
agent_name - The name of the agent
Returns:
The external access of an agent

getLogger

public Logger getLogger()
Specified by:
getLogger in interface Connector
Returns:
Connector Logger


Copyright © 2014 Grupo de Sistemas Inteligentes - Universidad Politécnica de Madrid. All Rights Reserved.