public class DeviceRG768 extends BaseDevice implements IProtocolEventListener
_protocol, INFO, TAG
Constructor and Description |
---|
DeviceRG768(BaseTransport baseTransport,
IDeviceEventListener listener) |
Modifier and Type | Method and Description |
---|---|
int |
getModuleInfo(DeviceOptionType type)
Get the specific module's model number in the device
|
java.lang.String |
getVersion() |
void |
initModuleInfo()
Initialize module info for get device's supported module
|
void |
onEvent(int cmd,
int sub,
java.lang.Object data) |
getProtocol, getTransport, start, stop
public DeviceRG768(BaseTransport baseTransport, IDeviceEventListener listener)
public java.lang.String getVersion()
getVersion
in class BaseDevice
public void onEvent(int cmd, int sub, java.lang.Object data)
onEvent
in interface IProtocolEventListener
public void initModuleInfo() throws ReaderException
ReaderException
- An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public int getModuleInfo(DeviceOptionType type) throws ReaderException
type
- The module typeReaderException
- An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.