Class ListenerDispatcher

All Implemented Interfaces:
Configurable, Findable, IScanDataPointObserver, gda.observable.IObserver

public class ListenerDispatcher extends FindableConfigurableBase implements IScanDataPointObserver
This listens to SDPs and the NcdDetectorSystem Timer to send updates to the client with either live raw data, stored raw data or processed (reduced) data from the SDP.
  • Constructor Details

    • ListenerDispatcher

      public ListenerDispatcher()
  • Method Details

    • configure

      public void configure() throws FactoryException
      Description copied from class: ConfigurableBase
      Default implementation for classes that do not have to do any specific configuration.
      Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.
      Specified by:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • update

      public void update(Object source, Object arg)
      Specified by:
      update in interface gda.observable.IObserver
    • setNcdDetector

      public void setNcdDetector(NcdDetectorSystem det)
    • getNcdDetector

      public NcdDetectorSystem getNcdDetector()
    • monitorSDP

      public void monitorSDP(String panelName, String detectorName)
    • monitorLive

      public void monitorLive(String panelName, String detectorName)
    • monitorStop

      public void monitorStop(String panelName)
    • getSDPDetectorNames

      public List<String> getSDPDetectorNames()
    • getSDPDetectorNamesAsString

      public String getSDPDetectorNamesAsString()
    • getEnergyScannable

      public EnergyScannable getEnergyScannable()
    • setEnergyScannable

      public void setEnergyScannable(EnergyScannable energyScannable)