Class ScaleService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.scale.ScaleService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance,jpos.services.BaseService,jpos.services.ScaleService110,jpos.services.ScaleService111,jpos.services.ScaleService112,jpos.services.ScaleService113,jpos.services.ScaleService114,jpos.services.ScaleService115,jpos.services.ScaleService116,jpos.services.ScaleService12,jpos.services.ScaleService13,jpos.services.ScaleService14,jpos.services.ScaleService15,jpos.services.ScaleService16,jpos.services.ScaleService17,jpos.services.ScaleService18,jpos.services.ScaleService19
Scale service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the ScaleInterface for scale specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayText(String data)voiddoPriceCalculating(int[] weightData, int[] tare, long[] unitPrice, long[] unitPriceX, int[] weightUnitX, int[] weightNumeratorX, int[] weightDenominatorX, long[] price, int timeout)voidfreezeValue(int item, boolean freeze)booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintintlongintintintlongintbooleanvoidreadLiveWeightWithTare(int[] weightData, int[] tare, int timeout)voidreadWeight(int[] weightData, int timeout)voidsetPriceCalculationMode(int mode)voidsetSpecialTare(int mode, int data)voidsetStatusNotify(int i)voidsetTarePrioity(int priority)voidsetTarePriority(int priority)Same as set setTarePrioity.voidsetTareWeight(int i)voidsetUnitPrice(long l)voidsetUnitPriceWithWeightUnit(long unitPrice, int weightUnit, int weightNumerator, int weightDenominator)voidsetZeroValid(boolean b)voidMethods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEventsMethods inherited from interface jpos.loader.JposServiceInstance
deleteInstanceMethods inherited from interface jpos.services.ScaleService13
clearInput, getAsyncMode, getAutoDisable, getCapPowerReporting, getDataCount, getDataEventEnabled, getPowerNotify, getPowerState, setAsyncMode, setAutoDisable, setDataEventEnabled, setPowerNotifyMethods inherited from interface jpos.services.ScaleService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatisticsMethods inherited from interface jpos.services.ScaleService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
ScaleInterface
Instance of a class implementing the ScaleInterface for scale specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
ScaleService
Constructor. Stores given property set and device implementation object.- Parameters:
props- Property set.device- Device implementation object.
-
-
Method Details
-
getCapDisplay
public boolean getCapDisplay() throws jpos.JposException- Specified by:
getCapDisplayin interfacejpos.services.ScaleService12- Throws:
jpos.JposException
-
getCapDisplayText
public boolean getCapDisplayText() throws jpos.JposException- Specified by:
getCapDisplayTextin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getCapFreezeValue
public boolean getCapFreezeValue() throws jpos.JposException- Specified by:
getCapFreezeValuein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getCapPriceCalculating
public boolean getCapPriceCalculating() throws jpos.JposException- Specified by:
getCapPriceCalculatingin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getCapReadLiveWeightWithTare
public boolean getCapReadLiveWeightWithTare() throws jpos.JposException- Specified by:
getCapReadLiveWeightWithTarein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getCapSetPriceCalculationMode
public boolean getCapSetPriceCalculationMode() throws jpos.JposException- Specified by:
getCapSetPriceCalculationModein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getCapSetUnitPriceWithWeightUnit
public boolean getCapSetUnitPriceWithWeightUnit() throws jpos.JposException- Specified by:
getCapSetUnitPriceWithWeightUnitin interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getCapSpecialTare
public boolean getCapSpecialTare() throws jpos.JposException- Specified by:
getCapSpecialTarein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getCapStatusUpdate
public boolean getCapStatusUpdate() throws jpos.JposException- Specified by:
getCapStatusUpdatein interfacejpos.services.ScaleService19- Throws:
jpos.JposException
-
getCapTarePriority
public boolean getCapTarePriority() throws jpos.JposException- Specified by:
getCapTarePriorityin interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getCapTareWeight
public boolean getCapTareWeight() throws jpos.JposException- Specified by:
getCapTareWeightin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getCapZeroScale
public boolean getCapZeroScale() throws jpos.JposException- Specified by:
getCapZeroScalein interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getMaxDisplayTextChars
public int getMaxDisplayTextChars() throws jpos.JposException- Specified by:
getMaxDisplayTextCharsin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getMaximumWeight
public int getMaximumWeight() throws jpos.JposException- Specified by:
getMaximumWeightin interfacejpos.services.ScaleService12- Throws:
jpos.JposException
-
getMinimumWeight
public int getMinimumWeight() throws jpos.JposException- Specified by:
getMinimumWeightin interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
getSalesPrice
public long getSalesPrice() throws jpos.JposException- Specified by:
getSalesPricein interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getScaleLiveWeight
public int getScaleLiveWeight() throws jpos.JposException- Specified by:
getScaleLiveWeightin interfacejpos.services.ScaleService19- Throws:
jpos.JposException
-
getStatusNotify
public int getStatusNotify() throws jpos.JposException- Specified by:
getStatusNotifyin interfacejpos.services.ScaleService19- Throws:
jpos.JposException
-
setStatusNotify
public void setStatusNotify(int i) throws jpos.JposException- Specified by:
setStatusNotifyin interfacejpos.services.ScaleService19- Throws:
jpos.JposException
-
getTareWeight
public int getTareWeight() throws jpos.JposException- Specified by:
getTareWeightin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
setTareWeight
public void setTareWeight(int i) throws jpos.JposException- Specified by:
setTareWeightin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getUnitPrice
public long getUnitPrice() throws jpos.JposException- Specified by:
getUnitPricein interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
setUnitPrice
public void setUnitPrice(long l) throws jpos.JposException- Specified by:
setUnitPricein interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
getWeightUnit
public int getWeightUnit() throws jpos.JposException- Specified by:
getWeightUnitin interfacejpos.services.ScaleService12- Throws:
jpos.JposException
-
getZeroValid
public boolean getZeroValid() throws jpos.JposException- Specified by:
getZeroValidin interfacejpos.services.ScaleService113- Throws:
jpos.JposException
-
setZeroValid
public void setZeroValid(boolean b) throws jpos.JposException- Specified by:
setZeroValidin interfacejpos.services.ScaleService113- Throws:
jpos.JposException
-
displayText
- Specified by:
displayTextin interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-
doPriceCalculating
public void doPriceCalculating(int[] weightData, int[] tare, long[] unitPrice, long[] unitPriceX, int[] weightUnitX, int[] weightNumeratorX, int[] weightDenominatorX, long[] price, int timeout) throws jpos.JposException- Specified by:
doPriceCalculatingin interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
freezeValue
public void freezeValue(int item, boolean freeze) throws jpos.JposException- Specified by:
freezeValuein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
readLiveWeightWithTare
public void readLiveWeightWithTare(int[] weightData, int[] tare, int timeout) throws jpos.JposException- Specified by:
readLiveWeightWithTarein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
readWeight
public void readWeight(int[] weightData, int timeout) throws jpos.JposException- Specified by:
readWeightin interfacejpos.services.ScaleService12- Throws:
jpos.JposException
-
setPriceCalculationMode
public void setPriceCalculationMode(int mode) throws jpos.JposException- Specified by:
setPriceCalculationModein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
setSpecialTare
public void setSpecialTare(int mode, int data) throws jpos.JposException- Specified by:
setSpecialTarein interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
setTarePriority
public void setTarePriority(int priority) throws jpos.JposExceptionSame as set setTarePrioity. Will be called from setTarePrioity. Reason for this method is that setTarePrioity exists only due to a spelling error.- Parameters:
priority- Tare priority, see UPOS specification- Throws:
jpos.JposException- If an error occurs
-
setTarePrioity
public void setTarePrioity(int priority) throws jpos.JposException- Specified by:
setTarePrioityin interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
setUnitPriceWithWeightUnit
public void setUnitPriceWithWeightUnit(long unitPrice, int weightUnit, int weightNumerator, int weightDenominator) throws jpos.JposException- Specified by:
setUnitPriceWithWeightUnitin interfacejpos.services.ScaleService114- Throws:
jpos.JposException
-
zeroScale
public void zeroScale() throws jpos.JposException- Specified by:
zeroScalein interfacejpos.services.ScaleService13- Throws:
jpos.JposException
-