Package depthReadout
Class MccDepthSystem
java.lang.Object
depthReadout.MccDepthSystem
- All Implemented Interfaces:
DepthSystem
,PamSettings
,SettingsNameProvider
-
Field Summary
Fields inherited from interface depthReadout.DepthSystem
DEPTH_NO_DATA, DEPTH_OUT_OF_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Say whether ot not a particular sensor can be configured.boolean
configureSensor
(Frame parentFrame) Configure one of the sensors.double
getDepth
(int iSensor) Get the depth (should be in meters)double
getDepthRawData
(int iSensor) Get the depth (should be in meters)long
boolean
readSensor
(int iSensor) Read all data from a sensor.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) boolean
DepthProcess should ask this system for data every so often if this return false, then the data are comign from somewhere beyond the immediate contron of Pamgaurd and we just wait for it to arrive.
-
Constructor Details
-
MccDepthSystem
-
-
Method Details
-
canConfigure
public boolean canConfigure()Description copied from interface:DepthSystem
Say whether ot not a particular sensor can be configured.- Specified by:
canConfigure
in interfaceDepthSystem
- Returns:
- true if the sensor can be configured
-
configureSensor
Description copied from interface:DepthSystem
Configure one of the sensors.- Specified by:
configureSensor
in interfaceDepthSystem
- Parameters:
parentFrame
- owner frame for dialog- Returns:
- true if configurations went Ok.
-
readSensor
public boolean readSensor(int iSensor) Description copied from interface:DepthSystem
Read all data from a sensor. These data should be stored locally in the concrete class and will then be retreived with other get... functions.- Specified by:
readSensor
in interfaceDepthSystem
- Parameters:
iSensor
- number of the sensor- Returns:
- true if the read went OK.
-
getDepthRawData
public double getDepthRawData(int iSensor) Description copied from interface:DepthSystem
Get the depth (should be in meters)- Specified by:
getDepthRawData
in interfaceDepthSystem
- Returns:
- depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
-
getDepth
public double getDepth(int iSensor) Description copied from interface:DepthSystem
Get the depth (should be in meters)- Specified by:
getDepth
in interfaceDepthSystem
- Returns:
- depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
-
shouldPoll
public boolean shouldPoll()Description copied from interface:DepthSystem
DepthProcess should ask this system for data every so often if this return false, then the data are comign from somewhere beyond the immediate contron of Pamgaurd and we just wait for it to arrive.- Specified by:
shouldPoll
in interfaceDepthSystem
- Returns:
- true if the sensor needs to be polled.
-
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
-
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.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
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
-