Package PamUtils

Class SimpleObservable<T>

java.lang.Object
PamUtils.SimpleObservable<T>
Type Parameters:
T -
Direct Known Subclasses:
BeamLocaliserObservable

public class SimpleObservable<T> extends Object
Simple observerbale class which can pass on a single object to observables.
Author:
Doug Gillespie
  • Constructor Details

    • SimpleObservable

      public SimpleObservable()
  • Method Details

    • addObserver

      public void addObserver(SimpleObserver<T> observer)
      Add an observer
      Parameters:
      observer -
    • removeObserver

      public boolean removeObserver(SimpleObserver<T> observer)
      Remove an observer
      Parameters:
      observer -
      Returns:
      true if observer existed.
    • update

      public void update(T data)
      Update observers.
      Parameters:
      data - data to pass to observers.
    • updateSettings

      public void updateSettings()