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

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

public class JadexMessenger
extends Object
implements Messenger

Project: beast File: es.upm.dit.gsi.beast.platform.jadex.JadexMessenger.java To send messages to our jadex agents. 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

Method Summary
static JadexMessenger getInstance()
           
 void sendMessageToAgents(String[] agent_name, String msgtype, Object message_content, Connector connector)
          This method sends the same message to many agents.
 void sendMessageToAgentsWithExtraProperties(String[] agent_name, String msgtype, Object message_content, ArrayList<Object> properties, Connector connector)
          This method works as the one above, adding some properties to the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JadexMessenger getInstance()

sendMessageToAgents

public void sendMessageToAgents(String[] agent_name,
                                String msgtype,
                                Object message_content,
                                Connector connector)
This method sends the same message to many agents.

Specified by:
sendMessageToAgents in interface Messenger
Parameters:
agent_name - The id of the agents that receive the message
msgtype -
message_content - The content of the message
connector - The connector to get the external access

sendMessageToAgentsWithExtraProperties

public void sendMessageToAgentsWithExtraProperties(String[] agent_name,
                                                   String msgtype,
                                                   Object message_content,
                                                   ArrayList<Object> properties,
                                                   Connector connector)
This method works as the one above, adding some properties to the message

Specified by:
sendMessageToAgentsWithExtraProperties in interface Messenger
Parameters:
agent_name - The id of the agents that receive the message
msgtype -
message_content - The content of the message
properties - to be added to the message
connector - The connector to get the external access


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