-
Notifications
You must be signed in to change notification settings - Fork 0
/
trafficgenerator.h
45 lines (34 loc) · 932 Bytes
/
trafficgenerator.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
33
34
35
36
37
38
39
40
41
42
43
44
/*
* trafficgenerator.h
* PhoenixSim
*
* Created by Johnnie Chan on 7/8/11.
* Copyright 2011 Johnnie Chan. All rights reserved.
*
*/
#ifndef __TRAFFICGENERATOR_H__
#define __TRAFFICGENERATOR_H__
#include "systemc.h"
#include "electronicmessage.h"
namespace PhoenixSim
{
class TrafficGeneratorParameters
{
};
class TrafficGenerator
{
public:
TrafficGenerator();
virtual ~TrafficGenerator();
virtual void SetTrafficGeneratorParameters(TrafficGeneratorParameters *p_parameters) = 0;
virtual ElectronicMessage* CreateFirstMessage();
virtual ElectronicMessage* MessageReceived(ElectronicMessage* incomingMessage);
virtual ElectronicMessage* MessageTransmitted();
virtual ElectronicMessage* MessageCreated();
virtual sc_time WaitTime(ElectronicMessage* message);
static int GetUniqueId();
private:
static int currentMessageCount;
};
}
#endif // __TRAFFICGENERATOR_H__