Class PrintRecItemFuel
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.OutputRequest
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.PrintRecItem
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.PrintRecItemFuel
- All Implemented Interfaces:
Runnable
Output request executor for FiscalPrinter method PrintRecItemFuel.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.OutputRequest
Level, Station
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionPrintRecItemFuel(FiscalPrinterProperties props, String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlong
FiscalPrinter method parameter amount, see specific method.FiscalPrinter method parameter description, see specific method.Returns contents of property PostLine at the time where this instance has been created.Returns contents of property PreLine at the time where this instance has been created.long
FiscalPrinter method PrintRecItemFuel parameter specialTax, see UPOS specification.FiscalPrinter method PrintRecItemFuel parameter specialTaxName, see UPOS specification.int
FiscalPrinter method parameter vatInfo, see specific method.void
invoke()
This function should be called whenever a printing method has been invoked.void
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.PrintRecItem
getQuantity, getUnitName, getUnitPrice
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.OutputRequest
createErrorEvent, createIdleEvent, setIdleWaiter
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Constructor Details
-
PrintRecItemFuel
public PrintRecItemFuel(FiscalPrinterProperties props, String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName)Constructor. Stores given parameters for later use.- Parameters:
props
- Property set of device service.description
- Text describing the fuel product.price
- Price of the fuel item.quantity
- Number of items.vatInfo
- VAT rate identifier or amount.unitPrice
- Price of the fuel item per volume.unitName
- Name of the volume unit.specialTax
- Special tax amount, e.g., road tax.specialTaxName
- Name of the special tax.
-
-
Method Details
-
getSpecialTax
public long getSpecialTax()FiscalPrinter method PrintRecItemFuel parameter specialTax, see UPOS specification.- Returns:
- PrintRecItemFuel parameter specialTax.
-
getSpecialTaxName
FiscalPrinter method PrintRecItemFuel parameter specialTaxName, see UPOS specification.- Returns:
- PrintRecItemFuel parameter specialTaxName.
-
invokeMethod
public void invokeMethod() throws jpos.JposExceptionInvokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
Replacement for invoke in derived classes. Should neither call super.invoke nor super.invokeMethod in derived classes because the calling method just calls super.invoke.- Overrides:
invokeMethod
in classPrintRecItem
- Throws:
jpos.JposException
- FiscalPrinterException thrown by the command to be executed.
-
getDescription
FiscalPrinter method parameter description, see specific method.- Returns:
- parameter description.
-
getVatInfo
public int getVatInfo()FiscalPrinter method parameter vatInfo, see specific method.- Returns:
- parameter vatInfo.
-
getAmount
public long getAmount()FiscalPrinter method parameter amount, see specific method.- Returns:
- parameter amount.
-
getPostLine
Returns contents of property PostLine at the time where this instance has been created.- Returns:
- Contents of PostLine during request creation.
-
getPreLine
Returns contents of property PreLine at the time where this instance has been created.- Returns:
- Contents of PreLine during request creation.
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:OutputRequest
This function should be called whenever a printing method has been invoked. Therefore, it is the perfect place to signal processing has finished to implicitly waiting synchronous methods.- Overrides:
invoke
in classOutputRequest
- Throws:
jpos.JposException
- If the invoked method throws an exception.
-