-
Notifications
You must be signed in to change notification settings - Fork 0
/
trafficgenerator.cpp
54 lines (43 loc) · 943 Bytes
/
trafficgenerator.cpp
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
45
46
47
48
49
50
51
52
53
54
/*
* trafficgenerator.cpp
* PhoenixSim
*
* Created by Johnnie Chan on 7/8/11.
* Copyright 2011 Johnnie Chan. All rights reserved.
*
*/
#include "trafficgenerator.h"
using namespace PhoenixSim;
int TrafficGenerator::currentMessageCount = 0;
TrafficGenerator::TrafficGenerator()
{
}
TrafficGenerator::~TrafficGenerator()
{
}
ElectronicMessage* TrafficGenerator::CreateFirstMessage()
{
return NULL;
}
ElectronicMessage* TrafficGenerator::MessageReceived(ElectronicMessage* incomingMessage)
{
delete incomingMessage;
return NULL;
}
ElectronicMessage* TrafficGenerator::MessageTransmitted()
{
return NULL;
}
ElectronicMessage* TrafficGenerator::MessageCreated()
{
return NULL;
}
sc_time TrafficGenerator::WaitTime(ElectronicMessage* message)
{
// Notice that this is zero time, when it might actually need a delta time.
return sc_time(0, SC_NS);
}
int TrafficGenerator::GetUniqueId()
{
return currentMessageCount++;
}