Package analoginput
Class AnalogDevicesManager
java.lang.Object
analoginput.AnalogDevicesManager
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
-
Constructor Summary
ConstructorDescriptionAnalogDevicesManager
(SettingsNameProvider settingsNameProvider, AnalogSensorUser sensorUser) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInputObserver
(AnalogInputObserver inputObserver) findDeviceType
(String selectedType) getDialogPanel
(PamDialog parentFrame, AnalogSensorUser sensorUser) long
void
void
notifyData
(ItemAllData itemData) void
Called when settings have changes so that device can be selected and prepared.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings)
-
Constructor Details
-
AnalogDevicesManager
-
-
Method Details
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
findDeviceType
-
getDialogPanel
- Returns:
- A component that can go into a larger dialog
-
findDeviceType
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- 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
-
getAvailableTypes
- Returns:
- the availableTypes
-
getAnalogDeviceParams
- Returns:
- the analogDeviceParams
-
getInputParams
-
getSensorUser
- Returns:
- the sensorUser
-
prepareDevice
public void prepareDevice()Called when settings have changes so that device can be selected and prepared. -
getActiveDevice
- Returns:
- the activeDevice
-
addInputObserver
-
notifyChange
public void notifyChange() -
notifyData
-
getAnalogInputParams
- Returns:
- the analogInputParams
-