es.upm.dit.gsi.beast.platform.jadex
Class JadexConnector

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

public class JadexConnector
extends Object
implements Connector

Project: beast File: es.upm.dit.gsi.beast.platform.jadex.JadexConnector.java To create our jadex Platform and create its agents, allowing the communication among them Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
Jorge Solitario, alvarocarrera

Constructor Summary
JadexConnector(Logger logger)
           
 
Method Summary
 void createAgent(String agent_name, String path)
          Creates a real agent in the platform
 void createAgent(String agentName, String path, String containerName, Object[] arguments)
          To create one agent in the platform
 jadex.bridge.IComponentIdentifier getAgentID(String agent_name)
          This method searches in createdAgents so given an agent name returns its IComponentIdentifier
 jadex.bridge.IExternalAccess getAgentsExternalAccess(String agent_name)
          This method searches in the Component Management Service, so given an agent name returns its IExternalAccess
 jadex.bridge.IComponentManagementService getCmsService()
          This method gets the CMS for creating agents into the platform.
 Logger getLogger()
           
 jadex.bridge.IMessageService getMessageService()
          This method gets the service for sending messages to the platform.
 jadex.bridge.IExternalAccess getPlatform()
          This method gets the external access of the platform.
 void launchPlatform()
          Platform is launched and the external access of the message service and the component management service (CMS) are saved
 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
 

Constructor Detail

JadexConnector

public JadexConnector(Logger logger)
Method Detail

launchPlatform

public void launchPlatform()
Platform is launched and the external access of the message service and the component management service (CMS) are saved

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

getPlatform

public jadex.bridge.IExternalAccess getPlatform()
This method gets the external access of the platform.

Returns:
The external access of the platform

getCmsService

public jadex.bridge.IComponentManagementService getCmsService()
This method gets the CMS for creating agents into the platform.

Returns:
the Component Management Service

getMessageService

public jadex.bridge.IMessageService getMessageService()
This method gets the service for sending messages to the platform.

Specified by:
getMessageService in interface Connector
Returns:
the messageService

createAgent

public void createAgent(String agent_name,
                        String path)
Creates a real agent in the platform

Specified by:
createAgent in interface Connector
Parameters:
agent_name - The name that the agent is gonna have in the platform
path - The path of the description (xml) of the agent

getAgentID

public jadex.bridge.IComponentIdentifier getAgentID(String agent_name)
This method searches in createdAgents so given an agent name returns its IComponentIdentifier

Specified by:
getAgentID in interface Connector
Parameters:
agent_name - The name of the agent in the platform
Returns:
The IComponentIdentifier of the agent in the platform

getAgentsExternalAccess

public jadex.bridge.IExternalAccess getAgentsExternalAccess(String agent_name)
This method searches in the Component Management Service, so given an agent name returns its IExternalAccess

Specified by:
getAgentsExternalAccess in interface Connector
Parameters:
agent_name - The name of the agent in the platform
Returns:
The IComponentIdentifier of the agent in the platform

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 - The name of the agent
path - where is the agent
containerName - where the agent will be created
arguments - for the 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.