Class Apple2IDScannableBase

All Implemented Interfaces:
Device, Scannable, InitializationListener, Configurable, Findable, gda.observable.IObservable
Direct Known Subclasses:
Apple2IDGapPolar, Apple2IDGapPolarPos

public abstract class Apple2IDScannableBase extends ScannableBase implements InitializationListener
Base class for a Scannable to allow control of an AppleII ID
  • Field Details

    • controller

      protected IApple2ID controller
  • Constructor Details

    • Apple2IDScannableBase

      public Apple2IDScannableBase()
  • Method Details

    • initializationCompleted

      public void initializationCompleted()
      Description copied from interface: InitializationListener
      Called when all critical channels are connected.
      Specified by:
      initializationCompleted in interface InitializationListener
    • 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
    • isBusy

      public boolean isBusy() throws DeviceException
      Description copied from interface: Scannable
      Check if the Scannable is moving/operating.
      Specified by:
      isBusy in interface Scannable
      Returns:
      true - if operation carried out by moveTo has not completed yet
      Throws:
      DeviceException
    • motorPositionsEqual

      protected boolean motorPositionsEqual(double a, double b)
    • parseParamToDouble

      protected double parseParamToDouble(Object param)
    • setController

      public void setController(IApple2ID controller)
    • getController

      public IApple2ID getController()