Package depthReadout
Interface DepthSystem
- All Known Implementing Classes:
 MccDepthSystem
public interface DepthSystem
Hydrophone depth may be read out in a number of different ways and may 
 arrive from a number of different sources. The main DepthProcess will manage
 common functinaility and common data, but the actual work will be done
 through this interface.
- Author:
 - Douglas Gillespie
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final double - 
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)booleanreadSensor(int iSensor) Read all data from a sensor.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
- 
DEPTH_OUT_OF_RANGE
static final double DEPTH_OUT_OF_RANGE- See Also:
 
 - 
DEPTH_NO_DATA
static final double DEPTH_NO_DATA- See Also:
 
 
 - 
 - 
Method Details
- 
shouldPoll
boolean shouldPoll()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.- Returns:
 - true if the sensor needs to be polled.
 
 - 
getDepth
double getDepth(int iSensor) Get the depth (should be in meters)- Parameters:
 iSensor-- Returns:
 - depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
 
 - 
readSensor
boolean readSensor(int iSensor) 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.- Parameters:
 iSensor- number of the sensor- Returns:
 - true if the read went OK.
 
 - 
getDepthRawData
double getDepthRawData(int iSensor) Get the depth (should be in meters)- Parameters:
 iSensor-- Returns:
 - depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
 
 - 
canConfigure
boolean canConfigure()Say whether ot not a particular sensor can be configured.- Returns:
 - true if the sensor can be configured
 
 - 
configureSensor
Configure one of the sensors.- Parameters:
 parentFrame- owner frame for dialog- Returns:
 - true if configurations went Ok.
 
 
 -