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 DeviceScanner
DeviceScannerException
public void disconnectDevice()
disconnectDevice
in interface DeviceScanner
public void startDownloadProduct() throws DeviceScannerException
startDownloadProduct
in interface DeviceScanner
DeviceScannerException
public ProductDownloaded recieveProduct() throws DeviceScannerException
recieveProduct
in interface DeviceScanner
DeviceScannerException
public void startUploadProduct() throws DeviceScannerException
startUploadProduct
in interface DeviceScanner
DeviceScannerException
public void sendProduct(String sName, String sCode, Double dPrice) throws DeviceScannerException
sendProduct
in interface DeviceScanner
DeviceScannerException
public void stopUploadProduct() throws DeviceScannerException
stopUploadProduct
in interface DeviceScanner
DeviceScannerException
public void serialEvent(gnu.io.SerialPortEvent evt)
serialEvent
in interface gnu.io.SerialPortEventListener
Copyright © 2021. All rights reserved.