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

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

public class JadeMessenger
extends Object
implements Messenger

Project: beast File: es.upm.dit.gsi.beast.platform.jade.JadeMessenger.java Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
alvarocarrera

Method Summary
static JadeMessenger getInstance()
           
 void sendMessageToAgents(String[] agent_name, String msgtype, Object message_content, Connector connector)
          Method to send one message to many agents
 void sendMessageToAgentsWithExtraProperties(String[] agent_name, String msgtype, Object message_content, ArrayList<Object> properties, Connector connector)
          Method to send one message with extra properties to many agents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JadeMessenger getInstance()
Returns:
The messenger for Jade

sendMessageToAgents

public void sendMessageToAgents(String[] agent_name,
                                String msgtype,
                                Object message_content,
                                Connector connector)
Description copied from interface: Messenger
Method to send one message to many agents

Specified by:
sendMessageToAgents in interface Messenger
Parameters:
agent_name - The Array with the Receivers name
msgtype - SFipa.Inform or SFipa.Request
message_content - The content of the message
connector - The connector to the platform

sendMessageToAgentsWithExtraProperties

public void sendMessageToAgentsWithExtraProperties(String[] agent_name,
                                                   String msgtype,
                                                   Object message_content,
                                                   ArrayList<Object> properties,
                                                   Connector connector)
Description copied from interface: Messenger
Method to send one message with extra properties to many agents

Specified by:
sendMessageToAgentsWithExtraProperties in interface Messenger
Parameters:
agent_name - The Array with the Receivers name
msgtype - SFipa.Inform or SFipa.Request
message_content - The content of the message
properties - The properties to add to the message
connector - The connector to the platform


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