ext: add the source code for DSENT
[gem5.git] / ext / dsent / model / EventInfo.h
1 #ifndef __DSENT_MODEL_EVENT_INFO_H__
2 #define __DSENT_MODEL_EVENT_INFO_H__
3
4 #include "util/CommonType.h"
5 #include "model/TransitionInfo.h"
6
7 namespace DSENT
8 {
9 class PortInfo;
10
11 class EventInfo
12 {
13 public:
14 EventInfo(const String& event_name_, const Map<PortInfo*>* port_infos_);
15 ~EventInfo();
16
17 public:
18 const String& getEventName() const;
19 void setTransitionInfo(const String& port_name_, const TransitionInfo& trans_info_);
20 void setStaticTransitionInfo(const String& port_name_);
21 void setRandomTransitionInfos();
22 void setStaticTransitionInfos();
23 const TransitionInfo& getTransitionInfo(const String& port_name_) const;
24
25 private:
26 String m_event_name_;
27 Map<TransitionInfo>* m_trans_info_map_;
28 }; // class EventInfo
29 } // namespace DSENT
30
31 #endif // __DSENT_MODEL_EVENT_INFO_H__
32