ides.api.model.fsa
Interface FSAPublisher

All Known Subinterfaces:
FSAModel, FSASupervisor
All Known Implementing Classes:
FSAPublisherAdaptor

public interface FSAPublisher

A publisher of FSA messages.

Author:
Lenko Grigorov

Method Summary
 void addSubscriber(FSASubscriber subscriber)
          Attaches the given subscriber to this publisher.
 void fireFSAEventSetChanged(FSAMessage message)
          Triggers a notification to all subscribers that the event set of the FSA model has changed.
 void fireFSAStructureChanged(FSAMessage message)
          Triggers a notification to all subscribers that the structure of the FSA model has changed.
 FSASubscriber[] getFSASubscribers()
          Returns all current subscribers to this publisher.
 void removeSubscriber(FSASubscriber subscriber)
          Removes the given subscriber to this publisher.
 

Method Detail

addSubscriber

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

Parameters:
subscriber -

removeSubscriber

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

Parameters:
subscriber -

getFSASubscribers

FSASubscriber[] getFSASubscribers()
Returns all current subscribers to this publisher.

Returns:
all current subscribers to this publisher

fireFSAStructureChanged

void fireFSAStructureChanged(FSAMessage message)
Triggers a notification to all subscribers that the structure of the FSA model has changed.

Parameters:
message - message with additional info about the change
See Also:
FSAMessage

fireFSAEventSetChanged

void fireFSAEventSetChanged(FSAMessage message)
Triggers a notification to all subscribers that the event set of the FSA model has changed.

Parameters:
message - message with additional info about the change
See Also:
FSAMessage