Point of sale control device, control method, and storage medium storing a program for a point of sale device
First Claim
1. A control device that can execute an application program and control at least one type of device, comprising:
- a first object that provides the application program with a first interface for each type of device, wherein the control device is a point-of-sale (POS) device and the at least one type of device includes a scanner, a printer, or a peripheral device of the control device;
a second object that provides the first object with a second interface for each type of device, and executes a process by the at least one type of device, wherein the process is executed by a plurality of methods of the second object; and
a third object that executes the process instead of the second object when a first method from the plurality of methods of the second object is called by the first object, and calls the first method of the second object when a second method from the plurality of methods of the second object is called by the first object, wherein the third object is a wrapper for the first interface and the second interface, wherein the wrapper provides one or more processes not provided by the plurality of methods of the second object of the at least one type of device, or provides modifications to the plurality of methods of the second object, thereby providing a new process to the plurality of methods.
1 Assignment
0 Petitions
Accused Products
Abstract
The effort required to develop a device object is reduced. A host computer 10 has objects including a printer CO 21 that provides a POS application program 11 with an interface for each type of device, and a printer SO 22 that provides the printer CO 21 with an interface to each device type and executes a process by device unit. A wrapper SO 30 executes the process instead of the printer SO 22 when at least one of the methods called by the printer CO 21 is called, and then calls a method of the printer SO 22 based on the result of the executed process. When the printer CO 21 calls other methods, the wrapper SO 30 calls the printer SO 22 method.
16 Citations
16 Claims
-
1. A control device that can execute an application program and control at least one type of device, comprising:
-
a first object that provides the application program with a first interface for each type of device, wherein the control device is a point-of-sale (POS) device and the at least one type of device includes a scanner, a printer, or a peripheral device of the control device; a second object that provides the first object with a second interface for each type of device, and executes a process by the at least one type of device, wherein the process is executed by a plurality of methods of the second object; and a third object that executes the process instead of the second object when a first method from the plurality of methods of the second object is called by the first object, and calls the first method of the second object when a second method from the plurality of methods of the second object is called by the first object, wherein the third object is a wrapper for the first interface and the second interface, wherein the wrapper provides one or more processes not provided by the plurality of methods of the second object of the at least one type of device, or provides modifications to the plurality of methods of the second object, thereby providing a new process to the plurality of methods. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A method of controlling a device with a control device that executes an application program and can control at least one type of device, the control method comprising:
-
a first step that calls a method based on data output by the application program through a first object that provides the application program with a first interface for each type of device, wherein the control device is a point-of-sale (POS) device and the at least one type of device includes a scanner, a printer, or a peripheral device of the control device; a second step that executes a process by device unit through a second object that provides the first object with a second interface for each of the at least one type of device, wherein the process is executed by a plurality of methods of the second object; and a third step that, when a first method from the plurality of methods of the second object is called by the first object, executes the process through a third object instead of the second object, and when a second method from the plurality of methods of the second object is called by the first object, calls the method of the second object through the third object, wherein the third object is a wrapper for the first interface and the second interface, wherein the wrapper provides one or more processes not provided by the plurality of methods of the second object of the at least one type of device, or provides modifications to the plurality of methods of the second object, thereby providing a new process to the plurality of methods. - View Dependent Claims (13, 16)
-
-
14. A non-transitory storage medium that stores a program causing a computer that can control at least one type of device to execute an object that provides an interface to an application program, the program causing the computer to function as:
-
a first object that provides the application program with a first interface for each type of device, wherein the control device is a point-of-sale (POS) device and the at least one type of device includes a scanner, a printer, or a peripheral device of the control device; a second object that provides the first object with a second interface for each type of device, and executes a process by the at least one type of device, wherein the process is executed by a plurality of methods of the second object; and a third object that executes the process instead of the second object and calls a method of the second object based on the result of executing the process when a first method from the plurality of methods of the second object is called by the first object, and calls the first method of the second object when a second method from the plurality of methods of the second object is called by the first object, wherein the third object is a wrapper for the first interface and the second interface, wherein the wrapper provides one or more processes not provided by the plurality of methods of the second object of the at least one type of device, or provides modifications to the plurality of methods of the second object, thereby providing a new process to the plurality of methods. - View Dependent Claims (15)
-
Specification