Automatic print engine software configuration system

Abstract: A system is provided to allow for automatic configuration of print engine scheduling software in accordance with descriptions of print engine modules. Each print engine module contains a description of itself in a form of module capabilities. When a print engine is formed from such modules, the system composes module capabilities to capabilities of a complete print engine. More particularly, inputs and outputs of capabilities are unified and constraints on their attributes are propagated. This enables derivation of potential outputs of the print engine. The resultant print engine capabilities are directly usable to configure scheduling software. Optionally, the resulting print engine capabilities may be compiled further.

Description: This application pertains to the art of printing machines and more particularly to photoduplication machines such as copiers. Present day machinery, such as photocopiers, is often constructed from pre-fabricated components. Such fabrication allows for mass production of each of the subassemblies of a machine while simultaneously allowing for customization to consumers' needs. Further, a consumer is provided with a means by which he or she may alter or upgrade the capabilities of an existing base unit. Earlier systems for distributed printing and distributed job scheduling may be found in US-A-5,287,194 and US-A-5,363,175. Further, US-A-4,924,320 describes a modular-type image forming system including a laser printer main unit and a plurality of optional units, such as both-side processing unit, a large-quantity paper feeding unit and a mail box unit, each of which is operatively coupled to said main unit through a commonly usable optical fiber cable through a commonly usable connector. Each unit has its own CPU and serial communications between the CPUs of different units may be carried out through the optical cables. The CPU of the main unit may determine the identity of each of the optional units connected thereto through such communications. The main unit also includes an interface circuit through which the main unit is operatively coupled to each of the optional units. The interface circuit includes a port selector which establishes a connection pattern between the main and optional units in accordance with the identity information of each of the optional units connected. US-A-5,124,809 describes an image forming system including a processor, a print engine and optional units. A serial signal line couples the print engine and the optional units. The processor has a command sending function of sending the print engine a command which asks the print engine whether or not the print engine can communicate with each of the optional units. The print engine has a function of managing a variety of information including data relating to status of the optional units, and a function of determining, in response to the command, as to whether each of the optional units is in a communication active state where it can communicate with the print engine on the basis of the managed information and a function of sending the processor a response which indicates information on whether each of the optional units is in the communication active state. One problem with modular assembly of integrated units lies in configuring and optimizing use of a completed system. While this is a concern for the manufacturer of an initial unit, it is perhaps an even greater concern to the end user since they are often technically unsophisticated. However, end users are driven by a desire to increase the capability of a machine while maintaining the value of their initial investment. They are also dissuaded from expenses associated with hiring a professional to upgrade or configure existing equipment. To the extent earlier systems hoped to achieve automatic scheduling of print engine capabilities, such was accomplished only if a developer knew the particulars of a print engine beforehand. Even if individual modules were used, their interactions had to be analyzed and the resulting print engine information was generally not reusable. Hence, it is the object of the invention to provide a system and a method for automatically configuring scheduling software for overcoming the above-referred and others problems, that provide enhanced usability and configurability both before and after the machine leaves the factory. This object is solved by the system as claimed in independent claim 1 and the method as claimed in independent claim 4. Preferred embodiments of the invention are subject-matters of dependent claims. In accordance with an aspect of the present invention, there is provided a system for automatically configuring print engine scheduling software from descriptions of various individual modular machine components. In accordance with another aspect of the present invention, a system is provided for integrating such generic component descriptions so as to allow for automatically recognizing a presence of one or more subassemblies and communicating their various functional descriptions to a centralized processor unit for generating a software schedule. The present invention provides an print engine automatic configuration system comprising receiver means adapted to receive data representative of at least one associated print engine module, each print engine module having associated therewith an individualized set of module capabilities representative of print functions accomplishable thereby; the receiver means including at least one data port adapted to be placed in data communication with each associated print engine module; a data processor including a data storage and a processor unit, the data processor being in data communication with each data port; and the receiver means further including means adapted to receive module capability data representative of the module capabilities of each associated print engine module into a data port. The invention further provides a print engine automatic configuration system, comprising at least one print engine module, each print engine module having associated therewith module capability data representative of a set of print functions accomplishable thereby; a data processor including a data storage, a processor, the data processor being in data communication with each print engine module so as to receive module capability data representative of the module capabilities of each print engine module into at least one data port, which module capability data includes, input description data I defining a set of input work unit description and an interval and a port representative of allowable inputs at each data port, output description data O defining a set of an output work unit description and an interval and a port representative of allowable outputs at each data port, resource allocation data R representative of resource allocations or interval constraints required for specified print engine function, and itinerary data C representative of a sequence of operations required by a module to accomplish an associated capability; and the data processor including composing means for composing recursively the module capability data associated with sets of two print engine modules. The composing means preferably further includes means for testing an output of the means for unifying to determine whether unification was successful. The composing means preferably further includes means for generating a composed output <I 3 ,O 3 ,R 3 ,C 3 > wherein: I 3 is set to I 1 + I 2 without the work unit description and associated interval in I 2 unified at port p; O 3 is set to O 1 + O 2 without the work unit description and associated interval in O 1 unified at port p; R 3 is set to R 1 joined R 2 ; and C 3 is set to C 1 concatenated with C 2 . The invention further provides a print engine automatic configuration system, comprising receiver means adapted to receive data representative of at least one associated machine module, each machine module having associated therewith an individualized set of module capabilities representative of machine functions accomplishable thereby; the receiver means including at least one data port adapted to be placed in data communication with each associated machine module; a data processor including a data storage and a processor unit, the data processor being in data communication with each data port; and the receiver means further including means adapted to receive module capability data representative of the module capabilities of each associated machine module into a data port. The module capability data preferably further includes: input work unit description data representative of allowable inputs at each of the plurality of data ports; output work unit description data representative of allowable outputs at each data port; resource allocation data representative of resource allocations or interval constraints required for specified modular machine function; and itinerary data representative of a sequence of operations required by a module to accomplish an associated capability. The data processor preferably includes a scheduler comprising: means for acquiring the module capability data from each associated machine module; and composing means for composing composite module capability data from all module capability data acquired thereby. The composing means preferably includes means adapted for recursively composing module capability data of two associated machine modules for each connected pair thereof. The invention further provides a modular machine automatic configuration system, comprising at least one machine module, each machine module having associated therewith module capability data representative of a set of machine functions accomplishable thereby; a data processor including a data storage, a processor, the data processor being in data communication with each machine module so as to receive module capability data representative of the module capabilities of each machine module into at least one data port, which module capability data includes, input description data I defining a set of input work unit description and an interval and a port representative of allowable inputs at each data port, output description data O defining a set of an output work unit description and an interval and a port representative of allowable outputs at each data port, resource allocation data R representative of resource allocations or interval constraints required for specified modular machine function, and itinerary data C representative of a sequence of operations required by a module to accomplish an associated capability; and the data processor including composing means for composing recursively the module capability data associated with sets of two machine modules. The the composing means preferably includes, for each set of two machine modules connected at a port p having respective module capability data <I 1 ,O 1 ,R 1 ,C 1 > and <I 2 ,O 2 ,R 2 ,C 2 >, means for unifying an output work unit description and an associated interval for port p in O 1 to an input work unit description and associated interval for port p in I 2 such that attribute constraints associated with module capability data <I 1 ,O 1 ,R 1 ,C 1 > are exchanged with module capability data <I 2 ,O 2 ,R 2 ,C 2 >. The composing means preferably further includes means for testing an output of the means for unifying to determine whether unification was successful. The the composing means preferably further includes means for generating a composed output <I 3 ,O 3 ,R 3 ,C 3 > wherein: I 3 is set to I 1 + I 2 without the work unit description and associated interval in I 2 unified at port p; O 3 is set to O 1 + O 2 without the work unit description and associated interval in O 1 unified at port p; R 3 is set to R 1 joined R 2 ; and C 3 is set to C 1 concatenated with C 2 . The invention further provides a method for automatically configuring a print engine comprising the steps of: receiving, into at least one data port, module capability data set representative of print functions accomplishable by each of at least one print engine module, which module capability data includes, input description data I defining a set of input work unit description and an interval at a port representative of allowable inputs at each of data port, output work unit description data O defining a set of output work unit description and an interval at a port representative of allowable outputs at each data port, resource allocation data R representative of resource allocations or interval constraints required for specified print engine function, and itinerary data C representative of a sequence of operations required by a module to accomplish an associated capability; communicating the module capability data from the at least one data port to a data processor including a data storage and a processor unit; and for each pair of module capability data sets directed to a data port, testing for unification compatibility between the pair of data sets, and selectively generating a composite module capability data set from the pair of data sets. Preferably, the step of selectively generating further comprises the steps of: recursively unifying each pair of print engine modules connected at a port p having respective module capability data <I 1 ,O 1 ,R 1 ,C 1 > and <I 2 ,O 2 ,R 2 ,C 2 >, such that an output work unit description and associated interval for port p in O 1 is unified with an input work unit description and associated interval for port p in input I 2 and attribute constraints of module capability data <I 1 ,O 1 ,R 1 ,C 1 > are propagated to module capability data <I 2 ,O 2 ,R 2 ,C 2 >. Preferably, the step of selectively generating further comprises the step of generating a composed output <I 3 ,O 3 ,R 3 ,C 3 > wherein: I 3 is set to I 1 + I 2 without the work unit description and associated interval in I 2 unified at port p; O 3 is set to O 1 + O 2 without the work unit description and associated interval in O 1 unified at port p; R 3 is set to R 1 joined R 2 ; and C 3 is set to C 1 concatenated with C 2 . The invention further provides a method for automatically configuring a modular machine, comprising receiving, into at least one data port, module capability data set representative of machine functions accomplishable by each of at least one machine module, which module capability data includes, input description data I defining a set of input work unit description and an interval at a port representative of allowable inputs at each of data port, output work unit description data O defining a set of output work unit description and an interval at a port representative of allowable outputs at each data port, resource allocation data R representative of resource allocations or interval constraints required for specified modular machine function, and itinerary data C representative of a sequence of operations required by a module to accomplish an associated capability; communicating the module capability data from the at least one data port to a data processor including a data storage and a processor unit; and for each pair of module capability data sets directed to a data port, testing for unification compatibility between the pair of data sets, and selectively generating a composite module capability data set from the pair of data sets. Preferably, the step of selectively generating further comprises the steps of: recursively unifying each pair of machine modules connected at a port p having respective module capability data <I 1 ,O 1 ,R 1 ,C 1 > and <I 2 ,O 2 ,R 2 ,C 2 >, such that an output work unit description and associated interval for port p in O 1 is unified with an input work unit description and associated interval for port p in input I 2 and attribute constraints of module capability data <I 1 ,O 1 ,R 1 ,C 1 > are propagated to module capability data <I 2 ,O 2 ,R 2 ,C 2 >. Preferably, the step of selectively generating further comprises the step of generating a composed output <I 3 ,O 3 ,R 3 ,C 3 > wherein: I 3 is set to I 1 + I 2 without the work unit description and associated interval in I 2 unified at port p; O 3 is set to O 1 + O 2 without the work unit description and associated interval in O 1 unified at port p; R 3 is set to R 1 joined R 2 ; and C 3 is set to C 1 concatenated with C 2 . In accordance with another aspect of the present invention, the system provides for an environment adapted for efficient, automated scheduling of a plurality of print jobs of various or varying characteristics. An advantage of the present invention is the provision of a printing machine model that is conducive to be easily and automatically configured to various or varying subassemblies. Another advantage of the present invention is the provision of a printing machine that is adapted to be readily configured to achieve maximum potential by an enduser. Yet another advantage of the present invention is a provision of a printing machine that maximizes printing throughput by being adapted for efficiently scheduling and utilizing modular subassemblies in accordance with user-specified print jobs. Further advantages will become apparent to one of ordinary skill in the art upon a reading and understanding of the subject specification. The invention may take physical form in certain parts, and arrangements of parts, in a preferred embodiment which will be described in detail in this specification and illustrated in the accompanying drawings which form a part hereof, and wherein: FIGURE 1 provides a schematic of a representative, modular printing machine incorporating the automated configuration and scheduling of the subject invention; FIGURE 2 provides a flow chart detailing the hierarchical ordering of operations to accomplish the configuration and scheduling of the present invention; FIGURE 3 provides a diagram of a representative, generic description of a print machine component as used in connection with the subject, automated scheduling and configuration of the subject invention; FIGURE 4 is a block diagram depicting interaction of scheduler and control code using resources as provided in the subject invention; and FIGURE 5, is a block diagram of the subject system in which print engine capabilities are composed from module capabilities. The invention is particularly applicable to a system for automatic configuration of print engine scheduling software from descriptions of print engine modules. The system allows for automated scheduling of printing jobs pursuant to the capabilities associated with modular components forming a printing machine, and will be described with particular reference thereto. However, it will be appreciated that the invention has broader applications, such as in providing for an automated assessment of machine capabilities in view of modular components, and utilizing specific jobs in an efficient manner. Turning now to the drawings wherein the purpose is for illustrating the preferred embodiment of the invention only, and not for the purpose of limiting the same, FIGURE 1 illustrates an embodiment of the subject invention having a modular print engine A which includes a plurality of modules or subassemblies B and a dataprocessor unit for configuration and scheduling C. As used herein "print engine" includes any reprographic machine, such as printers, copiers, facsimile machines, and the like. As will be detailed below, various capabilities provided with each of the modules B are ascertained and correlated in the data processor unit C. Such correlated and analyzed data is further analyzed in view of user input defining a desired printer operation, or series of operations. This is, in turn, used to optimize, schedule, and control operation of the printing machine to most efficiently accomplish the series of printing tasks. The subject system is described by way of example with a copier machine. It will be appreciated that generic description, resource assessment and scheduling may be practicable on any modular, material handling system. With the particular example of FIGURE 1, the modules B are illustrated as including a plurality of paper storage bins. In the illustration, these include bins 10, 12, and 14. The plurality of bins may be representative of different paper sizes or secondary or reserved storage capability. A sheet feeder mechanism is illustrated schematically at 16. As will be appreciated by one of ordinary skill in the art, a sheet feeder such as that illustrated at 16 will function to obtain sheet stock from one or more of the bins. The feeder 16 will feed sheet stock to a conveyor 18. The conveyor will, in turn, feed sheet stock to a print mechanism 20, the particular construction of which will be well within the understanding of one of ordinary skill in the art. Also illustrated in the figure is an inverter mechanism 30 that may selectively invert or flip sheet stock that progresses along the conveyor 18. A feedback-unit 32 is provided for returning sheet stock to the printer mechanism 20 for duplex printing thereof. In the illustration, the conveyor 18 provides a path to a stapling mechanism 34 for selective stapling of printed documents. The final, illustrated component in the group of modules B illustrates a plurality of output bins represented by bins 38 and 40. Turning to the data processor unit C, included therein is a data input/output ("I/O") unit 40 which is in data communication with a central processor unit ("CPU")/storage scheduling unit 42, the details of which will be described further below. A data path is provided between the data I/O unit 40 and each of the modules B. In the preferred embodiment, each module B includes therein a description associated with various functions and capabilities thereof. The particulars of such a generic description will be detailed below. The data path between each of the illustrated modules and the data I/O unit allows for acquisition to the data processor unit C of all such description. In the preferred embodiment, any module B will communicate its associated description to the data I/O unit upon connection to the modular print engine A. This ability allows for "plug-and-play" capability of the subject system. Data interconnections between the data I/O unit 40 of the data processor C and the various modules B also allow for controller activation thereof. Thus, the data processor unit C has ascertained from the available modules the complete set of capabilities of the modular print engine A. This information, coupled with user input 44 to the data I/O unit 40 allows for efficient scheduling of available, modular resources to accomplish a series of printing jobs by use of the available components. Turning next to FIGURE 2, the basic format for generic print engine description and scheduling will be described. As alluded to earlier, past attempts for automated print engine scheduling software were based on an analysis of a complete engine configuration. The results of this analysis are required for writing of dedicated software specific to a particular configuration. Conversely, the subject system provides for separation of scheduling software into two parts. In a first part, a scheduler architecture is provided with generic algorithms. In a second part, machine-specific information is also provided in a format detailed below. Given a document to be printed on a given print engine, a scheduler is provided which serves to identify, schedule, and initiate machine operations for producing a document. In the illustration of FIGURE 1, such operations may include feeding of sheets, moving of sheets, preparation of images, transferring of images to sheets, etc. It will be appreciated that a document to be printed typically arrives incrementally (e.g., sheet-bysheet). Scheduling and schedule execution (printing) usually happen concurrently. As a consequence, machinespecific information used by a scheduler is advantageously structured such that the scheduler is able to identify which operations will produce the required sheet. Further, the system must be aware of constraints which must be observed when scheduling operations. Additionally, the system is provided with a means by which it may send appropriate commands to the modules to allow them to accomplish their available functions. In the diagram of FIGURE 2, the particular system for preparing the machine-specific information is depicted. The system commences by using declarative descriptions (models) of printing engine modules in block 100. Such a model advantageously contains a description of a module's structure and potential behavior of its components. As noted in the example of FIGURE 1, possible components include feed trays, transport belts, transfer components, inverters, gates, etc. Potential behaviors may be, by way of example, either bypassing an inverter or using it to invert a sheet. The step of modeling is typically performed by an engineer using a modeling language. The details of a preferred embodiment for modeling will be provided below. At block 102, a module has already been modeled by its components. Next, an automatic derivation of potential behaviors of an entire module is then fabricated from information obtained from the component models. This derivation may be performed, by way of example, by simulation or partial evaluation, and by envisionment. Simulation is commonly understood as the execution of models to mirror the execution of the real system. Partial evaluation is commonly understood as the partial execution of programs, leaving certain parts of the programs unexecuted and to be evaluated at a later time. Envisionment is commonly understood as the exploration of all potential behaviors of a system by, for example, repeatedly and in various ways exercising simulation or partial evaluation of its models. The resulting module behavior is comprised of an output produced by a particular behavior, inputs from which the output is produced, individual operations required to produce it (its "itinerary"), as well as various constraints on resources and timings to be observed when performing the operations. Some or all of this information may advantageously be precompiled. By way of example, this may be compiled to finite-state machines. When print engine modules B (FIGURE 1) are plugged together to form a new configuration, different module behaviors are collected and automatically composed via the data processor unit C to generate potential behaviors of a complete print engine A. The afore-noted composition is also suitably enabled to occur dynamically, i.e., each time a behavior is to be selected by the scheduler, it composes module behaviors on-the-fly. Thus, a composition may be done only once (after modules are first plugged together), or each time they are needed. The latter option has an advantage of accounting for dynamic module changes. Thus, the system may complete the FIGURE 2 sequence each time a machine behavior is selected. It may be prohibitive to do so due to the time-consuming computations. However, this may be a more efficient approach in specific circumstances. In block 104, the afore-noted, overall behavior is advantageously modeled in a format similar to that associated with the individual module behavior noted above. Per distinct overall behavior, the system provides an output description (for behavior identification), resource and timing constraints (for sequencing), and data comprising an itinerary (for subsequent control of machine operations). Next, a portion of machine behavior information is advantageously compiled for efficient use in a matching scheduler algorithm at which point the system progresses to block 106. By way of example, a compilation of potential interactions of timing and resource constraints may be made to a finite-state machine. An example of finite-state machine scheduling may be found in European patent application No. 96 302 570.5. At block 108, a full set of compiled behaviors has been obtained. Lastly, at block 110, an output description of machine behaviors is used by a generic scheduler to identify behaviors that will produce an output document given the original constraints (either in original or compiled form). These are used to find a correct timing for each particular behavior's operation and itineraries which are used to initiate necessary operations of the modules B. While the afore-going description is provided by way of a preferred embodiment, it will be appreciated that not all of the steps are required to provide a usable system. For example, only a portion of the components need to be modeled and only a portion of the constraints need to be compiled. With the system described above, modular ("plug-and-play") scheduling of print engine modules is facilitated. The system also allows for reuse of scheduling software for a wide range of configurations. It also provides for automating all steps but that of obtaining the initial description of the discrete modules forming the machine and for development of the generic scheduling algorithms. Turning now to FIGURE 3, a particular system for modeling component behavior will be described. The particular system of the preferred embodiment describes print engine component behavior for print engine analysis, simulation, and scheduling. As noted above, the basic, generic description method is equally applicable to a variety of other modular systems. In the subject description method, structure and behavior of components is described in terms of the capabilities (potential operations) for which constraints on work units, timings, and resources are stated. This modeling system enables structural and behavioral composition of components for analysis and simulation of component interactions in print engines. The system is particularly applicable for scheduling the operation of modular print engines. With the subject scheme, one may describe print engine components such that print engines fabricated therefrom may be described by composing component descriptions. Further, various applications may be performed automatically on a resulting print engine description. This enables one to automatically use such information for analysis, simulation, scheduling, and related print engine applications. In the illustrated example of FIGURE 3, descriptions associated with an inverter 150, analogous to the inverter 30 of FIGURE 1, are provided with model 150'. Components of a modeled structure and their behavior are determined by both the physics of the component itself and an application context in which a model is used. In the system, a structure model of a component is defined as consisting of its physical interface, software interface and internal resources. For example, a physical interface is an input port 152 along which work units (sheets) enter and a port 154 from which said work units exit. An associated software interface functions primarily for control commands and parameters. Internal resources are defined as objects needed to perform a particular behavior where multiple uses of the object by repeated execution of the behavior is restricted. By way of example in FIGURE 3, a resource is defined as the position of an associated gate 156. Another example of a resource is a space 158 between opposing output rollers 160 of the inverter 150, particularly illustrated at 150'. Here, as with most points of the paper path, there is sufficient space for only one sheet at any single point in time. Thus, the space 158 is defined as a resource. A behavior model of a component is utilized to describe capabilities of the particular component in terms of how the component may work on work units moving through the component. Further, the behavior dictates what constraints must be observed when performing the associated behavior. A component capability is defined as consisting of a description of work units and a transformation of work units, timed events like the input and output of a work unit, of resource allocations for this transformation, and of constraints on the timing of such events and resource allocations. Work units are advantageously described in terms of their attributes. Restrictions and transformations of work units are advantageously described in terms of constraints on their attributes. In FIGURE 3, some additional model descriptions are provided. These include a description associated with a particular work unit, such as a sheet illustrated at 164. A control situation, such as to whether or not to by-pass the inverter 150 or utilize it for inversion is illustrated at 166. A timing parameter, such as a specification of path length and roller speed is provided at 168. By way of example, associated timing constraints are suitably obtained using a formula based on path length and roller speed, e.g., time out may be defined as time in plus path length, divided by roller speed. Certain values are also suitably parameters of the model, e.g., the path length of a given inverter is fixed, while roller speed may vary and may therefore be set by the environment with respect to a model that is used. A roller speed parameter is illustrated at 170. By way of particular example, the following listing provides a suitable model of an inverter as depicted in connection with FIGURE 3: This model declares two parameters (length and speed), one entry port (in), one exit port (out), three resources (inR, outR and gateR, of types Signal respectively State), and six variables (of types Sheet and Interval). Then the model defines two capabilities (bypass and invert). For capability bypass, it is defined that a sheet s enters at time t_in and exits at time t_out, that allocations in all three resources are made at the respective intervals t_in, t_out and t_gate, and that various timing constraints reflecting the traveling time from entry to exit hold between the intervals. Capability invert is defined similarly, except that the sheet changes its orientation by 180° (rotated around the y axis), and that the traveling time is longer (proportional to the sheet's size). Thus, it will be appreciated that a complete and functional description of any component may be similarly provided. With the disclosed modeling system, a component structure is described without relying on any reference to descriptions of or interactions with other components. Such component behavior is described on one work unit without other units. Further, the disclosed modeling system enables automatic behavioral composition of component capabilities for generic and incremental analysis, simulation, and scheduling of print engines. This description format allows automatic structural composition of component models to models describing connected components (for example, print engine modules). Conversely, earlier approaches had their capabilities and constraints expressed in terms of both specific interactions between components and interactions between sequences of sheets or images. This renders them more difficult to define, renders them non-reusable, and further renders them non-compositional. The system modeling format allows for the automatic configuration, optimization, and scheduling described above. As will be appreciated from the foregoing, scheduling a print engine means, to a large part, is a scheduling of associated resources. To do this effectively, one must model the resources used by a print engine operation such that information may be used for incremental scheduling of valid sequences of those operations. Besides being applicable to a wide range of print engine operations, resources may also suitably serve as generic interfaces between a scheduler and the rest of the print engine control software for purposes of communicating changes in the machine. Components of a machine, such as a print engine, will usually require resources to perform their capabilities. By way of example particular to a printing machine, a resource may be a space on a belt, a gate that must be in a certain position, or some element that is being placed to multiple or overlapping uses. One may view the capacity of a bin of paper as being one instance of such multiple or overlapping uses. Allocations of resources are suitably modeled explicitly as a part of a description of a component's behavior. As used herein, resource allocation is defined as a specification of a resource requirement, together with a time interval during which a particular resource is required. Again, by way of example, an imaging capability requires space on a photoreceptor belt for a certain amount of time. As another example, an invert capability requires an inverter gate to be in a correct position while a sheet is being inverted. As defined herein, a resource requirement is chosen to depend on a particular type of resource. Possible resource types include such items as Boolean resources (resources which are either used or not used), enumerated or state resources (which are placed in one of the available states), capacity resources (where concurrent uses add up), and the like. Such resource types are advantageously described generically by resource constraints. Resource constraints, themselves, determine consistency for multiple allocations for the same resource. By way of example, Boolean resource allocations, such as space on a belt, must not overlap in time. Conversely, state resource allocations may overlap if they require the same state. Capacity resource allocations may overlap if the sum of the requirements never exceeds the given capacity. Such resource types may be extended easily by changing or adding to the afore-noted resource constraints. Time intervals of resource allocations may suitably be connected by interval constraints. As defined herein, a resource constraint system and an interval constraint system are orthogonal to one another. A description of resource allocations and timing constraints fit well into a compositional modeling paradigm for scheduling. Once all components have been fully modeled, a print engine will ultimately be moved to a run time state. Turning particularly to FIGURE 4, evidenced therein is a scheduler 200 which is in data communication with a representative print engine module 202. The print engine module 202 is, in turn, comprised of several components, each using resources selectively disposed along a paper/image path 204. Such resources are exemplified by those components respectively, their resources 210, 212, 214, 216, 218, and 220. Each of these resources is suitably described in the same fashion, a representative one of which is detailed at 216'. A system includes a control code portion 220, a component/models portion 222, and various communication paths. The control path 224 allows for passing of control commands from the control code portion 220 to the component/models portion 222. Similarly, a sensor path 226 allows for communication of sensor data in the opposite direction. A path 228 represents the scheduled use of resources by the component; more precisely, it stands for the communication of knowledge from the model 222 describing the component to the scheduler, where this knowledge is used to schedule correct uses of the resource. A path 230 allows for control and sensor information to be similarly communicated to the scheduler 200. At run time, when scheduling operations, the scheduler 200 instantiates the interval such that the corresponding allocations for the same resources satisfy required resource constraints. This is also suitably done incrementally by keeping track of past resource allocations. During a normal operation the scheduler 200 takes into account only its own allocations. To do this, it uses its model of the system to predict a use of resources for operations it has scheduled. That system is also readily adaptable to a reallife, reactive environment wherein resources sometimes become unavailable or become restricted to a subset of the normal capacity. Such variations in real hardware are typically monitored by a module's control software disposed, in the example, in the control code portion 220. It will be appreciated that in earlier systems, the control software was required to have a special interface to the scheduler in order to communicate deviations between modeled and real hardware or to allow for a scheduler to have access to data of the controlled software. Resource management within the scheduler 200 is suitably made accessible to an environment. More specifically, it is made available to the component control code as represented by 220. As with the scheduler 200, the control code 220 is then suitably enabled to make for calculations in such resources to reflect changes in the hardware. In turn, this enables the scheduler 200 to automatically take system changes into account. The foregoing models are used to define a default behavior (resource allocations) of component capabilities. Meanwhile, the control code itself dynamically adapts that behavior to reflect a current situation. This is suitably extended even further if an environment is allowed to change the resource constraints. In general, this means that control software is seen as controlling resources (starting from a default definition), while a scheduler is using those resources. In an actual on-line implementation, a scheduler will advantageously make such future allocations automatically and take them into account. When the scheduler looks ahead to make further allocations, allocations are suitably tagged with different priorities depending on whether they come from the scheduler 200 (respectively models 222) or from the control code 220. With this, any allocations by the scheduler that are inconsistent with allocations by an environment are suitably identified automatically and may be redone. The subject system provides generic scheduling of software associated with print enginespecific information. This is provided even if a print engine has been composed by a customer from individual print engine modules. The system builds on a description of print engine modules which has been made in accordance with module capabilities. As used herein, a module capability is essentially a potential module output. For example, a module output produced by a module capability of a print engine module may be a sheet of size A4 having two images placed on it and being delivered face-down. More particularly, module capability may be considered a trace of a production of a particular output. This suitably contains descriptions of both input and output work units at module ports. Turning particularly to FIGURE 5, a representative print engine 250 includes modules 252, 254, and 256 which are connected at ports 270 and 272, respectively. These modules are provided with illustrated capabilities 260, 262, and 264, respectively. The illustration further provides data communication paths 274, 274', and 274" for modules 252, 254, and 256 to report their capabilities to the print engine control software. By way of particular example, the illustration provides that module 252 contains input trays 280. The module 254 contains a photoreceptor 282 and a duplex feedback mechanism 284. The module 256 provides output trays 286. A module capability suitably contains a description of both input and output work units associated with the module entry and exit ports, respectively. Resource allocations are required for a desired production and an itinerary through which an output is produced. Work units are suitably described by constraints on their attributes. Resource allocations are stated together with constraints on their time intervals. A module's resource allocations may suitably exist in compiled form. For example, resource allocations may exist as possible variations of allocations in a finite-state machine. For the purpose of illustration, let <I, O, R, C> reflect a particular capability with inputs I, output O, resource allocations R, and an itinerary C. When modules forming a new print engine are plugged together and the engine is started up, the scheduler or another connected software component configures itself by collecting and composing module capabilities 290 which are obtained from all modules from a print engine via connections 274, 274', and 274". Module capabilities are composed to machine capabilities by recursively composing module capabilities of two machine modules connected at a port. For example, if first and second modules are connected at port p, then for every module capability <I 1 ,O 1 ,R 1 ,C 1 > of a first module that produces an output at p (defined by O 1 ), and for every module capability <I 2 ,O 2 ,R 2 ,C 2 > of a second module that expects an input at p (defined in I 2 ), the capabilities are suitably composed if a respective input and output in O 1 and I 2 can be unified. Attribute constraints are propagated in the process. For example, if O1 restricts the sheet size, this is propagated via I 2 to the second capability. Upon successful unification, composite capability <I, O, R, C> is generated by setting I to I 1 + I 2 without port p's input in I 2 , O to O 2 , R to R 1 joined to R 2 , and C to C 1 concatenated with C 2 . This composition of module capabilities will be performed until a resulting capability contains only inputs and outputs that are not inputs and outputs at ports between modules (there are no further module capabilities that are connected to the inputs or outputs). Such a resulting capability is a print engine capability. As modules typically have several distinct capabilities, each composition of module capabilities will be performed for all alternatives, resulting in a multitude of print engine capabilities. For example, if each module in FIGURE 5 has two capabilities, the complete print engine has potentially eight capabilities, or less if the inputs of some module capabilities cannot be unified with the outputs of other module capabilities. It will be appreciated that this method also works for circular paths, where the same work unit moves (possibly through several modules) back to the same port one or more times, as long as its attributes are uniquely changed each time, and there is only a finite number of accepted attribute values in inputs and/or outputs. Such composition of module capabilities may be performed efficiently. This is especially important insofar as print engine start-up time is ideally very low. A particular advantage of this system is that it produces a description of a module print engine that enables the scheduler at run time to generically schedule operations in the print engine's modules. Through propagation of work unit attribute constraints and composition of resource allocations with timing constraints, the scheduler is guaranteed to allow only correct interactions between modules. For example, if delays between sheets are required in a finisher module, the system will suitably and automatically propagate this to all previous modules as required. As noted earlier, this is in contrast to former approaches wherein potential interactions between print engine modules must be known at the time the scheduling software is developed. As a variation, the composition of module capabilities is not performed when the print engine is started up, but each time a complete print engine capability has to be identified by the scheduler. In this case, the method described above is suitably performed backwards through the modules, starting with an attribute description of a desired output at a print engine exit port, and matching that output description against output descriptions of module capabilities producing outputs at that port. The method will then again unify inputs of selected module capabilities with outputs of connected, previous module capabilities. If an input cannot be unified with an output of a connected, previous module capability (i.e. the desired input cannot be produced by the previous module), the method backtracks and tries alternative module capabilities. Such composition is done until all inputs of the resulting capability are inputs of the print engine. The resulting capability is a print engine capability able to produce the desired output. The remaining data, resource, timing, and itinerary information, are composed as described above and can then be used for the correct scheduling and execution of the resulting capability. This invention has been described with reference to the preferred embodiment. Obviously, modifications and alterations will occur to others upon a reading and understanding of the specification.

