Class EndStationServiceManagerWrapper

java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
uk.ac.gda.services.common.core.EndStationServiceManagerWrapper
All Implemented Interfaces:
Device, Configurable, Findable, gda.observable.IObservable, gda.observable.IObserver, GdaService, EndStationEventProvider, EndStationService, EndStationServiceManager

@ServiceInterface(EndStationService.class) public class EndStationServiceManagerWrapper extends FindableConfigurableBase implements EndStationServiceManager, gda.observable.IObserver
  • Constructor Details

    • EndStationServiceManagerWrapper

      public EndStationServiceManagerWrapper()
    • EndStationServiceManagerWrapper

      public EndStationServiceManagerWrapper(Scriptcontroller observable)
  • Method Details

    • addIObserver

      public void addIObserver(gda.observable.IObserver observer)
      Specified by:
      addIObserver in interface gda.observable.IObservable
    • close

      public void close() throws DeviceException
      Description copied from interface: Device
      Close and unconfigure the device.
      Specified by:
      close in interface Device
      Throws:
      DeviceException
    • 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
    • deleteIObserver

      public void deleteIObserver(gda.observable.IObserver observer)
      Specified by:
      deleteIObserver in interface gda.observable.IObservable
    • deleteIObservers

      public void deleteIObservers()
      Specified by:
      deleteIObservers in interface gda.observable.IObservable
    • getAdapter

      public GdaService getAdapter(Class<? extends GdaService> adapter)
      Specified by:
      getAdapter in interface GdaService
    • getAttribute

      public Object getAttribute(String attributeName) throws DeviceException
      Description copied from interface: Device
      Get the value of the specified attribute
      Specified by:
      getAttribute in interface Device
      Parameters:
      attributeName - is the name of the attribute
      Returns:
      the value of the attribute as an Object type
      Throws:
      DeviceException - if an attribute cannot be retrieved
    • getMode

      public int getMode()
      Specified by:
      getMode in interface EndStationService
    • getProtectionLevel

      public int getProtectionLevel()
      Specified by:
      getProtectionLevel in interface Device
      Returns:
      int - the permission level for this object.
    • getService

      public EndStationServiceManager getService()
    • isConfigured

      public boolean isConfigured()
      Description copied from interface: Configurable
      Checks to see if the object is already configured.
      Specified by:
      isConfigured in interface Configurable
      Overrides:
      isConfigured in class ConfigurableBase
      Returns:
      return true if configured false otherwise
    • isConfigureAtStartup

      public boolean isConfigureAtStartup()
      Description copied from interface: Configurable
      Indicates whether this object should be configured at startup.

      Moved from ConditionallyConfigurable which has been deleted

      Specified by:
      isConfigureAtStartup in interface Configurable
      Overrides:
      isConfigureAtStartup in class ConfigurableBase
    • reconfigure

      public void reconfigure() throws FactoryException
      Description copied from interface: Configurable
      Re-initialisation of values and states.

      Moved from Reconfigurable which has been deleted

      Specified by:
      reconfigure in interface Configurable
      Overrides:
      reconfigure in class ConfigurableBase
      Throws:
      FactoryException
    • selectMode

      public void selectMode(int mode)
      Description copied from interface: EndStationService
      Execute transition to new mode
      Specified by:
      selectMode in interface EndStationService
      Parameters:
      mode - index of mode that is target of transition
    • setAttribute

      public void setAttribute(String attributeName, Object value) throws DeviceException
      Description copied from interface: Device
      Set any attribute the implementing classes may provide
      Specified by:
      setAttribute in interface Device
      Parameters:
      attributeName - is the name of the attribute
      value - is the value of the attribute
      Throws:
      DeviceException - if an attribute cannot be set
    • setMode

      public void setMode(int mode)
      Specified by:
      setMode in interface EndStationServiceManager
    • setScriptController

      public void setScriptController(Scriptcontroller observable)
    • setProtectionLevel

      public void setProtectionLevel(int newLevel)
      Description copied from interface: Device
      Sets the permission level for this object. If this is not set then a default value will be applied.
      Specified by:
      setProtectionLevel in interface Device
      Parameters:
      newLevel -
    • setService

      public void setService(EndStationServiceManager service)
    • update

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