ides.api.model.supeventset
Interface SupEventSetPublisher

All Known Subinterfaces:
SupervisoryEventSet

public interface SupEventSetPublisher

A publisher of SupervisoryEventSet messages.

Author:
Valerie Sugarman

Method Summary
 void addSubscriber(SupEventSetSubscriber subscriber)
          Attaches the given subscriber to this publisher.
 void fireSupEventSetChanged(SupEventSetMessage message)
          Triggers a notification to all subscribers that the event set has changed.
 SupEventSetSubscriber[] getSupEventSetSubscribers()
          Returns all current subscribers to this publisher.
 void removeSubscriber(SupEventSetSubscriber subscriber)
          Removes the given subscriber to this publisher.
 

Method Detail

addSubscriber

void addSubscriber(SupEventSetSubscriber subscriber)
Attaches the given subscriber to this publisher. The given subscriber will receive notifications of changes from this publisher.

Parameters:
subscriber - the subscriber to be attached

fireSupEventSetChanged

void fireSupEventSetChanged(SupEventSetMessage message)
Triggers a notification to all subscribers that the event set has changed.

Parameters:
message - message with additional information about the change.

getSupEventSetSubscribers

SupEventSetSubscriber[] getSupEventSetSubscribers()
Returns all current subscribers to this publisher.

Returns:
all current subscribers to this publisher.

removeSubscriber

void removeSubscriber(SupEventSetSubscriber subscriber)
Removes the given subscriber to this publisher. The given subscriber will no longer receive notifications of changes from this publisher.

Parameters:
subscriber - the subscriber to be removed