Claims: A print engine automatic configuration system comprising: receiver means (C: 40) adapted to receive description data representative of associated print engine modules (B; 202; 252, 254, 256), each print engine module (B; 202; 252, 254, 256) being described independent of reference to descriptions of or interactions with other print engine modules (B; 202; 252, 254, 256), and each print engine module (B; 202; 252, 254, 256) having associated therewith an individualized set of module capabilities (260, 262, 264) representative of print functions accomplishable thereby; the receiver means (C: 40) including at least one data port (274, 274', 274") adapted to be placed in data communication with each associated print engine module (B; 202; 252, 254, 256); a data processor (B: 42) including a data storage, a processor unit, and a generic scheduler (200), the data processor (B: 42) being in data communication with each data port (274, 274', 274"), and the generic scheduler (200) being configured without print engine module specific information; and the receiver means (C: 40) further including means adapted to receive module capability data representative of the set of module capabilities (260, 262, 264) of each associated print engine module (B; 202; 252, 254, 256) into the associated data port, wherein the module capability data include: input work unit description data representative of allowable inputs at each of the plurality of data ports, output work unit description data representative of allowable outputs at each data port, resource allocation data (156, 158) representative of resource allocations or interval constraints required for a specified print engine function, and itinerary data representative of a sequence of operations required by the modules (B; 202; 252, 254, 256) to accomplish an associated capability. The print engine automatic configuration system of claim 1 wherein the generic scheduler (200) includes: means for acquiring the module capability data from each associated print engine module (B; 202; 252, 254, 256); and composing means for composing composite module capability data from all module capability data acquired thereby. The print engine automatic configuration system of claim 2 wherein: the composing means includes: means adapted for recursively composing module capability data of two associated print engine modules for each connected pair; and the generic scheduler (200) is adapted to schedule operation of an overall print engine operation in accordance with the recursively composed module capability data. A method for automatically configuring a modular machine (A;250), comprising: receiving, into at least one data port (274, 274', 274"), module capability data sets representative of machine functions accomplishable by associated machine modules (B; 202; 252, 254, 256), each of which have been described independent of reference to or interactions with other modules (B; 202; 252, 254, 256), and whose module capability data include: input work unit description data I defining a set of input work unit descriptions and an interval at a port representative of allowable inputs at each data port, output work unit description data O defining a set of output work unit descriptions and an interval at a port representative of allowable outputs at each data port, resource allocation data R (156, 158) representative of resource allocations or interval constraints required for a specified modular machine function, and itinerary data C representative of a sequence of operations required by a machine module (B; 202; 252, 254, 256) to accomplish an associated capability; communicating the module capability data from the at least one data port (274, 274', 274") to a data processor (44) including a data storage, a processor unit, and a generic scheduler (200) configured without print engine specific information; and for each pair of module capability data sets directed to a data port, testing for unification compatibility between the pair of data sets, and selectively generating a composite module capability data set from the pair of data sets whereby the generic scheduler (200) schedules operation of the machine modules (B; 202; 252, 254, 256) in accordance with the composite module capability data set. The method of claim 4 wherein the step of selectively generating further comprises: recursively unifying each pair of machine modules connected at a port p having respective module capability data <I 1 , O 1 , R 1 , C 1 > and <I 2 , O 2 , R 2 , C 2 >, such that an output work unit description and associated interval for port p in O 1 is unified with an input work unit description and associated interval for port p in input I 2 and attribute constraints of module capability data <I 1 , O 1 , R 1 , C 1 > are propagated to module capability data <I 2 , O 2 , R 2 , C 2 >. The method of claim 5 wherein the step of selectively generating further comprises: generating a composed output <I 3 , O 3 , R 3 , C 3 >, wherein: I 3 is set to I 1 + I 2 without the work unit description and associated interval in I 2 unified at port p; O 3 is set to O 1 + O 2 without the work unit description and associated interval in O 1 unified at port p; R 3 is set to R 1 joined R 2 ; and C 3 is set to C 1 concatenated with C 2 .

Inventors: FROMHERZ MARKUS P J, FROMHERZ, MARKUS P. J.
Applicants: XEROX CORP, XEROX CORPORATION
Application year: 1996
Main classification: G05B19
IPC codes: H04N1, G05B19, B41J29, G06F3