forked from shahpoojan/NetSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimulator.h
More file actions
27 lines (22 loc) · 701 Bytes
/
Copy pathSimulator.h
File metadata and controls
27 lines (22 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Definition of Simulator class
// ECE8893, Final Project, Fall 2012
#ifndef __SIMULATOR_H__
#define __SIMULATOR_H__
#include "CommonDefs.h"
#include "Handler.h"
class Event;
class Simulator : public Handler // Simulator is a subclass of handler
{
public:
Simulator();
void Stop(); // Stop executing events and exit
void Run(); // Starting executing events
void StopAt(Time_t);
void Schedule(Handler*, Event*, Time_t); // Schedule a new future event
void ComputeRoutes(); // Compute routing tables at every node
// Inherited from Handler
virtual void Handle(Event*, Time_t); // Handle the specified event
public:
// Your member variables here
};
#endif