Class EncoderCounter

All Implemented Interfaces:
Device, Memory, Configurable, Findable, gda.observable.IObservable

public class EncoderCounter extends Gdhist
A memory class for the HY8513 Hytec Incremental Counter Encoder implemented using DA.Server
  • Constructor Details

    • EncoderCounter

      public EncoderCounter()
  • Method Details

    • clear

      public void clear(int start, int count)
      Description copied from interface: Memory
      Clear the specified number of frames/images/spectra starting with specified frame/image/spectrum number.
      Specified by:
      clear in interface Memory
      Overrides:
      clear in class Gdhist
      Parameters:
      start - is the starting frame/image/spectrum number (1st = 0)
      count - is the number of frames/images/spectra to clear
    • clear

      public void clear(int x, int y, int t, int dx, int dy, int dt)
      Description copied from interface: Memory
      Clear the specified block of memory. The parameters give the ability to clear a 3D block of memory.
      Specified by:
      clear in interface Memory
      Overrides:
      clear in class Gdhist
      Parameters:
      x - is the start address for the offset in the x dimension
      y - is the start address for the offset in the y dimension
      t - is the start address for the offset in the z or t dimension
      dx - is the address count in the x dimension
      dy - is the address count in the y dimension
      dt - is the address count in the z or t dimension
    • setDimension

      public void setDimension(int[] d) throws DeviceException
      Description copied from interface: Memory
      Set the size of the memory system.
      Specified by:
      setDimension in interface Memory
      Overrides:
      setDimension in class Gdhist
      Parameters:
      d - is the
      Throws:
      DeviceException
    • getMemorySize

      public int getMemorySize() throws DeviceException
      Description copied from interface: Memory
      Get the physical memory size
      Specified by:
      getMemorySize in interface Memory
      Overrides:
      getMemorySize in class Gdhist
      Returns:
      the physical memory size expressed in words.
      Throws:
      DeviceException
    • getSupportedDimensions

      public int[] getSupportedDimensions()
      Description copied from interface: Memory
      If the detector supports multiple pixel settings, this will return an array of possible values. Null otherwise. Assumes the detector is 2D with identical axes.
      Specified by:
      getSupportedDimensions in interface Memory
      Overrides:
      getSupportedDimensions in class Gdhist
      Returns:
      a collection of supported Dimensions