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.ScaleFatalException
public static DeviceScale getInstance(String scaleType) throws de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
de.arcasys.posper_lib.scale.Exceptions.ScaleFatalException
public void close()
close
in interface de.arcasys.posper_lib.scale.Scale
public 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.Scale
de.arcasys.posper_lib.scale.Exceptions.ScaleException
public Double readPrecWeight() throws de.arcasys.posper_lib.scale.Exceptions.ScaleException
readPrecWeight
in interface de.arcasys.posper_lib.scale.Scale
de.arcasys.posper_lib.scale.Exceptions.ScaleException
public String getRawOutput()
getRawOutput
in interface de.arcasys.posper_lib.scale.Scale
public de.arcasys.posper_lib.scale.Dialog6Result getWeight(Double pricePerUnit)
getWeight
in interface de.arcasys.posper_lib.scale.Dialog6
public String getDeviceType()
getDeviceType
in interface de.arcasys.posper_lib.scale.Scale
public void nullTare()
nullTare
in interface de.arcasys.posper_lib.scale.Scale
public de.arcasys.posper_lib.scale.Dialog6Result getWeight(Double pricePerUnit, int tare)
getWeight
in interface de.arcasys.posper_lib.scale.Dialog6
Copyright © 2021. All rights reserved.