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