public class DeviceScale extends Object implements de.arcasys.posper_lib.scale.Scale, de.arcasys.posper_lib.scale.Dialog6
| Modifier | Constructor and Description |
|---|---|
protected |
DeviceScale(String scaleType)
Creates a new instance of DeviceScale
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is only needed if the scale device would change on runtime,
like for test purposes.
|
static boolean |
existsScale() |
String |
getDeviceType() |
static DeviceScale |
getInstance() |
static DeviceScale |
getInstance(String scaleType) |
String |
getRawOutput() |
de.arcasys.posper_lib.scale.Dialog6Result |
getWeight(Double pricePerUnit) |
de.arcasys.posper_lib.scale.Dialog6Result |
getWeight(Double pricePerUnit,
int tare) |
de.arcasys.posper_lib.scale.Dialog6Result |
getWeight(Double pricePerUnit,
int tare,
String text) |
void |
nullTare() |
Double |
readPrecWeight() |
Double |
readWeight() |
protected DeviceScale(String scaleType) throws de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
scaleType - The scale type, optionally followed by a colon and a comma
separated string with one or more of the following options:
de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException:de.arcasys.posper_lib.scale.Exceptions.ScaleFatalExceptionpublic static DeviceScale getInstance(String scaleType) throws de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
de.arcasys.posper_lib.scale.Exceptions.ScaleFatalExceptionpublic void close()
close in interface de.arcasys.posper_lib.scale.Scalepublic static DeviceScale getInstance()
public static boolean existsScale()
public Double readWeight() throws de.arcasys.posper_lib.scale.Exceptions.ScaleException
readWeight in interface de.arcasys.posper_lib.scale.Scalede.arcasys.posper_lib.scale.Exceptions.ScaleExceptionpublic Double readPrecWeight() throws de.arcasys.posper_lib.scale.Exceptions.ScaleException
readPrecWeight in interface de.arcasys.posper_lib.scale.Scalede.arcasys.posper_lib.scale.Exceptions.ScaleExceptionpublic String getRawOutput()
getRawOutput in interface de.arcasys.posper_lib.scale.Scalepublic de.arcasys.posper_lib.scale.Dialog6Result getWeight(Double pricePerUnit)
getWeight in interface de.arcasys.posper_lib.scale.Dialog6public String getDeviceType()
getDeviceType in interface de.arcasys.posper_lib.scale.Scalepublic void nullTare()
nullTare in interface de.arcasys.posper_lib.scale.Scalepublic de.arcasys.posper_lib.scale.Dialog6Result getWeight(Double pricePerUnit, int tare)
getWeight in interface de.arcasys.posper_lib.scale.Dialog6Copyright © 2021. All rights reserved.