Jadex 0.96-beta1

jadex.adapter.fipa
Class FipaMessageAdapter

java.lang.Object
  extended by jadex.adapter.AbstractMessageAdapter
      extended by jadex.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 getRawValue(String name)
          Get the value for a parameter, or the values for a parameter set from a native message.
 Object getValue(String name, jadex.runtime.impl.RCapability scope)
          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
 
Methods inherited from interface jadex.adapter.IMessageAdapter
getId
 

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 Object getValue(String name,
                       jadex.runtime.impl.RCapability scope)
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
Returns:
The value or array of values of the parameter (set).

getRawValue

public abstract Object getRawValue(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. Layered values (such as content) are not decoded in raw format.


Jadex 0.96-beta1

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-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.