////////////////////////////////////////////////////// // // // Incremental Clock Syncronization. // // 236503(20) Summer 2001 // // Advanced Programming Project. // // Technion. Computer Science Department. // // // // Written by: Reitman Anna // // Fidelman Greg // // Supervisor: Hagit Attya // // Saar Pilosof // // // ////////////////////////////////////////////////////// // Scheduler.h #ifndef _SCHEDULER_H #define _SCHEDULER_H #include "IncClockSynch.h" class ProcessHolder; class Scheduler { public: //used with GAP_TIME scenario Scheduler(Scenario sc,ProcessHolder& ph,long nStopTime); //used with TIME_PROC, NEW_PROC sccenarios Scheduler(Scenario sc,ProcessHolder& ph,long nStopTime,long nStopGap); ~Scheduler(){}; private: void runScenario_();//run life cycle for scenario Scenario m_Scenario; long m_nStopTime; //time to stop the testing (in ticks) long m_nStopGap; //gap to stop the testing (in ticks) long m_CurrTime; //current time slot ProcessHolder* m_ProcHolder; };//of class Scheduler #endif //_SCHEDULER_H