public class ScaleKernKB extends Object implements de.arcasys.posper_lib.scale.Scale, gnu.io.SerialPortEventListener
Constructor and Description |
---|
ScaleKernKB(String sPortPrinter)
Creates a new instance of ScaleComm
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getDeviceType()
readWeight is currently designed to always return kilogram nonrespecting the
unit delivered by the scale
|
String |
getRawOutput() |
boolean |
isKilogram() |
void |
nullTare() |
Double |
readPrecWeight() |
Double |
readWeight() |
void |
serialEvent(gnu.io.SerialPortEvent evt) |
void |
tare()
acts like pressing the tare button
|
public ScaleKernKB(String sPortPrinter) throws de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
sPortPrinter
- de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
public Double readPrecWeight()
readPrecWeight
in interface de.arcasys.posper_lib.scale.Scale
public Double readWeight()
readWeight
in interface de.arcasys.posper_lib.scale.Scale
public String getDeviceType()
getDeviceType
in interface de.arcasys.posper_lib.scale.Scale
public boolean isKilogram()
public void tare()
public void close()
close
in interface de.arcasys.posper_lib.scale.Scale
public void serialEvent(gnu.io.SerialPortEvent evt)
serialEvent
in interface gnu.io.SerialPortEventListener
public String getRawOutput()
getRawOutput
in interface de.arcasys.posper_lib.scale.Scale
public void nullTare()
nullTare
in interface de.arcasys.posper_lib.scale.Scale
Copyright © 2021. All rights reserved.