Method for carrying out the data transfer between program elements of a process, buffer object for carrying out the data transfer, and printing system
AssigneeOce Printing Systems GmbH
InventorHerman Lankreijer
Life of this patent
Estimating the term…
Abstract
For implementation of a transfer of data between two program elements, a buffer object is provided between and linking the program elements. One of the program elements writes data into the buffer and the other program element reads data from the buffer, thus driving data transfer. The program element writing the data causes the buffer to call the reading program element. The program element reading the data causes the buffer object to call the writing program element.
Claims10
A method for implementation of a transfer of data between program elements of a process, comprising the steps of:
- providing an active buffer object between and linking said two program elements, the buffer object comprising a buffer and control methods, a control method of the buffer object informing a respective one of the linked program elements when the buffer is full or empty, and the two linked program elements comprising one of the program elements for writing data into the buffer and the other program element for reading data from the buffer;
- when the buffer is being filled the writing program element initially driving the data transfer such that via the writing of the data into the buffer it causes the active buffer object to inform the reading program element to indicate that the buffer is full before the reading program element checks the buffer object to determine if the buffer object is full and thereby triggers the reading of the data from the buffer by the reading program element to begin emptying the buffer;
- and
- when the buffer is being emptied the reading program element initially driving the data transfer such that via the reading of the data from the buffer it causes the active buffer object to inform the writing program element to indicate that the buffer is empty before the writing program element checks the buffer object to determine if the buffer object is empty and thereby triggers the writing of the data into the buffer by the writing program element to begin filling the buffer.
A tangible, non-transitory computer-readable medium comprising a computer program for generation of a buffer object for implementation of a transfer of data between program elements of a process, said computer program performing the steps of:
- providing an active buffer object between and linking said two program elements, the buffer object comprising a buffer and control methods, a control method of the buffer object informing a respective one of the linked program elements when the buffer is full or empty, and the two linked program elements comprising one of the program elements for writing data into the buffer and the other program element for reading data from the buffer;
- when the buffer is being filled the writing program element initially driving the data transfer such that via the writing of the data into the buffer it causes the active buffer object to inform the reading program element to indicate that the buffer is full before the reading program element checks the buffer object to determine if the buffer object is full and thereby triggers the reading of the data from the buffer by the reading program element to begin emptying the buffer;
- and
- when the buffer is being emptied the reading program element initially driving the data transfer such that via the reading of the data from the buffer it causes the active buffer object to inform the writing program element to indicate that the buffer is empty before the writing program element checks the buffer object to determine if the buffer object is empty and thereby triggers the writing of the data into the buffer by the writing program element to begin filling the buffer.
A printing system, comprising:
- a printer and a computer connected via a data line with the printer, the computer being designed to transfer print data of a print data stream to the printer such that the print data stream is transferred between program elements of a process;
- and
- the computer having a computer-readable medium comprising a computer program that performs the steps of
- providing an active buffer object between and linking said two program elements, the buffer object comprising a buffer and control methods, a control method of the buffer object informing a respective one of the linked program elements when the buffer is full or empty, and the two linked program elements comprising one of the program elements for writing data into the buffer and the other program element for reading data from the buffer;
- when the buffer is being filled the writing program element initially driving the data transfer such that via the writing of the data into the buffer it causes the active buffer object to inform the reading program element to indicate that the buffer is full before the reading program element checks the buffer object to determine if the buffer object is full and thereby triggers the reading of the data from the buffer by the reading program element to begin emptying the buffer;
- and
- when the buffer is being emptied the reading program element initially driving the data transfer such that via the reading of the data from the buffer it causes the active buffer object to inform the writing program element to indicate that the buffer is empty before the writing program element checks the buffer object to determine if he buffer object is empty and thereby triggers the writing of the data into the buffer by the writing program element to begin filling the buffer.
Dependencies are inferred from the claim text.