public class ScaleComm extends Object implements de.arcasys.posper_lib.scale.Scale, gnu.io.SerialPortEventListener
| Constructor and Description |
|---|
ScaleComm(String sPortPrinter)
Creates a new instance of ScaleComm
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getDeviceType() |
String |
getRawOutput() |
void |
nullTare() |
Double |
readPrecWeight() |
Double |
readWeight() |
void |
serialEvent(gnu.io.SerialPortEvent evt) |
public ScaleComm(String sPortPrinter)
sPortPrinter - public Double readWeight()
readWeight in interface de.arcasys.posper_lib.scale.Scalepublic void serialEvent(gnu.io.SerialPortEvent evt)
serialEvent in interface gnu.io.SerialPortEventListenerpublic Double readPrecWeight() throws de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
readPrecWeight in interface de.arcasys.posper_lib.scale.Scalede.arcasys.posper_lib.scale.Exceptions.ScaleFatalExceptionpublic void close()
close in interface de.arcasys.posper_lib.scale.Scalepublic String getRawOutput()
getRawOutput in interface de.arcasys.posper_lib.scale.Scalepublic String getDeviceType()
getDeviceType in interface de.arcasys.posper_lib.scale.Scalepublic void nullTare()
nullTare in interface de.arcasys.posper_lib.scale.ScaleCopyright © 2021. All rights reserved.