Package depthReadout
Class MccDepthSystem
java.lang.Object
depthReadout.MccDepthSystem
- All Implemented Interfaces:
 DepthSystem,PamSettings,SettingsNameProvider
- 
Field Summary
FieldsFields inherited from interface depthReadout.DepthSystem
DEPTH_NO_DATA, DEPTH_OUT_OF_RANGE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanSay whether ot not a particular sensor can be configured.booleanconfigureSensor(Frame parentFrame) Configure one of the sensors.doublegetDepth(int iSensor) Get the depth (should be in meters)doublegetDepthRawData(int iSensor) Get the depth (should be in meters)longbooleanreadSensor(int iSensor) Read all data from a sensor.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) booleanDepthProcess 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. 
- 
Field Details
- 
mccJniInterface
 - 
mccDepthParameters
 
 - 
 - 
Constructor Details
- 
MccDepthSystem
 
 - 
 - 
Method Details
- 
canConfigure
public boolean canConfigure()Description copied from interface:DepthSystemSay whether ot not a particular sensor can be configured.- Specified by:
 canConfigurein interfaceDepthSystem- Returns:
 - true if the sensor can be configured
 
 - 
configureSensor
Description copied from interface:DepthSystemConfigure one of the sensors.- Specified by:
 configureSensorin interfaceDepthSystem- Parameters:
 parentFrame- owner frame for dialog- Returns:
 - true if configurations went Ok.
 
 - 
readSensor
public boolean readSensor(int iSensor) Description copied from interface:DepthSystemRead 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:
 readSensorin interfaceDepthSystem- Parameters:
 iSensor- number of the sensor- Returns:
 - true if the read went OK.
 
 - 
getDepthRawData
public double getDepthRawData(int iSensor) Description copied from interface:DepthSystemGet the depth (should be in meters)- Specified by:
 getDepthRawDatain interfaceDepthSystem- Parameters:
 iSensor-- Returns:
 - depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
 
 - 
getDepth
public double getDepth(int iSensor) Description copied from interface:DepthSystemGet the depth (should be in meters)- Specified by:
 getDepthin interfaceDepthSystem- Parameters:
 iSensor-- Returns:
 - depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
 
 - 
shouldPoll
public boolean shouldPoll()Description copied from interface:DepthSystemDepthProcess 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:
 shouldPollin interfaceDepthSystem- Returns:
 - true if the sensor needs to be polled.
 
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- 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
 
 
 -