Modifier and type | Property and description |
---|---|
InformedEventListener | associatedEventBusListener Replies the event listener linked to the owner of this capacity. |
EventBus | eventBus Replies the backend event bus. |
Modifier and type | Action and description |
---|---|
abstract void | fireEvent(Event) Fire the given event into the agent context, and do not wait for the termination of the event handlers. |
abstract void | fireEvent(Event,Object) Fire the given event into the agent context, and do not wait for the termination of the event handlers. |
abstract void | fireEventAndWait(Event,boolean) Fire the given event into the agent context, and wait for the execution of all the event handlers. |
abstract void | fireEventAndWait(Event,boolean,boolean,Object) Fire the given event into the agent context, and wait for the execution of all the event handlers. |
abstract boolean | fireEventAndWaitWithEventGathering(Event,boolean,OutParameter<T>,Procedure0,BooleanSupplier) Fire the given event into the agent context, and wait for the execution of all the event handlers. |
abstract InformedEventListener | getAssociatedEventBusListener Replies the event listener linked to the owner of this capacity. |
abstract EventBus | getEventBus Replies the backend event bus. |
abstract T | getEventBus(Class<T>) Replies the backend event bus. |
abstract ConcurrentCollection<T> | getRegisteredEventBusListeners(Class<T>) Replies the registered listeners. |
abstract void | registerEventBusListener(Object,[Function1<Param,Result>],[Procedure1<Param>]) Register the given object on the event bus for receiving any event. |
abstract void | unregisterEventBusListener(Class<T>,[Function1<Param,Result>]) Unregister the listeners of the given type on the event bus for receiving any event. |
abstract void | unregisterEventBusListener(Object,[Procedure1<Param>]) Unregister the given object on the event bus for receiving any event. |
val associatedEventBusListener : InformedEventListener
This property is an alias for the action: getAssociatedEventBusListener
val eventBus : EventBus
This property is an alias for the action: getEventBus
def fireEvent(Event)
def fireEvent(Event,Object)
def fireEventAndWait(Event,boolean)
def fireEventAndWait(Event,boolean,boolean,Object)
def fireEventAndWaitWithEventGathering(Event,boolean,OutParameter<T>,Procedure0,BooleanSupplier) : boolean
def getAssociatedEventBusListener : InformedEventListener
def getEventBus : EventBus
def getEventBus(Class<T>) : Twith T extends EventBus
def getRegisteredEventBusListeners(Class<T>) : ConcurrentCollection<T>with T
def registerEventBusListener(Object,[Function1<Param,Result>],[Procedure1<Param>])
true
for a specific event as argument, the event is fired in the behavior context. If the filter function replies false
, the event is not fired in the behavior context.
def unregisterEventBusListener(Class<T>,[Function1<Param,Result>])
def unregisterEventBusListener(Object,[Procedure1<Param>])