| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.adapter.AbstractMessageAdapter
public abstract class AbstractMessageAdapter
Generic implementation of the message adapter functionality. Only the getValue() method has to be implemented.
| Constructor Summary | |
|---|---|
| AbstractMessageAdapter(IJadexAgent agent,
                       Object message)Create a message adapter for the given message object. | |
| Method Summary | |
|---|---|
|  Object | getMessage()Get the platform message. | 
| abstract  Object | getValue(String name,
         jadex.runtime.impl.RCapability scope)Get the value for a parameter, or the values for a parameter set from the native message. | 
|  boolean | match(IMMessageEvent msgevent)Match a message with a message event. | 
| static void | prepareReceiving(jadex.runtime.impl.IRMessageEvent msgevent,
                 IMessageAdapter msg)Fill parameters of a message event from a native one. | 
| 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 | 
|---|
public AbstractMessageAdapter(IJadexAgent agent,
                              Object message)
| Method Detail | 
|---|
public boolean match(IMMessageEvent msgevent)
match in interface IMessageAdaptermsgevent - The message event.
public Object getMessage()
getMessage in interface IMessageAdapter
public abstract Object getValue(String name,
                                jadex.runtime.impl.RCapability scope)
getValue in interface IMessageAdapter
public static void prepareReceiving(jadex.runtime.impl.IRMessageEvent msgevent,
                                    IMessageAdapter msg)
| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.