PortInfo.cc revision 10447:a465576671d4
1#include "model/PortInfo.h" 2 3namespace DSENT 4{ 5 PortInfo::PortInfo(const String& port_name_, const NetIndex& net_index_) 6 : m_port_name_(port_name_), m_net_index_(net_index_), m_tran_info_(TransitionInfo()) 7 { 8 } 9 10 PortInfo::~PortInfo() 11 { 12 } 13 14 const String& PortInfo::getPortName() const 15 { 16 return m_port_name_; 17 } 18 19 const NetIndex& PortInfo::getNetIndex() const 20 { 21 return m_net_index_; 22 } 23 24 void PortInfo::setTransitionInfo(const TransitionInfo& trans_info_) 25 { 26 m_tran_info_ = trans_info_; 27 return; 28 } 29 30 const TransitionInfo& PortInfo::getTransitionInfo() const 31 { 32 return m_tran_info_; 33 } 34} // namespace DSENT 35 36