Interface ExternalEventAdapter
- All Known Implementing Classes:
BaseExternalEventAdapter
public interface ExternalEventAdapter
ExternalEventAdapter is an adapter between the underlying event model and
the EAI or SAI callbacks. The particular details are handled by the
appropriate implementing classes.
The purpose of having this interface is to support having the event changed callbacks occurring in the same thread as the event model, or occurring outside the event model's thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(int fieldID, Object listener) Add a listener for one of the fields of this node.void
generateBroadcast
(int fieldID, double timestamp) Broadcast an eventOutChanged event for a given field.void
removeListener
(int fieldID, Object listener) Remove a listener for one of the fields of this node.
-
Method Details
-
addListener
Add a listener for one of the fields of this node. Implementors are allowed to restrict and enforce that the event listener conforms to various interfaces.- Parameters:
fieldID
- The ID of the field.listener
- The listener to add.
-
generateBroadcast
void generateBroadcast(int fieldID, double timestamp) Broadcast an eventOutChanged event for a given field.- Parameters:
fieldID
- The field which changed.timestamp
- When the change occurred.
-
removeListener
Remove a listener for one of the fields of this node. Implementors are allowed to restrict and enforce that the event listener conforms to various interfaces.- Parameters:
fieldID
- The ID of the field.listener
- The listener to remove.
-