ME 305 Group 6 Documentation
Public Member Functions | Public Attributes | List of all members
printqueue_05.PrintJob Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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

Parameters
dataA short string that the job is containing
timeoutThe number of microseconds before the print job should timeout (ie should no longer be printed)

The documentation for this class was generated from the following file: