ME 305 Group 6 Documentation
|
A print job containing a string of text to print and an optional timeout parameter. More...
Public Member Functions | |
def | __init__ (self, str data, int timeout=0) |
Creates a new PrintJob object. More... | |
Public Attributes | |
data | |
time_scheduled | |
timeout | |
A print job containing a string of text to print and an optional timeout parameter.
A print job should be a short string to avoid taking too long to execute. For longer print strings, break the string into multiple jobs and queue them in order to have faster task execution.
def printqueue_05.PrintJob.__init__ | ( | self, | |
str | data, | ||
int | timeout = 0 |
||
) |
Creates a new PrintJob object.
Creates a new PrintJob object to hold a string of text to be printed by the PrintQueue
data | A short string that the job is containing |
timeout | The number of microseconds before the print job should timeout (ie should no longer be printed) |