Class IObserver

java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
Direct Known Subclasses:
IPublisherGlobal, MapTree

public abstract class IObserver
extends Object
Observer from observer design pattern.
  • Constructor Details

    • IObserver

      public IObserver()
  • Method Details

    • getPublishers

      public Set<IPublisher> getPublishers()
    • setPublishers

      public void setPublishers​(Set<IPublisher> publishers)
    • receive

      public void receive​(Object message)
      Receive data update from publisher. Default implementation, should be overridden.
      Parameters:
      message - Data sent by publisher.
    • addPublisher

      public void addPublisher​(IPublisher publisher)
      Adds a new publisher.
      Parameters:
      publisher -
    • removePublisher

      public void removePublisher​(IPublisher publisher)
      Removes a publisher.
      Parameters:
      publisher -