public class DeviceScannerComm extends Object implements DeviceScanner, gnu.io.SerialPortEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
connectDevice() |
void |
disconnectDevice() |
ProductDownloaded |
recieveProduct() |
void |
sendProduct(String sName,
String sCode,
Double dPrice) |
void |
serialEvent(gnu.io.SerialPortEvent evt) |
void |
startDownloadProduct() |
void |
startUploadProduct() |
void |
stopUploadProduct() |
public void connectDevice()
throws DeviceScannerException
connectDevice in interface DeviceScannerDeviceScannerExceptionpublic void disconnectDevice()
disconnectDevice in interface DeviceScannerpublic void startDownloadProduct()
throws DeviceScannerException
startDownloadProduct in interface DeviceScannerDeviceScannerExceptionpublic ProductDownloaded recieveProduct() throws DeviceScannerException
recieveProduct in interface DeviceScannerDeviceScannerExceptionpublic void startUploadProduct()
throws DeviceScannerException
startUploadProduct in interface DeviceScannerDeviceScannerExceptionpublic void sendProduct(String sName, String sCode, Double dPrice) throws DeviceScannerException
sendProduct in interface DeviceScannerDeviceScannerExceptionpublic void stopUploadProduct()
throws DeviceScannerException
stopUploadProduct in interface DeviceScannerDeviceScannerExceptionpublic void serialEvent(gnu.io.SerialPortEvent evt)
serialEvent in interface gnu.io.SerialPortEventListenerCopyright © 2021. All rights reserved.