Package jadex.bdiv3x.runtime
Class REventbase
- java.lang.Object
-
- jadex.bdiv3.runtime.impl.RElement
-
- jadex.bdiv3x.runtime.REventbase
-
- All Implemented Interfaces:
IElement
,IEventbase
public class REventbase extends jadex.bdiv3.runtime.impl.RElement implements IEventbase
The event base runtime element.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
scope
The scope (for local views).
-
Constructor Summary
Constructors Constructor Description REventbase(IInternalAccess agent, java.lang.String scope)
Create a new goalbase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IInternalEvent
createInternalEvent(java.lang.String type)
Create a new intenal event.IMessageEvent
createMessageEvent(java.lang.String type)
Create a new message event.<T> IMessageEvent<T>
createReply(IMessageEvent<T> event, java.lang.String type)
Create a reply to a message event.void
dispatchInternalEvent(IInternalEvent event)
Dispatch an event.IFuture<java.lang.Void>
sendMessage(IMessageEvent<?> me)
Send a message after some delay.-
Methods inherited from class jadex.bdiv3.runtime.impl.RElement
getAgent, getCapability, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getModelElement
-
-
-
-
Constructor Detail
-
REventbase
public REventbase(IInternalAccess agent, java.lang.String scope)
Create a new goalbase.
-
-
Method Detail
-
sendMessage
public IFuture<java.lang.Void> sendMessage(IMessageEvent<?> me)
Send a message after some delay.- Specified by:
sendMessage
in interfaceIEventbase
- Parameters:
me
- The message event.- Returns:
- The filter to wait for an answer.
-
dispatchInternalEvent
public void dispatchInternalEvent(IInternalEvent event)
Dispatch an event.- Specified by:
dispatchInternalEvent
in interfaceIEventbase
- Parameters:
event
- The event.
-
createMessageEvent
public IMessageEvent createMessageEvent(java.lang.String type)
Create a new message event.- Specified by:
createMessageEvent
in interfaceIEventbase
- Returns:
- The new message event.
-
createReply
public <T> IMessageEvent<T> createReply(IMessageEvent<T> event, java.lang.String type)
Create a reply to a message event.- Specified by:
createReply
in interfaceIEventbase
- Parameters:
event
- The received message event.type
- The reply message event type.- Returns:
- The reply event.
-
createInternalEvent
public IInternalEvent createInternalEvent(java.lang.String type)
Create a new intenal event.- Specified by:
createInternalEvent
in interfaceIEventbase
- Returns:
- The new intenal event.
-
-