Project

General

Profile

Revision 18befb2d

ID18befb2d221b81a1c559d2453678c96e609537d0
Parent 04a70d7c
Child f22bd539

Added by Mirko Stoffers over 7 years ago

Module will now create new entries into the event type list when new event types occur

View differences:

include/eventtype.h
19 19
#include "simkerneldefs.h"
20 20
#include "pdf.h"
21 21

  
22
#include "cmessage.h"
23

  
22 24
class SuccessorEvent
23 25
{
24 26
	private:
......
48 50
	private:
49 51
		succList_t succs;
50 52
		int modId;
53
		int kind;
54
		int sender;
51 55

  
52 56
	public:
57
		EventType(const cMessage* const msg)
58
		{
59
			modId=msg->getArrivalModuleId();
60
			kind=msg->getKind();
61
			sender=msg->getSenderModuleId();
62
		}
63

  
64
		bool operator==(const cMessage& msg)
65
		{
66
			return
67
				msg.getArrivalModuleId()==modId
68
				&& msg.getKind()==kind
69
				&& msg.getSenderModuleId()==sender
70
				;
71
		}
72

  
53 73
		const succList_t& getSuccessors() const
54 74
		{
55 75
			return succs;
......
59 79
		{
60 80
			return modId;
61 81
		}
62

  
63
		void setModId(int modId)
64
		{
65
			this->modId=modId;
66
		}
67 82
};
68 83

  
69 84

  

Also available in: Unified diff