public class MccDepthSystem extends java.lang.Object implements DepthSystem, PamSettings
DEPTH_NO_DATA, DEPTH_OUT_OF_RANGE
Constructor and Description |
---|
MccDepthSystem(DepthControl depthControl) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConfigure()
Say whether ot not a particular sensor can be configured.
|
boolean |
configureSensor(java.awt.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)
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
readSensor(int iSensor)
Read all data from a sensor.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
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.
|
public MccDepthSystem(DepthControl depthControl)
public boolean canConfigure()
DepthSystem
canConfigure
in interface DepthSystem
public boolean configureSensor(java.awt.Frame parentFrame)
DepthSystem
configureSensor
in interface DepthSystem
parentFrame
- owner frame for dialogpublic boolean readSensor(int iSensor)
DepthSystem
readSensor
in interface DepthSystem
iSensor
- number of the sensorpublic double getDepthRawData(int iSensor)
DepthSystem
getDepthRawData
in interface DepthSystem
public double getDepth(int iSensor)
DepthSystem
getDepth
in interface DepthSystem
public boolean shouldPoll()
DepthSystem
shouldPoll
in interface DepthSystem
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings