public class YSdi12SensorInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
_addr |
protected boolean |
_isValid |
protected String |
_mfg |
protected String |
_model |
protected String |
_proto |
protected YSdi12Port |
_sdi12Port |
protected String |
_sn |
protected ArrayList<ArrayList<String>> |
_valuesDesc |
protected String |
_ver |
| Modifier and Type | Method and Description |
|---|---|
void |
_parseInfoStr(String infoStr) |
void |
_queryValueInfo() |
void |
_throw(int errcode,
String msg) |
String |
get_measureCommand(int measureIndex)
Returns the sensor measurement command.
|
int |
get_measureCount()
Returns the number of sensor measurements.
|
String |
get_measureDescription(int measureIndex)
Returns the description of the measured value.
|
int |
get_measurePosition(int measureIndex)
Returns sensor measurement position.
|
String |
get_measureSymbol(int measureIndex)
Returns the measured value symbol.
|
String |
get_measureUnit(int measureIndex)
Returns the unit of the measured value.
|
String |
get_sensorAddress()
Returns the sensor address.
|
String |
get_sensorModel()
Returns the sensor model number.
|
String |
get_sensorProtocol()
Returns the compatible SDI-12 version of the sensor.
|
String |
get_sensorSerial()
Returns the sensor serial number.
|
String |
get_sensorVendor()
Returns the sensor vendor identification.
|
String |
get_sensorVersion()
Returns the sensor version.
|
ArrayList<ArrayList<String>> |
get_typeMeasure() |
boolean |
isValid()
Returns the sensor state.
|
protected YSdi12Port _sdi12Port
protected boolean _isValid
protected String _addr
protected String _proto
protected String _mfg
protected String _model
protected String _ver
protected String _sn
public void _throw(int errcode,
String msg)
throws YAPI_Exception
YAPI_Exceptionpublic boolean isValid()
public String get_sensorAddress()
public String get_sensorProtocol()
public String get_sensorVendor()
public String get_sensorModel()
public String get_sensorVersion()
public String get_sensorSerial()
public int get_measureCount()
public String get_measureCommand(int measureIndex) throws YAPI_Exception
measureIndex - : measurement indexYAPI_Exception - on errorpublic int get_measurePosition(int measureIndex)
throws YAPI_Exception
measureIndex - : measurement indexYAPI_Exception - on errorpublic String get_measureSymbol(int measureIndex) throws YAPI_Exception
measureIndex - : measurement indexYAPI_Exception - on errorpublic String get_measureUnit(int measureIndex) throws YAPI_Exception
measureIndex - : measurement indexYAPI_Exception - on errorpublic String get_measureDescription(int measureIndex) throws YAPI_Exception
measureIndex - : measurement indexYAPI_Exception - on errorpublic void _parseInfoStr(String infoStr) throws YAPI_Exception
YAPI_Exceptionpublic void _queryValueInfo()
throws YAPI_Exception
YAPI_ExceptionCopyright © 2026. All rights reserved.