public class REventbase extends RElement implements IEventbase
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
scope
The scope (for local views).
|
Constructor and Description |
---|
REventbase(IInternalAccess agent,
java.lang.String scope)
Create a new goalbase.
|
Modifier and Type | Method and Description |
---|---|
IInternalEvent |
createInternalEvent(java.lang.String type)
Create a new intenal event.
|
IMessageEvent |
createMessageEvent(java.lang.String type)
Create a new message event.
|
IMessageEvent |
createReply(IMessageEvent 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModelElement
public REventbase(IInternalAccess agent, java.lang.String scope)
public IFuture<java.lang.Void> sendMessage(IMessageEvent me)
sendMessage
in interface IEventbase
me
- The message event.public void dispatchInternalEvent(IInternalEvent event)
dispatchInternalEvent
in interface IEventbase
event
- The event.public IMessageEvent createMessageEvent(java.lang.String type)
createMessageEvent
in interface IEventbase
public IMessageEvent createReply(IMessageEvent event, java.lang.String type)
createReply
in interface IEventbase
event
- The received message event.type
- The reply message event type.public IInternalEvent createInternalEvent(java.lang.String type)
createInternalEvent
in interface IEventbase