|
|
| 71 |
virtual ~Node(); |
71 |
virtual ~Node(); |
| 72 |
|
72 |
|
| 73 |
/** |
73 |
/** |
|
|
74 |
* \param name name of the node (e.g. "n0") |
| 75 |
*/ |
| 76 |
void SetName (const std::string name); |
| 77 |
/** |
| 78 |
* \return name name of the node (e.g. "n0") |
| 79 |
*/ |
| 80 |
std::string GetName (void) const; |
| 81 |
|
| 82 |
/** |
| 74 |
* \returns the unique id of this node. |
83 |
* \returns the unique id of this node. |
| 75 |
* |
84 |
* |
| 76 |
* This unique id happens to be also the index of the Node into |
85 |
* This unique id happens to be also the index of the Node into |
|
|
| 108 |
* to this Node. |
117 |
* to this Node. |
| 109 |
*/ |
118 |
*/ |
| 110 |
uint32_t GetNDevices (void) const; |
119 |
uint32_t GetNDevices (void) const; |
| 111 |
|
120 |
/** |
|
|
121 |
* \param name index of requested device. |
| 122 |
* \returns the NetDevice associated to name, if found |
| 123 |
* |
| 124 |
* This method returns a Ptr<NetDevice> if a NetDevice is found with |
| 125 |
* that name. If two or more NetDevices have the same name, the |
| 126 |
* simulator asserts. |
| 127 |
*/ |
| 128 |
Ptr<NetDevice> GetDeviceByName (const std::string name) const; |
| 112 |
/** |
129 |
/** |
| 113 |
* \param application Application to associate to this node. |
130 |
* \param application Application to associate to this node. |
| 114 |
* \returns the index of the Application within the Node's list |
131 |
* \returns the index of the Application within the Node's list |
|
|
| 185 |
typedef std::vector<struct Node::ProtocolHandlerEntry> ProtocolHandlerList; |
202 |
typedef std::vector<struct Node::ProtocolHandlerEntry> ProtocolHandlerList; |
| 186 |
uint32_t m_id; // Node id for this node |
203 |
uint32_t m_id; // Node id for this node |
| 187 |
uint32_t m_sid; // System id for this node |
204 |
uint32_t m_sid; // System id for this node |
|
|
205 |
std::string m_name; |
| 188 |
std::vector<Ptr<NetDevice> > m_devices; |
206 |
std::vector<Ptr<NetDevice> > m_devices; |
| 189 |
std::vector<Ptr<Application> > m_applications; |
207 |
std::vector<Ptr<Application> > m_applications; |
| 190 |
ProtocolHandlerList m_handlers; |
208 |
ProtocolHandlerList m_handlers; |