Jadex 0.941

jadex.adapter.fipa
Class FipaMessageAdapter

java.lang.Object
  extended byjadex.adapter.AbstractMessageAdapter
      extended byjadex.adapter.fipa.FipaMessageAdapter
All Implemented Interfaces:
IMessageAdapter, Serializable

public abstract class FipaMessageAdapter
extends AbstractMessageAdapter

Generic implementation of the message adapter functionality, supporting FIPA messages. Only the getParameterOrSetValue() has to be implemented.

See Also:
Serialized Form

Constructor Summary
FipaMessageAdapter(IJadexAgent agent, Object message)
          Create a message adapter for the given message object.
 
Method Summary
abstract  Object getValue(String name)
          Get the value for a parameter, or the values for a parameter set from a native message.
 boolean match(IMMessageEvent msgevent)
          Match a message with a message event.
 
Methods inherited from class jadex.adapter.AbstractMessageAdapter
getMessage, prepareReceiving
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FipaMessageAdapter

public FipaMessageAdapter(IJadexAgent agent,
                          Object message)
Create a message adapter for the given message object.

Method Detail

match

public boolean match(IMMessageEvent msgevent)
Match a message with a message event.

Specified by:
match in interface IMessageAdapter
Overrides:
match in class AbstractMessageAdapter
Parameters:
msgevent - The message event.
Returns:
True, if message matches the message event.

getValue

public abstract Object getValue(String name)
Get the value for a parameter, or the values for a parameter set from a native message. Parameter set values can be provided as array, collection, iterator or enumeration.

Specified by:
getValue in interface IMessageAdapter
Specified by:
getValue in class AbstractMessageAdapter

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.