Project

General

Profile

Revision 92cc8482

ID92cc8482729efa935bcc8f7fae563b2963f18591
Parent a0efb6d1
Child 5e27e3af

Added by Mirko Stoffers over 7 years ago

Added EventType and AbstractEvent

View differences:

src/sim/cheuristic.cc
32 32
// eventSet_t::iterator::++operator
33 33
// eventSet_t::iterator::operator!=(eventSet_t::iterator)
34 34
// eventSet_t::iterator::operator=
35

  
36
// evType_t
37
// evType_t getSuccessors()
38

  
39
// abstractEvent_t
40 35
// abstractEvent_t eventSet_t::iterator::operator->
41
// evType_t abstractEvent_t::getEvType()
42
// int abstractEvent_t::getEvModId()
43
// pdf_t abstractEvent_t::getProbabilityDistribution()
44 36

  
45
class Pdf;
46
typedef std::list<abstractEvent_t> succList_t;
37
typedef std::list<evType_t> succList_t;
47 38
typedef class Pdf pdf_t;
39
typedef class AbstractEvent abstractEvent_t;
40
typedef class EventType evType_t;
41

  
42
class EventType
43
{
44
	private:
45
		succList_t succs;
46

  
47
	public:
48
		const succList_t& getSuccessors() const
49
		{
50
			return succs;
51
		}
52
};
53

  
54
class AbstractEvent
55
{
56
	private:
57
		evType_t type;
58
		int modId;
59
		pdf_t pdf;
60
	public:
61
		evType_t getEvType()
62
		{
63
			return type;
64
		}
65

  
66
		int getEvModId()
67
		{
68
			return modId;
69
		}
70

  
71
		pdf_t getProbabilityDistribution()
72
		{
73
			return pdf;
74
		}
75
};
48 76

  
49 77
class Pdf
50 78
{

Also available in: Unified diff