Forwards event from its attachment point to another part of the proximity event bus in this or another SMC. May also be used to forward events as ordinary messages to Managed Objects, useful for communicating with external event busses.
Operation | Return | Description |
attachTo: anObject |
self |
attaches the EventForwarder to anObject. Any events generated at or below the managed object will be picked up by this event forwarder. |
forward: eventType |
self |
Specifies that the forwarder is to forward events of anEventType |
forwardTo: anObject |
self |
adds anObject to the list of managed objects to forward events to |
forwardTo: anObject as: aMessage |
self |
adds anObject to the list of managed objects to forward events to. The events are forwarded to anObject using the message aMessage which is expected to take one parameter, the event. Hence aCommand should be a keyword parameter. e.g. "event:" |
active |
boolean |
answers the active state of the forwarder. true or false |
remove: anObject |
self |
removes anObject from the forward-to set |
active: aBoolean |
self |
sets the forwarder to be active if aBoolean is true else inactive |