Class RemoteOrderDisplayProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.remoteorderdisplay.RemoteOrderDisplayProperties
- All Implemented Interfaces:
JposBaseInterface
,RemoteOrderDisplayInterface
public class RemoteOrderDisplayProperties
extends JposCommonProperties
implements RemoteOrderDisplayInterface
Class containing the remote order display specific properties, their default values and default implementations of
RemoteOrderDisplayInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Remote Order Display.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
helper class, contains property values per display unit. -
Field Summary
FieldsModifier and TypeFieldDescriptionint
UPOS property AutoToneDuration.int
UPOS property AutoToneFrequency.boolean
UPOS property CapMapCharacterSet.boolean
Default value of CapMapCharacterSet property.boolean
UPOS property CapSelectCharacterSet.boolean
UPOS property CapTone.boolean
UPOS property CapTouch.boolean
UPOS property CapTransaction.boolean
Default value of CapTransaction property.int
UPOS property CharacterSet.int
Default value of CharacterSet property for offline units.UPOS property CharacterSetList.int
UPOS property Clocks.int
UPOS property EventType.int
Default value of EventType property.boolean
UPOS property MapCharacterSet.boolean
Default value of CapMapCharacterSet property.int
UPOS property SystemClocks.int
Default value of SystemClocks property.int
UPOS property SystemVideoSaveBuffers.int
Default value of SystemVideoSaveBuffers property.int
UPOS property Timeout.int
Default value of Timeout property.Unit specific properties, one per possible unit.int
UPOS property UnitsOnline.int
UPOS property VideoMode.int
Default value of VideoMode property for offline units.UPOS property VideoModesList.Default value of VideoModesList property for offline units.int
UPOS property VideoSaveBuffers.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UsesSubsystemUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoToneDuration(int duration)
Final part of setting AutoToneDuration.void
autoToneFrequency(int frequency)
Final part of setting AutoToneFrequency.clearVideo(int units, int attribute)
Validation part of ClearVideo method.void
clearVideo(ClearVideo request)
Final part of ClearVideo method.clearVideoRegion(int units, int row, int column, int height, int width, int attribute)
Validation part of ClearVideoRegion method.void
clearVideoRegion(ClearVideoRegion request)
Final part of ClearVideoRegion method.void
controlClock(int units, int function, int clockid, int hour, int minute, int second, int row, int column, int attribute, int mode)
Final part of ControlClock method.void
controlCursor(int units, int function)
Final part of ControlCursor method.void
copyIn()
Retrieves all properties from the property set this object belongs to.void
copyOut()
Copies all properties to the property set belonging to this object.copyVideoRegion(int units, int row, int column, int height, int width, int targetRow, int targetColumn)
Validation part of CopyVideoRegion method.void
copyVideoRegion(CopyVideoRegion request)
Final part of CopyVideoRegion method.void
currentUnitID(int unit)
Final part of setting CurrentUnitID.displayData(int units, int row, int column, int attribute, String data)
Validation part of DisplayData method.void
displayData(DisplayData request)
Final part of DisplayData method.drawBox(int units, int row, int column, int height, int width, int attribute, int bordertype)
Validation part of DrawBox method.void
Final part of DrawBox method.void
eventType(int type)
Final part of setting EventType.void
freeVideoRegion(int units, int bufferId)
Final part of FreeVideoRegion method.boolean
Initialize properties that must be initialized whenever the device will be enabled the first time-void
Initialization of properties that must be initialized during open.void
mapCharacterSet(boolean map)
Final part of setting MapCharacterSet.Class factory for JposOutputRequests.void
resetVideo(int units)
Final part of ResetVideo method.restoreVideoRegion(int units, int targetRow, int targetColumn, int bufferId)
Validation part of RestoreVideoRegion method.void
restoreVideoRegion(RestoreVideoRegion request)
Final part of RestoreVideoRegion method.saveVideoRegion(int units, int row, int column, int height, int width, int bufferId)
Validation part of SaveVideoRegion method.void
saveVideoRegion(SaveVideoRegion request)
Final part of SaveVideoRegion method.void
selectChararacterSet(int units, int characterSet)
Final part of SelectChararacterSet method.void
setCursor(int units, int row, int column)
Final part of SetCursor method.void
timeout(int milliseconds)
Final part of setting Timeout.transactionDisplay(int units, int function)
Validation part of TransactionDisplay method.void
transactionDisplay(TransactionDisplay request)
Final part of TransactionDisplay method.int
unitsToFirstIndex(int units)
Returns the lowest index of a unit specified by the given bitmask.updateVideoRegionAttribute(int units, int function, int row, int column, int height, int width, int attribute)
Validation part of UpdateVideoRegionAttribute method.void
Final part of UpdateVideoRegionAttribute method.void
videoMode(int mode)
Final part of setting video mode.videoSound(int units, int frequency, int duration, int numberOfCycles, int interSoundWait)
Validation part of VideoSound method.void
videoSound(VideoSound request)
Final part of VideoSound method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
AutoToneDuration
public int AutoToneDurationUPOS property AutoToneDuration. -
AutoToneFrequency
public int AutoToneFrequencyUPOS property AutoToneFrequency. -
CapSelectCharacterSet
public boolean CapSelectCharacterSetUPOS property CapSelectCharacterSet. -
CapTone
public boolean CapToneUPOS property CapTone. -
CapTouch
public boolean CapTouchUPOS property CapTouch. -
CharacterSet
public int CharacterSetUPOS property CharacterSet. -
CharacterSetList
UPOS property CharacterSetList. -
Clocks
public int ClocksUPOS property Clocks. -
VideoMode
public int VideoModeUPOS property VideoMode. -
VideoModesList
UPOS property VideoModesList. -
VideoSaveBuffers
public int VideoSaveBuffersUPOS property VideoSaveBuffers. -
Unit
Unit specific properties, one per possible unit. -
CharacterSetDef
public int CharacterSetDefDefault value of CharacterSet property for offline units. Default: ROD_CS_ASCII. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
VideoModeDef
public int VideoModeDefDefault value of VideoMode property for offline units. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
VideoModesListDef
Default value of VideoModesList property for offline units. Default: "0:0x0x0M". Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMapCharacterSetDef
public boolean CapMapCharacterSetDefDefault value of CapMapCharacterSet property. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
EventTypeDef
public int EventTypeDefDefault value of EventType property. Default: 0 (no data events). Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MapCharacterSetDef
public boolean MapCharacterSetDefDefault value of CapMapCharacterSet property. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
TimeoutDef
public int TimeoutDefDefault value of Timeout property. Default: 1000 (1 second). Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
SystemVideoSaveBuffersDef
public int SystemVideoSaveBuffersDefDefault value of SystemVideoSaveBuffers property. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
SystemClocksDef
public int SystemClocksDefDefault value of SystemClocks property. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMapCharacterSet
public boolean CapMapCharacterSetUPOS property CapMapCharacterSet. -
CapTransactionDef
public boolean CapTransactionDefDefault value of CapTransaction property. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTransaction
public boolean CapTransactionUPOS property CapTransaction. -
EventType
public int EventTypeUPOS property EventType. -
MapCharacterSet
public boolean MapCharacterSetUPOS property MapCharacterSet. -
SystemClocks
public int SystemClocksUPOS property SystemClocks. -
SystemVideoSaveBuffers
public int SystemVideoSaveBuffersUPOS property SystemVideoSaveBuffers. -
Timeout
public int TimeoutUPOS property Timeout. -
UnitsOnline
public int UnitsOnlineUPOS property UnitsOnline.
-
-
Constructor Details
-
RemoteOrderDisplayProperties
public RemoteOrderDisplayProperties(int dev)Constructor.- Parameters:
dev
- Device index
-
-
Method Details
-
copyOut
public void copyOut()Copies all properties to the property set belonging to this object. -
copyIn
public void copyIn()Retrieves all properties from the property set this object belongs to. -
unitsToFirstIndex
public int unitsToFirstIndex(int units)Returns the lowest index of a unit specified by the given bitmask.- Parameters:
units
- A bitmask specifying one or more display units.- Returns:
- The lowest index where (units & (1 << index)) != 0.
-
initOnOpen
public void initOnOpen()Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during open.- Overrides:
initOnOpen
in classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnable
in classJposCommonProperties
- Returns:
- Returns true in case of first enable.
-
newJposOutputRequest
Description copied from interface:JposBaseInterface
Class factory for JposOutputRequests.- Specified by:
newJposOutputRequest
in interfaceJposBaseInterface
- Overrides:
newJposOutputRequest
in classJposCommonProperties
- Returns:
- A new instance of JposOutputRequest or a derived class.
-
autoToneDuration
public void autoToneDuration(int duration) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting AutoToneDuration. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- The display specified by CurrentUnitID is online,
- The new property value is positive.
- Specified by:
autoToneDuration
in interfaceRemoteOrderDisplayInterface
- Parameters:
duration
- New AutoToneDuration value- Throws:
jpos.JposException
- If an error occurs
-
autoToneFrequency
public void autoToneFrequency(int frequency) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting AutoToneFrequency. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- The display specified by CurrentUnitID is online,
- The new property value is positive.
- Specified by:
autoToneFrequency
in interfaceRemoteOrderDisplayInterface
- Parameters:
frequency
- New AutoToneFrequency value- Throws:
jpos.JposException
- If an error occurs
-
currentUnitID
public void currentUnitID(int unit) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting CurrentUnitID. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- The new property value is one of UID_x, where 1 ≤ x ≤ 32.
- Specified by:
currentUnitID
in interfaceRemoteOrderDisplayInterface
- Parameters:
unit
- New CurrentUnitID value- Throws:
jpos.JposException
- If an error occurs
-
eventType
public void eventType(int type) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting EventType. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- The new property value is a bitwise combination of DE_TOUCH_UP, DE_TOUCH_DOWN and DE_TOUCH_MOVE,
- internal property AllowAlwaysSetProperties is true or type equals the previous value of EventType.
-
-- Specified by:
eventType
in interfaceRemoteOrderDisplayInterface
- Parameters:
type
- New EventType value- Throws:
jpos.JposException
- If an error occurs
-
mapCharacterSet
public void mapCharacterSet(boolean map) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting MapCharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- The new property value is false of CapMapCharacterSet is true.
- Specified by:
mapCharacterSet
in interfaceRemoteOrderDisplayInterface
- Parameters:
map
- New MapCharacterSet value- Throws:
jpos.JposException
- If an error occurs
-
timeout
public void timeout(int milliseconds) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting Timeout. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- The new property value is positive,
- internal property AllowAlwaysSetProperties is true or milliseconds equals the previous value of Timeout.
- Specified by:
timeout
in interfaceRemoteOrderDisplayInterface
- Parameters:
milliseconds
- New Timeout value- Throws:
jpos.JposException
- If an error occurs
-
videoMode
public void videoMode(int mode) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of setting video mode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- The device unit specified by CurrentUnitID is online,
- The new property value one of the modes specified by VideoModesList.
- Specified by:
videoMode
in interfaceRemoteOrderDisplayInterface
- Parameters:
mode
- New video mode value- Throws:
jpos.JposException
- If an error occurs
-
controlClock
public void controlClock(int units, int function, int clockid, int hour, int minute, int second, int row, int column, int attribute, int mode) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of ControlClock method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is idle
- All displays specified by units are online,
- function is CLK_PAUSE, CLK_START, CLK_RESUME, CLK_STOP or CLK_MOVE,
- clockid is > 0 and %le; the minimum Clocks value for all selected display units,
- if function = CLK_START, hour, minute and second are within the usual ranges (0-23, 0-59),
- if function = CLK_START, mode is one of CLK_SHORT, CLK_NORMAL, CLK_12_LONG or CLK_24_LONG,
- if function = CLK_START, attribute is between 0 and 255,
- if funktion is CLK_START or CLK_MOVE, row and column are valid start coordinates for all specified units.
- Specified by:
controlClock
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.function
- The requested clock command.clockid
- The requested clock command.hour
- The initial hours for the clock display.minute
- The initial minutes for the clock display.second
- The initial seconds for the clock display.row
- The clock's row.column
- The clock's start column.attribute
- VGA-like attribute parameter, see UPOS specification, chapter Remote Order Display - General Information - Model.mode
- The type of clock to display.- Throws:
jpos.JposException
- For details, see UPOS method ControlClock.
-
controlCursor
public void controlCursor(int units, int function) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of ControlCursor method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is idle
- All displays specified by units are online,
- function is CRS_LINE, CRS_LINE_BLINK, RS_BLOCK, CRS_BLOCK_BLINK or CRS_OFF.
- Specified by:
controlCursor
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.function
- The cursor command, indicating the type of cursor to display.- Throws:
jpos.JposException
- For details, see UPOS method ControlCursor.
-
freeVideoRegion
public void freeVideoRegion(int units, int bufferId) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of FreeVideoRegion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- All displays specified by units are online,
- All displays specified by units fulfill the following condition: 1 ≤ bufferId ≤ VideoSaveBuffers.
- Specified by:
freeVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.bufferId
- Number identifying the video buffer to free.- Throws:
jpos.JposException
- For details, see UPOS method FreeVideoRegion.
-
resetVideo
public void resetVideo(int units) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of ResetVideo method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is idle
- All displays specified by units are online.
- Specified by:
resetVideo
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.- Throws:
jpos.JposException
- For details, see UPOS method ResetVideo.
-
selectChararacterSet
public void selectChararacterSet(int units, int characterSet) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of SelectChararacterSet method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is idle
- All displays specified by units are online,
- For all displays specified by units property CapSelectCharacterSet is true,
- For all displays specified by units, property CharacterSetList contains characterSet .
- Specified by:
selectChararacterSet
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.characterSet
- Contain the character set for displaying characters.- Throws:
jpos.JposException
- For details, see UPOS method SelectChararacterSet.
-
setCursor
public void setCursor(int units, int row, int column) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of SetCursor method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device is idle,
- All displays specified by units are online,
- For all displays specified by units, row and column are valid cursor coordinates.
- Specified by:
setCursor
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.row
- Row to place the cursor on.column
- Column to place the cursor on.- Throws:
jpos.JposException
- For details, see UPOS method SetCursor.
-
clearVideo
Description copied from interface:RemoteOrderDisplayInterface
Validation part of ClearVideo method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- 0 ≤ attribute ≤ 0xff,
- If AsyncMode is false: All display units specified by units are online.
- Specified by:
clearVideo
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.attribute
- VGA-like attribute parameter, see UPOS specification, chapter Remote Order Display - General Information - Model.- Returns:
- ClearVideo object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method ClearVideo.
-
clearVideo
Description copied from interface:RemoteOrderDisplayInterface
Final part of ClearVideo method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a ClearVideo object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- Specified by:
clearVideo
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by ClearVideo.- Throws:
jpos.JposException
- For details, see UPOS method ClearVideo.
-
clearVideoRegion
public ClearVideoRegion clearVideoRegion(int units, int row, int column, int height, int width, int attribute) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of ClearVideoRegion method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- row and column are positive values, height ≥ 1 and width ≥ 1.
- 0 ≤ attribute ≤ 0xff.
- All display units specified by units are online,
- row, column, height and width specify a valid region on all affected units.
- Specified by:
clearVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.row
- Upper row of the specified region.column
- Left column of the specified region.height
- Height of the specified region.width
- Width of the specified region.attribute
- VGA-like attribute parameter, see UPOS specification, chapter Remote Order Display - General Information - Model.- Returns:
- ClearVideoRegion object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method ClearVideoRegion.
-
clearVideoRegion
Description copied from interface:RemoteOrderDisplayInterface
Final part of ClearVideoRegion method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a ClearVideoRegion object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- request.getRow(), request.getColumn(), request.getHeight() and request.getWidth() specify a valid region on all affected units.
- Specified by:
clearVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by ClearVideoRegion.- Throws:
jpos.JposException
- For details, see UPOS method ClearVideoRegion.
-
copyVideoRegion
public CopyVideoRegion copyVideoRegion(int units, int row, int column, int height, int width, int targetRow, int targetColumn) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of CopyVideoRegion method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- row, column, targetRow and targetColumn are positive values, height ≥ 1 and width ≥ 1.
- All display units specified by units are online,
- row, column, height and width specify a valid region on all affected units,
- targetRow, targetColumn, height and width specify a valid region on all affected units.
- Specified by:
copyVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.row
- Upper row of the specified region.column
- Left column of the specified region.height
- Height of the specified region.width
- Width of the specified region.targetRow
- Upper row of target location.targetColumn
- Left column of target location.- Returns:
- CopyVideoRegion object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method CopyVideoRegion.
-
copyVideoRegion
Description copied from interface:RemoteOrderDisplayInterface
Final part of CopyVideoRegion method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a CopyVideoRegion object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- request.getRow(), request.getColumn(), request.getHeight() and request.getWidth() specify a valid region on all affected units.
- request.getTargetRow(), request.getTargetColumn(), request.getHeight() and request.getWidth() specify a valid region on all affected units.
- Specified by:
copyVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by CopyVideoRegion.- Throws:
jpos.JposException
- For details, see UPOS method CopyVideoRegion.
-
displayData
public DisplayData displayData(int units, int row, int column, int attribute, String data) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of DisplayData method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- row and column are positive values,
- 0 ≤ attribute ≤ 0xff.
- All display units specified by units are online,
- row and column specify a valid coordinate on all affected units.
- Specified by:
displayData
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Units where status has been changed.row
- (Upper) Row where operation shall start.column
- (Left) Column where operation shall start.attribute
- VGA-like attribute parameter, see UPOS specification, chapter Remote Order Display - General Information - Model.data
- Text to be displayed.- Returns:
- DisplayData object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method DisplayData.
-
displayData
Description copied from interface:RemoteOrderDisplayInterface
Final part of DisplayData method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a DisplayData object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by units are online,
- request.getRow() and request.getColumn() specify a valid coordinate on all affected units.
- Specified by:
displayData
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by DisplayData.- Throws:
jpos.JposException
- For details, see UPOS method DisplayData.
-
drawBox
public DrawBox drawBox(int units, int row, int column, int height, int width, int attribute, int bordertype) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of DrawBox method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- row and column are positive values, height ≥ 1 and width ≥ 1,
- 0 ≤ attribute ≤ 0xff,
- bordertype is one of BDR_SINGLE, BDR_DOUBLE or BDR_SOLID.
- All display units specified by units are online,
- row, column, height and width specify a valid region on all affected units.
- Specified by:
drawBox
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.row
- Upper row of the specified region.column
- Left column of the specified region.height
- Height of the specified region.width
- Width of the specified region.attribute
- VGA-like attribute parameter, see UPOS specification, chapter Remote Order Display - General Information - Model.bordertype
- The border type to be drawn.- Returns:
- DrawBox object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method ClearVideoRegion.
-
drawBox
Description copied from interface:RemoteOrderDisplayInterface
Final part of DrawBox method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a DrawBox object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- request.getRow(), request.getColumn(), request.getHeight() and request.getWidth() specify a valid region on all affected units.
- Specified by:
drawBox
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by DrawBox.- Throws:
jpos.JposException
- For details, see UPOS method DrawBox.
-
restoreVideoRegion
public RestoreVideoRegion restoreVideoRegion(int units, int targetRow, int targetColumn, int bufferId) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of RestoreVideoRegion method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- targetRow and targetColumn are positive values,
- 1 ≤ bufferId.
- All display units specified by units are online,
- row and column specify a valid coordinate on all affected units,
- bufferId ≤ VideoSaveBuffers.
- Specified by:
restoreVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.targetRow
- Upper row of target location.targetColumn
- Left column of target location.bufferId
- Number identifying the source video buffer to use.- Returns:
- RestoreVideoRegion object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method RestoreVideoRegion.
-
restoreVideoRegion
Description copied from interface:RemoteOrderDisplayInterface
Final part of RestoreVideoRegion method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a RestoreVideoRegion object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- request.getTargetRow() and request.getTargetColumn() specify a valid coordinate on all affected units.
- request.getBufferId() ≤ VideoSaveBuffers.
- Specified by:
restoreVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by RestoreVideoRegion.- Throws:
jpos.JposException
- For details, see UPOS method RestoreVideoRegion.
-
saveVideoRegion
public SaveVideoRegion saveVideoRegion(int units, int row, int column, int height, int width, int bufferId) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of SaveVideoRegion method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- row and column are positive values, height ≥ 1 and width ≥ 1.
- 1 ≤ bufferId.
- All display units specified by units are online,
- row, column, height and width specify a valid region on all affected units,
- bufferId ≤ VideoSaveBuffers for all specified units.
- Specified by:
saveVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.row
- Upper row of the specified region.column
- Left column of the specified region.height
- Height of the specified region.width
- Width of the specified region.bufferId
- Number identifying the video buffer to use.- Returns:
- SaveVideoRegion object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method SaveVideoRegion.
-
saveVideoRegion
Description copied from interface:RemoteOrderDisplayInterface
Final part of SaveVideoRegion method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a SaveVideoRegion object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- request.getRow(), request.getColumn(), request.getHeight() and request.getWidth() specify a valid region on all affected units.
- request.getBufferId() ≤ VideoSaveBuffers.
- Specified by:
saveVideoRegion
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by SaveVideoRegion.- Throws:
jpos.JposException
- For details, see UPOS method SaveVideoRegion.
-
transactionDisplay
Description copied from interface:RemoteOrderDisplayInterface
Validation part of TransactionDisplay method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- function is one of TD_TRANSACTION or TD_NORMAL.
- No transaction is active.
- A transaction is in progress.
- If AsyncMode is false, the following condition has been checked as well:
- All display units specified by units are online.
- Specified by:
transactionDisplay
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.function
- Transaction control function.- Returns:
- TransactionDisplay object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method TransactionDisplay.
-
transactionDisplay
Description copied from interface:RemoteOrderDisplayInterface
Final part of TransactionDisplay method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a TransactionDisplay object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- Specified by:
transactionDisplay
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by TransactionDisplay.- Throws:
jpos.JposException
- For details, see UPOS method TransactionDisplay.
-
updateVideoRegionAttribute
public UpdateVideoRegionAttribute updateVideoRegionAttribute(int units, int function, int row, int column, int height, int width, int attribute) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of UpdateVideoRegionAttribute method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- function is one of UA_SET, UA_INTENSITY_ON, UA_INTENSITY_OFF, UA_REVERSE_ON, UA_REVERSE_OFF, UA_BLINK_ON, or UA_BLINK_OFF,
- row and column are positive values, height ≥ 1 and width ≥ 1.
If AsyncMode is false, the following conditions have been checked, too:- All display units specified by units are online,
- row, column, height and width specify a valid region on all affected units.
- Specified by:
updateVideoRegionAttribute
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.function
- The attribute command.row
- Upper row of the specified region.column
- Left column of the specified region.height
- Height of the specified region.width
- Width of the specified region.attribute
- VGA-like attribute parameter, see UPOS specification, chapter Remote Order Display - General Information - Model.- Returns:
- UpdateVideoRegionAttribute object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method UpdateVideoRegionAttribute.
-
updateVideoRegionAttribute
public void updateVideoRegionAttribute(UpdateVideoRegionAttribute request) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Final part of UpdateVideoRegionAttribute method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a UpdateVideoRegionAttribute object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- request.getRow(), request.getColumn(), request.getHeight() and request.getWidth() specify a valid region on all affected units.
- Specified by:
updateVideoRegionAttribute
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by UpdateVideoRegionAttribute.- Throws:
jpos.JposException
- For details, see UPOS method UpdateVideoRegionAttribute.
-
videoSound
public VideoSound videoSound(int units, int frequency, int duration, int numberOfCycles, int interSoundWait) throws jpos.JposExceptionDescription copied from interface:RemoteOrderDisplayInterface
Validation part of VideoSound method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- All display units specified by units are online,
- For all affected units, CapTone is true.
- Specified by:
videoSound
in interfaceRemoteOrderDisplayInterface
- Parameters:
units
- Bitwise mask indicating which video unit(s) to operate on.frequency
- Tone frequency in Hertz.duration
- Tone duration in milliseconds.numberOfCycles
- Number of cycles to generate tone.interSoundWait
- Delay between sounds, in milliseconds.- Returns:
- VideoSound object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method VideoSound.
-
videoSound
Description copied from interface:RemoteOrderDisplayInterface
Final part of VideoSound method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a UpdateVideoRegionAttribute object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- All display units specified by request.getUnits() are online.
- For all affected units, CapTone is true.
- Specified by:
videoSound
in interfaceRemoteOrderDisplayInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by VideoSound.- Throws:
jpos.JposException
- For details, see UPOS method VideoSound.
-