Class ArraySensorControl

java.lang.Object
PamController.PamControlledUnit
analogarraysensor.ArraySensorControl
All Implemented Interfaces:
AnalogSensorUser, ArrayDisplayParamsProvider, PamSettings, SettingsNameProvider

public class ArraySensorControl extends PamControlledUnit implements AnalogSensorUser, PamSettings, ArrayDisplayParamsProvider
  • Field Details

  • Constructor Details

    • ArraySensorControl

      public ArraySensorControl(String unitName)
  • Method Details

    • getAnalogSensorParams

      public ArraySensorParams getAnalogSensorParams()
      Returns:
      the analogSensorParams
    • createDetectionMenu

      public JMenuItem createDetectionMenu(Frame parentFrame)
      Description copied from class: PamControlledUnit
      Create a JMenu object containing MenuItems associated with PamProcesses
      Overrides:
      createDetectionMenu in class PamControlledUnit
      Parameters:
      parentFrame - The owner frame of the menu
      Returns:
      reference to a JMenu which can be added to an existing menu or menu bar

      Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.

    • showSettingsDialog

      protected void showSettingsDialog(Frame parentFrame)
    • getAnalogDevicesManager

      public AnalogDevicesManager getAnalogDevicesManager()
      Returns:
      the analogDevicesManager
    • getChannelNames

      public SensorChannelInfo[] getChannelNames()
      Description copied from interface: AnalogSensorUser
      Get a list of useful names for the channels.
      Specified by:
      getChannelNames in interface AnalogSensorUser
      Returns:
      List of channel names
    • getSettingsReference

      public Serializable getSettingsReference()
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion

      public long getSettingsVersion()
      Specified by:
      getSettingsVersion in interface PamSettings
      Returns:
      An integer version number for the settings
    • restoreSettings

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      Parameters:
      pamControlledUnitSettings -
      Returns:
      true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
    • getUserName

      public String getUserName()
      Specified by:
      getUserName in interface AnalogSensorUser
      Returns:
      A name for the data user
    • getHelpPoint

      public String getHelpPoint()
      Returns:
      the helpPoint
    • getSensChannelNames

      public String[] getSensChannelNames()
      Returns:
      the sensChannelNames
    • getAnalogSensorProcess

      public ArraySensorProcess getAnalogSensorProcess()
      Returns:
      the analogSensorProcess
    • getNumSensorGroups

      public int getNumSensorGroups()
    • getDisplayParameters

      public ArrayDisplayParameters getDisplayParameters()
      Specified by:
      getDisplayParameters in interface ArrayDisplayParamsProvider
    • setDisplayParameters

      public void setDisplayParameters(ArrayDisplayParameters displayParameters)
      Specified by:
      setDisplayParameters in interface ArrayDisplayParamsProvider
    • showDisplayParamsDialog

      public boolean showDisplayParamsDialog(Window window)
      Specified by:
      showDisplayParamsDialog in interface ArrayDisplayParamsProvider