ides.api.model.fsa
Class FSAPublisherAdaptor

java.lang.Object
  extended by ides.api.model.fsa.FSAPublisherAdaptor
All Implemented Interfaces:
FSAPublisher

public abstract class FSAPublisherAdaptor
extends java.lang.Object
implements FSAPublisher

Implementation of the FSAPublisher interface.

Author:
Helen Bretzke

Constructor Summary
FSAPublisherAdaptor()
          Initialize the adaptor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSAPublisherAdaptor

public FSAPublisherAdaptor()
Initialize the adaptor.

Method Detail

addSubscriber

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

Specified by:
addSubscriber in interface FSAPublisher
Parameters:
subscriber -

removeSubscriber

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

Specified by:
removeSubscriber in interface FSAPublisher
Parameters:
subscriber -

getFSASubscribers

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

Specified by:
getFSASubscribers in interface FSAPublisher
Returns:
all current subscribers to this publisher

fireFSAStructureChanged

public void fireFSAStructureChanged(FSAMessage message)
Description copied from interface: FSAPublisher
Triggers a notification to all subscribers that the structure of the FSA model has changed.

Specified by:
fireFSAStructureChanged in interface FSAPublisher
Parameters:
message - message with additional info about the change
See Also:
FSAMessage

fireFSAEventSetChanged

public void fireFSAEventSetChanged(FSAMessage message)
Description copied from interface: FSAPublisher
Triggers a notification to all subscribers that the event set of the FSA model has changed.

Specified by:
fireFSAEventSetChanged in interface FSAPublisher
Parameters:
message - message with additional info about the change
See Also:
FSAMessage