/******************************************************** Job.cpp CMSC-341 Spring 2004 Project 2 Spencer Shimko, Section 001, sshimko1 Created: 02 March 2004 Current: 02 March 2004 Job class implementation 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 while waiting for service *********************************************************/ #include "Job.h" Job::Job( ) { } Job::Job ( const JobType type, const int jtime, const int ctime ) : jType (type), jTime (jtime), cTime (ctime) { } Job::~Job ( ) { } JobType Job::getJType ( ) { return jType; } int Job::getCTime ( ) { return cTime; } void Job::decJTime ( ) { jTime--; } int Job::getJTime ( ) { return jTime; } const Job & Job::operator= ( const Job & rhs ) { if (this != &rhs) { jType = rhs.jType; jTime = rhs.jTime; } return *this; } bool Job::operator== ( const Job & rhs ) { return (jTime == rhs.jTime); } bool Job::operator!= ( const Job & rhs ) { return (!(jTime == rhs.jTime)); }