EventForwarder

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.

Factory Messages
OperationDescription
create creates an EventForwarder

Operational Messages
OperationReturnDescription
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.
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:"
remove: anObject self removes anObject from the forward-to set
forward: eventType self Specifies that the forwarder is to forward events of anEventType
active: aBoolean self sets the forwarder to be active if aBoolean is true else inactive
active boolean answers the active state of the forwarder. true or false