Jadex 0.941

jadex.runtime
Interface IMessageEvent

All Superinterfaces:
IElement, IEvent, IParameterElement

public interface IMessageEvent
extends IEvent

The interface for all message events (concrete and referenced).


Field Summary
 
Fields inherited from interface jadex.runtime.IEvent
CLASS, CLASS_GOAL, CLASS_INTERNAL, CLASS_MESSAGE
 
Method Summary
 IMessageEvent createReply(String type)
          Create a reply to this message event.
 IMessageEvent createReply(String type, Object content)
          Create a reply to this message event.
 Object getContent()
          Get the content.
 IFilter getFilter()
          Get the filter to wait for a reply.
 Object getMessage()
          Get the native (platform specific) message object.
 boolean isIncoming()
          Get the message direction.
 void setContent(Object content)
          Set the content.
 
Methods inherited from interface jadex.runtime.IEvent
getEventclass, getType, isMetaLevelReasoning, isPostToAll, isRandomSelection
 
Methods inherited from interface jadex.runtime.IParameterElement
getParameter, getParameters, getParameterSet, getParameterSets, hasParameter, hasParameterSet
 
Methods inherited from interface jadex.runtime.IElement
getModelElement, getName
 

Method Detail

getMessage

public Object getMessage()
Get the native (platform specific) message object.


isIncoming

public boolean isIncoming()
Get the message direction.

Returns:
True, if message is incoming.

getContent

public Object getContent()
Get the content. Allowed content objects depend on the platform.

Returns:
The content.

setContent

public void setContent(Object content)
Set the content. Allowed content objects depend on the platform.

Parameters:
content - The content.

createReply

public IMessageEvent createReply(String type)
Create a reply to this message event.

Parameters:
type - The reply message event type (defined in the ADF).
Returns:
The reply event.

createReply

public IMessageEvent createReply(String type,
                                 Object content)
Create a reply to this message event.

Parameters:
type - The reply message event type (defined in the ADF).
content - The message content.
Returns:
The reply event.

getFilter

public IFilter getFilter()
Get the filter to wait for a reply.

Returns:
The filter.

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.