Class DelayedPrintJob

java.lang.Object
  |
  +--Event
        |
        +--DelayedPrintJob
All Implemented Interfaces:
Comparable

public class DelayedPrintJob
extends Event

Represents when a print job that has been delayed should actually start printing.

Version:
Mar 3, 2005
Author:
Zach Tomaszewski

Fields inherited from class Event
time
 
Constructor Summary
DelayedPrintJob(int time, StartPrintJob job)
          Creates a event signalling that a job has been delayed for some time but should now start printing.
 
Method Summary
 StartPrintJob getOriginalJob()
          Returns the original print job that had been delayed until this event.
 int getWait()
          Returns the time difference between this delayed event and its contained "original start" event.
 
Methods inherited from class Event
compareTo, equals, getTime, toString
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelayedPrintJob

public DelayedPrintJob(int time,
                       StartPrintJob job)
Creates a event signalling that a job has been delayed for some time but should now start printing.
Parameters:
time - The time to actually start printing this job
job - The job as orignally sent
Method Detail

getOriginalJob

public StartPrintJob getOriginalJob()
Returns the original print job that had been delayed until this event.

getWait

public int getWait()
Returns the time difference between this delayed event and its contained "original start" event.
Returns:
how long the contained StartPrintJob has been waiting (delayed).