ext: add the source code for DSENT
[gem5.git] / ext / dsent / model / PortInfo.h
1 #ifndef __DSENT_MODEL_PORT_INFO_H__
2 #define __DSENT_MODEL_PORT_INFO_H__
3
4 #include "util/CommonType.h"
5 #include "model/ElectricalModel.h"
6 #include "model/TransitionInfo.h"
7
8 namespace DSENT
9 {
10 class PortInfo
11 {
12 public:
13 PortInfo(const String& port_name_, const NetIndex& net_index_ = NetIndex(0, 0));
14 ~PortInfo();
15
16 public:
17 // Get the port name
18 const String& getPortName() const;
19 // Get the net index
20 const NetIndex& getNetIndex() const;
21 // Set the transition information of this port
22 void setTransitionInfo(const TransitionInfo& trans_info_);
23 // Get the transition information of this port
24 const TransitionInfo& getTransitionInfo() const;
25
26 private:
27 // Name of this port
28 String m_port_name_;
29 // Net index of the input port
30 NetIndex m_net_index_;
31 // Store the transition information of this port
32 TransitionInfo m_tran_info_;
33 }; // class PortInfo
34 } // namespace DSENT
35
36 #endif // __DSENT_MODEL_PORT_INFO_H__
37