-
Notifications
You must be signed in to change notification settings - Fork 0
/
Process.h
32 lines (25 loc) · 905 Bytes
/
Process.h
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
28
29
30
31
32
/************************************************************
* SimLib simulation library for event-based simulations *
* Author: Martin Ubl (A16N0026P) *
* ublm@students.zcu.cz *
************************************************************/
#pragma once
#include "SimulationObject.h"
#include "Types.h"
/*
* Class representing a single process in simulation
*/
class SimProcess : public SimulationObject
{
public:
SimProcess(SimulationPtr simulation = nullptr, uint32_t objectClass = ObjectClass_NotSpecified);
virtual ~SimProcess();
// run method - executed after being scheduled
virtual void Run() override;
// method called upon receiving event
virtual void ReceiveEvent(SimEvent& ev);
protected:
//
private:
//
};