Class AbstractDevice

  • All Implemented Interfaces:
    Device, Plugin

    public abstract class AbstractDevice
    extends java.lang.Object
    implements Device
    Implements fundamental functionality useful for most of the device plugins.
    • Field Detail

      • pluginID

        protected final long pluginID
        Plugin ID assigned by emuStudio
      • applicationApi

        protected final ApplicationApi applicationApi
        emuStudio API.
      • settings

        protected final PluginSettings settings
        Device custom settings.
    • Constructor Detail

      • AbstractDevice

        public AbstractDevice​(long pluginID,
                              ApplicationApi applicationApi,
                              PluginSettings settings)
        Creates new instance.
        pluginID - plugin id
        applicationApi - emuStudio API
        settings - plugin custom settings
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: Plugin
        Get run-time title of this plugin.

        The title is a matter of change during runtime - for example there might be a device which might be used many times but it is called differently for each instance.

        Specified by:
        getTitle in interface Plugin
        run-time title of the plugin
      • reset

        public void reset()
        No-operation. Should be overridden if needed.
        Specified by:
        reset in interface Plugin