/******************************************************** Job.h CMSC-341 Spring 2004 Project 2 Spencer Shimko, Section 001, sshimko1 Created: 02 March 2004 Current: 02 March 2004 Job class header (user interface) Interface for Job class which will be either small or large determined at runtime. Jobs will be operated on by Servers and will be placed in ServiceQueue *********************************************************/ #ifndef JOB_H #define JOB_H using namespace std; typedef enum JobType {SMALL_J, LARGE_J}; class Job { public: Job ( ); Job ( const JobType type, const int jtime, const int ctime ); ~Job ( ); JobType getJType ( ); int getCTime ( ); void decJTime ( ); int getJTime ( ); const Job & operator= ( const Job & rhs ); bool operator== ( const Job & rhs ); bool operator!= ( const Job & rhs ); private: JobType jType; int jTime; int cTime; }; #endif